blob: 296a6fff5d636668ad1b83e0e912b755a3f1cc26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/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
|