It's a C libary for client to call rpc method. Change-Id: I5378747bd9dab83a41801225ba794b3910d1f5a5 Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com> Reviewed-on: https://review.gerrithub.io/424061 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
37 lines
667 B
Bash
Executable File
37 lines
667 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir=$(readlink -f $testdir/../..)
|
|
|
|
set -e
|
|
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
function rpc_client_test() {
|
|
if [ $(uname -s) = Linux ]; then
|
|
local conf=$rootdir/test/bdev/bdev.conf.in
|
|
|
|
if [ ! -e $conf ]; then
|
|
return 1
|
|
fi
|
|
|
|
$rootdir/test/app/bdev_svc/bdev_svc -i 0 -c ${conf} &
|
|
svc_pid=$!
|
|
echo "Process bdev_svc pid: $svc_pid"
|
|
waitforlisten $svc_pid
|
|
trap "killprocess $svc_pid" SIGINT SIGTERM EXIT
|
|
|
|
$rootdir/test/rpc_client/rpc_client_test
|
|
|
|
killprocess $svc_pid
|
|
fi
|
|
|
|
return 0
|
|
}
|
|
|
|
timing_enter rpc_client
|
|
rpc_client_test
|
|
timing_exit rpc_client
|
|
|
|
trap - SIGINT SIGTERM EXIT
|