Change autotest.sh to pass --transport=rdma. But this now allows someone to run nvmf.sh with --transport=tcp to run all of the nvmf tests with the tcp transport! Initial testing shows that bdevio.sh fails with tcp, so only run this test with the rdma transport. Issue #808 has been filed - once it's resolved this restriction can be removed. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ie50de4d67e504c84d6d8eebfe2b8c68b14f4ba2b Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456698 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
72 lines
2.4 KiB
Bash
Executable File
72 lines
2.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir=$(readlink -f $testdir/../..)
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
if [ ! $(uname -s) = Linux ]; then
|
|
exit 0
|
|
fi
|
|
|
|
source $rootdir/test/nvmf/common.sh
|
|
|
|
timing_enter nvmf_tgt
|
|
|
|
trap "exit 1" SIGINT SIGTERM EXIT
|
|
|
|
TEST_ARGS=$@
|
|
|
|
run_test suite test/nvmf/target/filesystem.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/discovery.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/connect_disconnect.sh $TEST_ARGS
|
|
if [ $SPDK_TEST_NVME_CLI -eq 1 ]; then
|
|
run_test suite test/nvmf/target/nvme_cli.sh $TEST_ARGS
|
|
fi
|
|
run_test suite test/nvmf/target/nvmf_lvol.sh $TEST_ARGS
|
|
#TODO: disabled due to intermittent failures. Need to triage.
|
|
# run_test suite test/nvmf/target/srq_overwhelm.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/nvmf_vhost.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/shutdown.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/bdev_io_wait.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/create_transport.sh $TEST_ARGS
|
|
|
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
|
run_test suite test/nvmf/target/multiconnection.sh $TEST_ARGS
|
|
fi
|
|
|
|
run_test suite test/nvmf/target/nmic.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/rpc.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/fio.sh $TEST_ARGS
|
|
# bdevio currently fails with tcp transport - see issue #808
|
|
if [ "$TEST_TRANSPORT" == "rdma" ]; then
|
|
run_test suite test/nvmf/target/bdevio.sh $TEST_ARGS
|
|
fi
|
|
|
|
timing_enter host
|
|
|
|
run_test suite test/nvmf/host/bdevperf.sh $TEST_ARGS
|
|
run_test suite test/nvmf/host/identify.sh $TEST_ARGS
|
|
run_test suite test/nvmf/host/perf.sh $TEST_ARGS
|
|
# This script has traditionally tested the tcp transport, and then
|
|
# also the rdma transport if it's available. Now that this script
|
|
# is parameterized, explicitly run the test a second time for the
|
|
# tcp transport, at least until the test pool is set up with a VM
|
|
# that can run all of the tcp tests. At that point, this whole
|
|
# script will be run twice, once for rdma and once for tcp, and
|
|
# then this second invocation can be removed.
|
|
run_test suite test/nvmf/host/perf.sh $TEST_ARGS --transport=tcp
|
|
|
|
# TODO: disabled due to intermittent failures (RDMA_CM_EVENT_UNREACHABLE/ETIMEDOUT)
|
|
#run_test test/nvmf/host/identify_kernel_nvmf.sh $TEST_ARGS
|
|
run_test suite test/nvmf/host/aer.sh $TEST_ARGS
|
|
if [ $SPDK_RUN_ASAN -eq 0 ]; then
|
|
run_test suite test/nvmf/host/fio.sh $TEST_ARGS
|
|
fi
|
|
|
|
timing_exit host
|
|
|
|
trap - SIGINT SIGTERM EXIT
|
|
revert_soft_roce
|
|
|
|
report_test_completion "nvmf"
|
|
timing_exit nvmf_tgt
|