test/fuzz: Rename FUZZ_APP to VHOST_FUZZ_UP
Since there's more than one fuzz app covering different areas, rename FUZZ_UP to VHOST_FUZZ_UP to make the type of the app clear right off the bat. Change-Id: I7730f1e14895d9221ec76dea0f53b5054a97be1c Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/978 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
parent
b4c5509c6e
commit
ee7cdc2c76
@ -5,7 +5,7 @@ _root=${_root%/test/common}
|
|||||||
_app_dir=$_root/app
|
_app_dir=$_root/app
|
||||||
_test_app_dir=$_root/test/app
|
_test_app_dir=$_root/test/app
|
||||||
|
|
||||||
FUZZ_APP=("$_test_app_dir/fuzz/vhost_fuzz/vhost_fuzz")
|
VHOST_FUZZ_APP=("$_test_app_dir/fuzz/vhost_fuzz/vhost_fuzz")
|
||||||
ISCSI_APP=("$_app_dir/iscsi_tgt/iscsi_tgt")
|
ISCSI_APP=("$_app_dir/iscsi_tgt/iscsi_tgt")
|
||||||
NVMF_APP=("$_app_dir/nvmf_tgt/nvmf_tgt")
|
NVMF_APP=("$_app_dir/nvmf_tgt/nvmf_tgt")
|
||||||
VHOST_APP=("$_app_dir/vhost/vhost")
|
VHOST_APP=("$_app_dir/vhost/vhost")
|
||||||
|
@ -8,7 +8,7 @@ TEST_TIMEOUT=1200
|
|||||||
|
|
||||||
VHOST_APP+=(-p 0)
|
VHOST_APP+=(-p 0)
|
||||||
FUZZ_RPC_SOCK="/var/tmp/spdk_fuzz.sock"
|
FUZZ_RPC_SOCK="/var/tmp/spdk_fuzz.sock"
|
||||||
FUZZ_APP+=(-r "$FUZZ_RPC_SOCK" --wait-for-rpc)
|
VHOST_FUZZ_APP+=(-r "$FUZZ_RPC_SOCK" --wait-for-rpc)
|
||||||
|
|
||||||
vhost_rpc_py="$rootdir/scripts/rpc.py"
|
vhost_rpc_py="$rootdir/scripts/rpc.py"
|
||||||
fuzz_generic_rpc_py="$rootdir/scripts/rpc.py -s $FUZZ_RPC_SOCK"
|
fuzz_generic_rpc_py="$rootdir/scripts/rpc.py -s $FUZZ_RPC_SOCK"
|
||||||
@ -35,7 +35,7 @@ waitforlisten $vhostpid
|
|||||||
|
|
||||||
trap 'killprocess $vhostpid; exit 1' SIGINT SIGTERM exit
|
trap 'killprocess $vhostpid; exit 1' SIGINT SIGTERM exit
|
||||||
|
|
||||||
"${FUZZ_APP[@]}" -t $TEST_TIMEOUT 2>"$output_dir/vhost_autofuzz_output1.txt" &
|
"${VHOST_FUZZ_APP[@]}" -t $TEST_TIMEOUT 2>"$output_dir/vhost_autofuzz_output1.txt" &
|
||||||
fuzzpid=$!
|
fuzzpid=$!
|
||||||
waitforlisten $fuzzpid $FUZZ_RPC_SOCK
|
waitforlisten $fuzzpid $FUZZ_RPC_SOCK
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ source "$rootdir/scripts/common.sh"
|
|||||||
|
|
||||||
VHOST_APP+=(-p 0)
|
VHOST_APP+=(-p 0)
|
||||||
FUZZ_RPC_SOCK="/var/tmp/spdk_fuzz.sock"
|
FUZZ_RPC_SOCK="/var/tmp/spdk_fuzz.sock"
|
||||||
FUZZ_APP+=(-r "$FUZZ_RPC_SOCK" --wait-for-rpc)
|
VHOST_FUZZ_APP+=(-r "$FUZZ_RPC_SOCK" --wait-for-rpc)
|
||||||
|
|
||||||
vhost_rpc_py="$rootdir/scripts/rpc.py"
|
vhost_rpc_py="$rootdir/scripts/rpc.py"
|
||||||
fuzz_generic_rpc_py="$rootdir/scripts/rpc.py -s $FUZZ_RPC_SOCK"
|
fuzz_generic_rpc_py="$rootdir/scripts/rpc.py -s $FUZZ_RPC_SOCK"
|
||||||
@ -19,7 +19,7 @@ waitforlisten $vhostpid
|
|||||||
|
|
||||||
trap 'killprocess $vhostpid; exit 1' SIGINT SIGTERM exit
|
trap 'killprocess $vhostpid; exit 1' SIGINT SIGTERM exit
|
||||||
|
|
||||||
"${FUZZ_APP[@]}" -t 10 2>"$output_dir/vhost_fuzz_output1.txt" &
|
"${VHOST_FUZZ_APP[@]}" -t 10 2>"$output_dir/vhost_fuzz_output1.txt" &
|
||||||
fuzzpid=$!
|
fuzzpid=$!
|
||||||
waitforlisten $fuzzpid $FUZZ_RPC_SOCK
|
waitforlisten $fuzzpid $FUZZ_RPC_SOCK
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ $fuzz_generic_rpc_py framework_start_init
|
|||||||
|
|
||||||
wait $fuzzpid
|
wait $fuzzpid
|
||||||
|
|
||||||
"${FUZZ_APP[@]}" -j "$rootdir/test/app/fuzz/vhost_fuzz/example.json" 2>"$output_dir/vhost_fuzz_output2.txt" &
|
"${VHOST_FUZZ_APP[@]}" -j "$rootdir/test/app/fuzz/vhost_fuzz/example.json" 2>"$output_dir/vhost_fuzz_output2.txt" &
|
||||||
fuzzpid=$!
|
fuzzpid=$!
|
||||||
waitforlisten $fuzzpid $FUZZ_RPC_SOCK
|
waitforlisten $fuzzpid $FUZZ_RPC_SOCK
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user