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
|
|
|
|
|
|
|
|
timing_enter nvmf_tgt
|
|
|
|
|
2018-12-03 19:41:07 +00:00
|
|
|
trap "exit 1" SIGINT SIGTERM EXIT
|
2017-05-27 00:13:55 +00:00
|
|
|
|
2019-06-03 19:26:47 +00:00
|
|
|
TEST_ARGS=--transport=rdma
|
2019-06-03 19:30:05 +00:00
|
|
|
|
|
|
|
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
|
2018-07-10 16:32:30 +00:00
|
|
|
if [ $SPDK_TEST_NVME_CLI -eq 1 ]; then
|
2019-06-03 19:30:05 +00:00
|
|
|
run_test suite test/nvmf/target/nvme_cli.sh $TEST_ARGS
|
2018-07-10 16:32:30 +00:00
|
|
|
fi
|
2019-06-03 19:30:05 +00:00
|
|
|
run_test suite test/nvmf/target/nvmf_lvol.sh $TEST_ARGS
|
2019-04-25 00:10:10 +00:00
|
|
|
#TODO: disabled due to intermittent failures. Need to triage.
|
2019-06-03 19:30:05 +00:00
|
|
|
# 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
|
2017-05-27 00:05:26 +00:00
|
|
|
|
2018-06-05 22:39:16 +00:00
|
|
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
2019-06-03 19:30:05 +00:00
|
|
|
run_test suite test/nvmf/target/multiconnection.sh $TEST_ARGS
|
2017-05-27 00:05:26 +00:00
|
|
|
fi
|
|
|
|
|
2019-06-03 19:30:05 +00:00
|
|
|
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
|
|
|
|
run_test suite test/nvmf/target/bdevio.sh $TEST_ARGS
|
2019-05-02 23:51:48 +00:00
|
|
|
|
2017-05-27 00:05:26 +00:00
|
|
|
timing_enter host
|
|
|
|
|
2019-06-03 19:30:05 +00:00
|
|
|
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
|
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
|
|
|
|
run_test suite test/nvmf/host/aer.sh $TEST_ARGS
|
2019-03-21 14:51:05 +00:00
|
|
|
if [ $SPDK_RUN_ASAN -eq 0 ]; then
|
2019-06-03 19:30:05 +00:00
|
|
|
run_test suite test/nvmf/host/fio.sh $TEST_ARGS
|
2019-03-21 14:51:05 +00:00
|
|
|
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
|
2017-12-18 21:20:41 +00:00
|
|
|
|
|
|
|
report_test_completion "nvmf"
|
2017-05-27 00:05:26 +00:00
|
|
|
timing_exit nvmf_tgt
|