test/cuse: move all nvme-cuse tests under single script
This will help with managing the test execution and preparation. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I0bd3612381d031a4015335d162f1296fd6dd213d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2823 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
24260d2a0d
commit
4e0eb251f7
@ -180,12 +180,7 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
|
|||||||
run_test "nvme_cli" test/nvme/spdk_nvme_cli.sh
|
run_test "nvme_cli" test/nvme/spdk_nvme_cli.sh
|
||||||
fi
|
fi
|
||||||
if [[ $SPDK_TEST_NVME_CUSE -eq 1 ]]; then
|
if [[ $SPDK_TEST_NVME_CUSE -eq 1 ]]; then
|
||||||
modprobe cuse
|
run_test "nvme_cuse" test/nvme/cuse/nvme_cuse.sh
|
||||||
run_test "nvme_cuse_rpc" test/nvme/cuse/nvme_cuse_rpc.sh
|
|
||||||
run_test "nvme_cli_cuse" test/nvme/spdk_nvme_cli_cuse.sh
|
|
||||||
run_test "nvme_smartctl_cuse" test/nvme/spdk_smartctl_cuse.sh
|
|
||||||
run_test "nvme_ns_manage_cuse" test/nvme/nvme_ns_manage_cuse.sh
|
|
||||||
rmmod cuse
|
|
||||||
fi
|
fi
|
||||||
run_test "nvme_rpc" test/nvme/nvme_rpc.sh
|
run_test "nvme_rpc" test/nvme/nvme_rpc.sh
|
||||||
# Only test hotplug without ASAN enabled. Since if it is
|
# Only test hotplug without ASAN enabled. Since if it is
|
||||||
|
19
test/nvme/cuse/nvme_cuse.sh
Executable file
19
test/nvme/cuse/nvme_cuse.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
testdir=$(readlink -f $(dirname $0))
|
||||||
|
rootdir=$(readlink -f $testdir/../../..)
|
||||||
|
source $rootdir/scripts/common.sh
|
||||||
|
source $rootdir/test/common/autotest_common.sh
|
||||||
|
|
||||||
|
if [[ $(uname) != "Linux" ]]; then
|
||||||
|
echo "NVMe cuse tests only supported on Linux"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
modprobe cuse
|
||||||
|
run_test "nvme_cuse_app" $testdir/cuse
|
||||||
|
run_test "nvme_cuse_rpc" $testdir/nvme_cuse_rpc.sh
|
||||||
|
run_test "nvme_cli_cuse" $testdir/spdk_nvme_cli_cuse.sh
|
||||||
|
run_test "nvme_smartctl_cuse" $testdir/spdk_smartctl_cuse.sh
|
||||||
|
run_test "nvme_ns_manage_cuse" $testdir/nvme_ns_manage_cuse.sh
|
||||||
|
rmmod cuse
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
testdir=$(readlink -f $(dirname $0))
|
testdir=$(readlink -f $(dirname $0))
|
||||||
rootdir=$(readlink -f $testdir/../..)
|
rootdir=$(readlink -f $testdir/../../..)
|
||||||
source $rootdir/scripts/common.sh
|
source $rootdir/scripts/common.sh
|
||||||
source $rootdir/test/common/autotest_common.sh
|
source $rootdir/test/common/autotest_common.sh
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
testdir=$(readlink -f $(dirname $0))
|
testdir=$(readlink -f $(dirname $0))
|
||||||
rootdir=$(readlink -f $testdir/../..)
|
rootdir=$(readlink -f $testdir/../../..)
|
||||||
source $rootdir/scripts/common.sh
|
source $rootdir/scripts/common.sh
|
||||||
source $rootdir/test/common/autotest_common.sh
|
source $rootdir/test/common/autotest_common.sh
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
testdir=$(readlink -f $(dirname $0))
|
testdir=$(readlink -f $(dirname $0))
|
||||||
rootdir=$(readlink -f $testdir/../..)
|
rootdir=$(readlink -f $testdir/../../..)
|
||||||
source $rootdir/scripts/common.sh
|
source $rootdir/scripts/common.sh
|
||||||
source $rootdir/test/common/autotest_common.sh
|
source $rootdir/test/common/autotest_common.sh
|
||||||
|
|
@ -116,9 +116,6 @@ run_test "nvme_reserve" $testdir/reserve/reserve
|
|||||||
run_test "nvme_err_injection" $testdir/err_injection/err_injection
|
run_test "nvme_err_injection" $testdir/err_injection/err_injection
|
||||||
run_test "nvme_overhead" $testdir/overhead/overhead -s 4096 -t 1 -H
|
run_test "nvme_overhead" $testdir/overhead/overhead -s 4096 -t 1 -H
|
||||||
run_test "nvme_arbitration" $SPDK_EXAMPLE_DIR/arbitration -t 3 -i 0
|
run_test "nvme_arbitration" $SPDK_EXAMPLE_DIR/arbitration -t 3 -i 0
|
||||||
if [ $SPDK_TEST_NVME_CUSE -eq 1 ]; then
|
|
||||||
run_test "nvme_cuse_app" $testdir/cuse/cuse
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $CONFIG_FIO_PLUGIN == y ]]; then
|
if [[ $CONFIG_FIO_PLUGIN == y ]]; then
|
||||||
run_test "nvme_fio" nvme_fio_test
|
run_test "nvme_fio" nvme_fio_test
|
||||||
|
Loading…
Reference in New Issue
Block a user