2017-05-27 08:05:26 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
|
|
rootdir=$(readlink -f $testdir/../..)
|
2018-02-27 15:14:08 -07:00
|
|
|
source $rootdir/test/common/autotest_common.sh
|
2017-05-27 08:05:26 +08:00
|
|
|
|
|
|
|
if [ ! $(uname -s) = Linux ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
source $rootdir/test/nvmf/common.sh
|
|
|
|
|
|
|
|
timing_enter nvmf_tgt
|
|
|
|
|
2018-12-03 12:41:07 -07:00
|
|
|
trap "exit 1" SIGINT SIGTERM EXIT
|
2017-05-27 08:13:55 +08:00
|
|
|
|
2018-03-13 13:57:41 +08:00
|
|
|
run_test suite test/nvmf/filesystem/filesystem.sh
|
|
|
|
run_test suite test/nvmf/discovery/discovery.sh
|
2018-07-10 09:32:30 -07:00
|
|
|
if [ $SPDK_TEST_NVME_CLI -eq 1 ]; then
|
2018-03-13 13:57:41 +08:00
|
|
|
run_test suite test/nvmf/nvme_cli/nvme_cli.sh
|
2018-07-10 09:32:30 -07:00
|
|
|
fi
|
2018-03-13 13:57:41 +08:00
|
|
|
run_test suite test/nvmf/lvol/nvmf_lvol.sh
|
|
|
|
run_test suite test/nvmf/shutdown/shutdown.sh
|
2018-08-09 03:06:27 -04:00
|
|
|
run_test suite test/nvmf/bdev_io_wait/bdev_io_wait.sh
|
2018-08-27 15:27:47 -07:00
|
|
|
run_test suite test/nvmf/create_transport/create_transport.sh
|
2017-05-27 08:05:26 +08:00
|
|
|
|
2018-06-05 15:39:16 -07:00
|
|
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
2018-03-13 13:57:41 +08:00
|
|
|
run_test suite test/nvmf/multiconnection/multiconnection.sh
|
2017-05-27 08:05:26 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
timing_enter host
|
|
|
|
|
2018-03-13 13:57:41 +08:00
|
|
|
run_test suite test/nvmf/host/bdevperf.sh
|
|
|
|
run_test suite test/nvmf/host/identify.sh
|
|
|
|
run_test suite test/nvmf/host/perf.sh
|
2018-05-08 12:54:15 -07:00
|
|
|
# TODO: disabled due to intermittent failures (RDMA_CM_EVENT_UNREACHABLE/ETIMEDOUT)
|
|
|
|
#run_test test/nvmf/host/identify_kernel_nvmf.sh
|
2018-03-13 13:57:41 +08:00
|
|
|
run_test suite test/nvmf/host/aer.sh
|
|
|
|
run_test suite test/nvmf/host/fio.sh
|
2017-05-27 08:05:26 +08:00
|
|
|
|
2018-07-23 14:53:41 +08:00
|
|
|
run_test suite test/nvmf/nmic/nmic.sh
|
|
|
|
|
2017-05-27 08:05:26 +08:00
|
|
|
timing_exit host
|
2017-05-27 08:13:55 +08:00
|
|
|
trap - SIGINT SIGTERM EXIT
|
2017-05-27 08:05:26 +08:00
|
|
|
|
2017-05-27 08:13:55 +08:00
|
|
|
# TODO: enable nvme device detachment for multi-process so that
|
|
|
|
# we can use the stub for this test
|
2018-03-13 13:57:41 +08:00
|
|
|
run_test suite test/nvmf/rpc/rpc.sh
|
|
|
|
run_test suite test/nvmf/fio/fio.sh
|
2017-07-25 12:02:08 -07:00
|
|
|
revert_soft_roce
|
2017-12-18 14:20:41 -07:00
|
|
|
|
|
|
|
report_test_completion "nvmf"
|
2017-05-27 08:05:26 +08:00
|
|
|
timing_exit nvmf_tgt
|