Commit fa79ecf8 authored by Emilia Haligowska's avatar Emilia Haligowska Committed by Tomasz Zawadzki
Browse files

examples: Example app for using go-rpc



Build example app using go-rpc.

Change-Id: Id978a39fdb0f33a6d403e395daa17ad595a11862
Signed-off-by: default avatarEmilia Haligowska <emilia.haligowska@intel.com>
Signed-off-by: default avatarMaciej Mis <maciej.mis@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19815


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 9a08840c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -164,7 +164,11 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
	run_test "json_config" $rootdir/test/json_config/json_config.sh
	run_test "json_config_extra_key" $rootdir/test/json_config/json_config_extra_key.sh
	run_test "alias_rpc" $rootdir/test/json_config/alias_rpc/alias_rpc.sh

	if [[ $SPDK_JSONRPC_GO_CLIENT -eq 0 ]]; then
		run_test "spdkcli_tcp" $rootdir/test/spdkcli/tcp.sh
	fi

	run_test "dpdk_mem_utility" $rootdir/test/dpdk_memory_utility/test_dpdk_mem_info.sh
	run_test "event" $rootdir/test/event/event.sh
	run_test "thread" $rootdir/test/thread/thread.sh
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

DIRS-y += accel bdev blob ioat nvme sock vmd nvmf util thread
DIRS-$(CONFIG_IDXD) += idxd
DIRS-$(CONFIG_GOLANG) += go

ifeq ($(OS),Linux)
DIRS-$(CONFIG_VHOST) += interrupt_tgt

examples/go/Makefile

0 → 100644
+16 −0
Original line number Diff line number Diff line
#  SPDX-License-Identifier: BSD-3-Clause
#  Copyright (C) 2023 Intel Corporation.
#  All rights reserved.
#

SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

DIRS-y += hello_gorpc

.PHONY: all clean $(DIRS-y)

all: $(DIRS-y)
clean: $(DIRS-y)

include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk
+17 −0
Original line number Diff line number Diff line
#  SPDX-License-Identifier: BSD-3-Clause
#  Copyright (C) 2023 Intel Corporation.
#  All rights reserved.
#

SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk

.PHONY: all clean

BUILDFLAGS=-trimpath -mod=readonly -gcflags="all=-spectre=all -N -l" -asmflags="all=-spectre=all" -ldflags="all=-s -w"

all:
	$(Q)go build $(BUILDFLAGS) -o $(SPDK_ROOT_DIR)/build/examples/hello_gorpc

clean:
	$(Q)rm -rf $(SPDK_ROOT_DIR)/build/examples/hello_gorpc
+8 −0
Original line number Diff line number Diff line
module github.com/spdk/spdk/examples/go-rpc

go 1.21

require (
	"github.com/spdk/spdk/go/rpc" v0.0.0
)
replace "github.com/spdk/spdk/go/rpc" v0.0.0 => "./../../../go/rpc"
Loading