2019-08-19 12:48:34 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
|
|
rootdir=$(readlink -f $testdir/../../..)
|
|
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
|
|
|
|
trap 'killprocess $spdk_tgt_pid; exit 1' ERR
|
|
|
|
|
2020-05-11 21:15:03 +00:00
|
|
|
$SPDK_BIN_DIR/spdk_tgt &
|
2019-08-19 12:48:34 +00:00
|
|
|
spdk_tgt_pid=$!
|
|
|
|
waitforlisten $spdk_tgt_pid
|
|
|
|
|
|
|
|
# Test deprecated rpcs in json
|
2020-01-14 12:03:17 +00:00
|
|
|
$rootdir/scripts/rpc.py load_config -i < $testdir/conf.json
|
2019-08-19 12:48:34 +00:00
|
|
|
|
|
|
|
killprocess $spdk_tgt_pid
|