2017-05-27 00:05:26 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
|
|
rootdir=$(readlink -f $testdir/../..)
|
2018-02-27 22:14:08 +00:00
|
|
|
source $rootdir/test/common/autotest_common.sh
|
2017-05-27 00:05:26 +00:00
|
|
|
|
|
|
|
if [ ! $(uname -s) = Linux ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
source $rootdir/test/nvmf/common.sh
|
|
|
|
|
2018-12-03 19:41:07 +00:00
|
|
|
trap "exit 1" SIGINT SIGTERM EXIT
|
2017-05-27 00:13:55 +00:00
|
|
|
|
2020-05-07 11:27:06 +00:00
|
|
|
TEST_ARGS=("$@")
|
2019-06-03 19:30:05 +00:00
|
|
|
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "nvmf_example" test/nvmf/target/nvmf_example.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_filesystem" test/nvmf/target/filesystem.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_discovery" test/nvmf/target/discovery.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_connect_disconnect" test/nvmf/target/connect_disconnect.sh "${TEST_ARGS[@]}"
|
2020-10-14 21:16:01 +00:00
|
|
|
run_test "nvmf_host_management" test/nvmf/target/host_management.sh "${TEST_ARGS[@]}"
|
2018-07-10 16:32:30 +00:00
|
|
|
if [ $SPDK_TEST_NVME_CLI -eq 1 ]; then
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "nvmf_nvme_cli" test/nvmf/target/nvme_cli.sh "${TEST_ARGS[@]}"
|
2018-07-10 16:32:30 +00:00
|
|
|
fi
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "nvmf_lvol" test/nvmf/target/nvmf_lvol.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_vhost" test/nvmf/target/nvmf_vhost.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_bdev_io_wait" test/nvmf/target/bdev_io_wait.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_create_transport." test/nvmf/target/create_transport.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_multitarget" test/nvmf/target/multitarget.sh "${TEST_ARGS[@]}"
|
2017-05-27 00:05:26 +00:00
|
|
|
|
2018-06-05 22:39:16 +00:00
|
|
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "nvmf_fuzz" test/nvmf/target/fuzz.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_multiconnection" test/nvmf/target/multiconnection.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_initiator_timeout" test/nvmf/target/initiator_timeout.sh "${TEST_ARGS[@]}"
|
2017-05-27 00:05:26 +00:00
|
|
|
fi
|
|
|
|
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "nvmf_nmic" test/nvmf/target/nmic.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_rpc" test/nvmf/target/rpc.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_fio" test/nvmf/target/fio.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_bdevio" test/nvmf/target/bdevio.sh "${TEST_ARGS[@]}"
|
2020-02-10 13:47:52 +00:00
|
|
|
run_test "nvmf_invalid" test/nvmf/target/invalid.sh "${TEST_ARGS[@]}"
|
2020-06-06 18:17:15 +00:00
|
|
|
run_test "nvmf_abort" test/nvmf/target/abort.sh "${TEST_ARGS[@]}"
|
2020-11-02 17:12:11 +00:00
|
|
|
run_test "nvmf_ns_hotplug_stress" test/nvmf/target/ns_hotplug_stress.sh "${TEST_ARGS[@]}"
|
2019-05-02 23:51:48 +00:00
|
|
|
|
2021-01-28 10:27:57 +00:00
|
|
|
if [ $SPDK_TEST_VFIOUSER -eq 1 ]; then
|
2020-08-19 15:35:38 +00:00
|
|
|
run_test "nvmf_vfio_user" test/nvmf/target/nvmf_vfio_user.sh "${TEST_ARGS[@]}"
|
|
|
|
fi
|
|
|
|
|
2020-07-30 09:00:35 +00:00
|
|
|
if ! check_ip_is_soft_roce $NVMF_FIRST_TARGET_IP; then
|
|
|
|
# Soft-RoCE will return invalid values in the WC field after a qp has been
|
|
|
|
# destroyed which lead to NULL pointer references not seen in real hardware.
|
|
|
|
run_test "nvmf_shutdown" test/nvmf/target/shutdown.sh "${TEST_ARGS[@]}"
|
|
|
|
#TODO: disabled due to intermittent failures. Need to triage.
|
|
|
|
# run_test "nvmf_srq_overwhelm" test/nvmf/target/srq_overwhelm.sh $TEST_ARGS
|
|
|
|
fi
|
|
|
|
|
2020-09-09 03:13:52 +00:00
|
|
|
run_test "nvmf_multipath" test/nvmf/target/multipath.sh "${TEST_ARGS[@]}"
|
|
|
|
|
2017-05-27 00:05:26 +00:00
|
|
|
timing_enter host
|
|
|
|
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "nvmf_identify" test/nvmf/host/identify.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_perf" test/nvmf/host/perf.sh "${TEST_ARGS[@]}"
|
2020-06-13 02:48:37 +00:00
|
|
|
run_test "nvmf_multipath" test/nvmf/host/multipath.sh "${TEST_ARGS[@]}"
|
2020-07-31 00:45:25 +00:00
|
|
|
run_test "nvmf_multicontroller" test/nvmf/host/multicontroller.sh "${TEST_ARGS[@]}"
|
2019-06-03 22:22:51 +00:00
|
|
|
|
2018-05-08 19:54:15 +00:00
|
|
|
# TODO: disabled due to intermittent failures (RDMA_CM_EVENT_UNREACHABLE/ETIMEDOUT)
|
2019-06-03 19:30:05 +00:00
|
|
|
#run_test test/nvmf/host/identify_kernel_nvmf.sh $TEST_ARGS
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "nvmf_aer" test/nvmf/host/aer.sh "${TEST_ARGS[@]}"
|
|
|
|
run_test "nvmf_fio" test/nvmf/host/fio.sh "${TEST_ARGS[@]}"
|
2020-07-30 09:00:35 +00:00
|
|
|
|
|
|
|
# There is an intermittent error relating to those tests and Soft-RoCE.
|
|
|
|
# Skip those tests if we are using rxe.
|
|
|
|
if ! check_ip_is_soft_roce $NVMF_FIRST_TARGET_IP; then
|
|
|
|
# GitHub issue #1165
|
|
|
|
run_test "nvmf_bdevperf" test/nvmf/host/bdevperf.sh "${TEST_ARGS[@]}"
|
|
|
|
# GitHub issue #1043
|
|
|
|
run_test "nvmf_target_disconnect" test/nvmf/host/target_disconnect.sh "${TEST_ARGS[@]}"
|
|
|
|
fi
|
2018-07-23 06:53:41 +00:00
|
|
|
|
2017-05-27 00:05:26 +00:00
|
|
|
timing_exit host
|
|
|
|
|
2019-05-02 23:51:48 +00:00
|
|
|
trap - SIGINT SIGTERM EXIT
|
2017-07-25 19:02:08 +00:00
|
|
|
revert_soft_roce
|