Use old rpc in conf.json to check if rpc alias if handled properly. Change-Id: I466e39dd6b4adf140225060e46752250ae30ddb4 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/465666 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
21 lines
533 B
Bash
Executable File
21 lines
533 B
Bash
Executable File
#!/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
|
|
|
|
$rootdir/app/spdk_tgt/spdk_tgt &
|
|
spdk_tgt_pid=$!
|
|
waitforlisten $spdk_tgt_pid
|
|
|
|
# Test deprecated rpcs in json
|
|
cat $testdir/conf.json | $rootdir/scripts/rpc.py load_config -i
|
|
|
|
# Test deprecated rpcs in rpc.py
|
|
$rootdir/scripts/rpc.py delete_malloc_bdev "Malloc0"
|
|
$rootdir/scripts/rpc.py delete_malloc_bdev "Malloc1"
|
|
|
|
killprocess $spdk_tgt_pid
|