autotest: unify style for test/ and ./test/
Although they are all correct. I suggest to unify, so it looks more normalized. Change-Id: I61ee92b2ac9f2260851e0d7e28ebaea8783423f6 Signed-off-by: Hailiang Wang <hailiangx.e.wang@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15172 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Michal Berger <michal.berger@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
58c75caaaa
commit
de95290c1f
@ -31,7 +31,7 @@ fi
|
|||||||
|
|
||||||
case "$SPDK_TEST_AUTOBUILD" in
|
case "$SPDK_TEST_AUTOBUILD" in
|
||||||
full)
|
full)
|
||||||
./configure $config_params
|
$rootdir/configure $config_params
|
||||||
echo "** START ** Info for Hostname: $HOSTNAME"
|
echo "** START ** Info for Hostname: $HOSTNAME"
|
||||||
uname -a
|
uname -a
|
||||||
$MAKE cc_version
|
$MAKE cc_version
|
||||||
@ -62,10 +62,10 @@ elif [[ $SPDK_TEST_SCANBUILD -eq 1 ]]; then
|
|||||||
else
|
else
|
||||||
if [[ $SPDK_TEST_FUZZER -eq 1 ]]; then
|
if [[ $SPDK_TEST_FUZZER -eq 1 ]]; then
|
||||||
# if we are testing nvmf fuzz with llvm lib, --with-shared will cause lib link fail
|
# if we are testing nvmf fuzz with llvm lib, --with-shared will cause lib link fail
|
||||||
./configure $config_params
|
$rootdir/configure $config_params
|
||||||
else
|
else
|
||||||
# if we aren't testing the unittests, build with shared objects.
|
# if we aren't testing the unittests, build with shared objects.
|
||||||
./configure $config_params --with-shared
|
$rootdir/configure $config_params --with-shared
|
||||||
fi
|
fi
|
||||||
run_test "make" $MAKE $MAKEFLAGS
|
run_test "make" $MAKE $MAKEFLAGS
|
||||||
fi
|
fi
|
||||||
|
@ -36,7 +36,7 @@ fi
|
|||||||
timing_exit porcelain_check
|
timing_exit porcelain_check
|
||||||
|
|
||||||
if [[ $SPDK_TEST_RELEASE_BUILD -eq 1 ]]; then
|
if [[ $SPDK_TEST_RELEASE_BUILD -eq 1 ]]; then
|
||||||
run_test "packaging" test/packaging/packaging.sh
|
run_test "packaging" $rootdir/test/packaging/packaging.sh
|
||||||
$MAKE clean
|
$MAKE clean
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -54,10 +54,10 @@ if [ $(uname -s) = Linux ]; then
|
|||||||
LD=$(type -P ld.gold)
|
LD=$(type -P ld.gold)
|
||||||
export LD
|
export LD
|
||||||
fi
|
fi
|
||||||
./configure $config_params --enable-lto
|
$rootdir/configure $config_params --enable-lto
|
||||||
else
|
else
|
||||||
# LTO needs a special compiler to work on BSD.
|
# LTO needs a special compiler to work on BSD.
|
||||||
./configure $config_params
|
$rootdir/configure $config_params
|
||||||
fi
|
fi
|
||||||
$MAKE ${MAKEFLAGS}
|
$MAKE ${MAKEFLAGS}
|
||||||
$MAKE ${MAKEFLAGS} clean
|
$MAKE ${MAKEFLAGS} clean
|
||||||
|
164
autotest.sh
164
autotest.sh
@ -87,7 +87,7 @@ timing_enter cleanup
|
|||||||
rm -f /var/tmp/spdk*.sock
|
rm -f /var/tmp/spdk*.sock
|
||||||
|
|
||||||
# Load the kernel driver
|
# Load the kernel driver
|
||||||
./scripts/setup.sh reset
|
$rootdir/scripts/setup.sh reset
|
||||||
|
|
||||||
get_zoned_devs
|
get_zoned_devs
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ if [ $(uname -s) = Linux ]; then
|
|||||||
run_test "setup.sh" "$rootdir/test/setup/test-setup.sh"
|
run_test "setup.sh" "$rootdir/test/setup/test-setup.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./scripts/setup.sh status
|
$rootdir/scripts/setup.sh status
|
||||||
|
|
||||||
if [[ $(uname -s) == Linux ]]; then
|
if [[ $(uname -s) == Linux ]]; then
|
||||||
# Revert NVMe namespaces to default state
|
# Revert NVMe namespaces to default state
|
||||||
@ -132,7 +132,7 @@ timing_exit cleanup
|
|||||||
|
|
||||||
# set up huge pages
|
# set up huge pages
|
||||||
timing_enter afterboot
|
timing_enter afterboot
|
||||||
./scripts/setup.sh
|
$rootdir/scripts/setup.sh
|
||||||
timing_exit afterboot
|
timing_exit afterboot
|
||||||
|
|
||||||
# Revert existing OPAL to factory settings that may have been left from earlier failed tests.
|
# Revert existing OPAL to factory settings that may have been left from earlier failed tests.
|
||||||
@ -144,39 +144,39 @@ opal_revert_cleanup
|
|||||||
#####################
|
#####################
|
||||||
|
|
||||||
if [ $SPDK_TEST_UNITTEST -eq 1 ]; then
|
if [ $SPDK_TEST_UNITTEST -eq 1 ]; then
|
||||||
run_test "unittest" ./test/unit/unittest.sh
|
run_test "unittest" $rootdir/test/unit/unittest.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
|
if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
|
||||||
if [[ $SPDK_TEST_CRYPTO -eq 1 || $SPDK_TEST_VBDEV_COMPRESS -eq 1 ]]; then
|
if [[ $SPDK_TEST_CRYPTO -eq 1 || $SPDK_TEST_VBDEV_COMPRESS -eq 1 ]]; then
|
||||||
if [[ $SPDK_TEST_USE_IGB_UIO -eq 1 ]]; then
|
if [[ $SPDK_TEST_USE_IGB_UIO -eq 1 ]]; then
|
||||||
./scripts/qat_setup.sh igb_uio
|
$rootdir/scripts/qat_setup.sh igb_uio
|
||||||
else
|
else
|
||||||
./scripts/qat_setup.sh
|
$rootdir/scripts/qat_setup.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
timing_enter lib
|
timing_enter lib
|
||||||
|
|
||||||
run_test "env" test/env/env.sh
|
run_test "env" $rootdir/test/env/env.sh
|
||||||
run_test "rpc" test/rpc/rpc.sh
|
run_test "rpc" $rootdir/test/rpc/rpc.sh
|
||||||
run_test "rpc_client" test/rpc_client/rpc_client.sh
|
run_test "rpc_client" $rootdir/test/rpc_client/rpc_client.sh
|
||||||
run_test "json_config" ./test/json_config/json_config.sh
|
run_test "json_config" $rootdir/test/json_config/json_config.sh
|
||||||
run_test "json_config_extra_key" ./test/json_config/json_config_extra_key.sh
|
run_test "json_config_extra_key" $rootdir/test/json_config/json_config_extra_key.sh
|
||||||
run_test "alias_rpc" test/json_config/alias_rpc/alias_rpc.sh
|
run_test "alias_rpc" $rootdir/test/json_config/alias_rpc/alias_rpc.sh
|
||||||
run_test "spdkcli_tcp" test/spdkcli/tcp.sh
|
run_test "spdkcli_tcp" $rootdir/test/spdkcli/tcp.sh
|
||||||
run_test "dpdk_mem_utility" test/dpdk_memory_utility/test_dpdk_mem_info.sh
|
run_test "dpdk_mem_utility" $rootdir/test/dpdk_memory_utility/test_dpdk_mem_info.sh
|
||||||
run_test "event" test/event/event.sh
|
run_test "event" $rootdir/test/event/event.sh
|
||||||
run_test "thread" test/thread/thread.sh
|
run_test "thread" $rootdir/test/thread/thread.sh
|
||||||
run_test "accel" test/accel/accel.sh
|
run_test "accel" $rootdir/test/accel/accel.sh
|
||||||
run_test "app_cmdline" test/app/cmdline.sh
|
run_test "app_cmdline" $rootdir/test/app/cmdline.sh
|
||||||
|
|
||||||
if [ $SPDK_TEST_BLOCKDEV -eq 1 ]; then
|
if [ $SPDK_TEST_BLOCKDEV -eq 1 ]; then
|
||||||
run_test "blockdev_general" test/bdev/blockdev.sh
|
run_test "blockdev_general" $rootdir/test/bdev/blockdev.sh
|
||||||
run_test "bdev_raid" test/bdev/bdev_raid.sh
|
run_test "bdev_raid" $rootdir/test/bdev/bdev_raid.sh
|
||||||
run_test "bdevperf_config" test/bdev/bdevperf/test_config.sh
|
run_test "bdevperf_config" $rootdir/test/bdev/bdevperf/test_config.sh
|
||||||
if [[ $(uname -s) == Linux ]]; then
|
if [[ $(uname -s) == Linux ]]; then
|
||||||
run_test "reactor_set_interrupt" test/interrupt/reactor_set_interrupt.sh
|
run_test "reactor_set_interrupt" $rootdir/test/interrupt/reactor_set_interrupt.sh
|
||||||
run_test "reap_unregistered_poller" test/interrupt/reap_unregistered_poller.sh
|
run_test "reap_unregistered_poller" $rootdir/test/interrupt/reap_unregistered_poller.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -188,73 +188,73 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
|
|||||||
# job timeout. Avoid that by skipping these tests - this should not affect the coverage
|
# job timeout. Avoid that by skipping these tests - this should not affect the coverage
|
||||||
# since dd tests are still run as part of the vg jobs.
|
# since dd tests are still run as part of the vg jobs.
|
||||||
if [[ $SPDK_TEST_CRYPTO -eq 0 ]]; then
|
if [[ $SPDK_TEST_CRYPTO -eq 0 ]]; then
|
||||||
run_test "spdk_dd" test/dd/dd.sh
|
run_test "spdk_dd" $rootdir/test/dd/dd.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_NVME -eq 1 ]; then
|
if [ $SPDK_TEST_NVME -eq 1 ]; then
|
||||||
run_test "blockdev_nvme" test/bdev/blockdev.sh "nvme"
|
run_test "blockdev_nvme" $rootdir/test/bdev/blockdev.sh "nvme"
|
||||||
if [[ $(uname -s) == Linux ]]; then
|
if [[ $(uname -s) == Linux ]]; then
|
||||||
run_test "blockdev_nvme_gpt" test/bdev/blockdev.sh "gpt"
|
run_test "blockdev_nvme_gpt" $rootdir/test/bdev/blockdev.sh "gpt"
|
||||||
fi
|
fi
|
||||||
run_test "nvme" test/nvme/nvme.sh
|
run_test "nvme" $rootdir/test/nvme/nvme.sh
|
||||||
if [[ $SPDK_TEST_NVME_PMR -eq 1 ]]; then
|
if [[ $SPDK_TEST_NVME_PMR -eq 1 ]]; then
|
||||||
run_test "nvme_pmr" test/nvme/nvme_pmr.sh
|
run_test "nvme_pmr" $rootdir/test/nvme/nvme_pmr.sh
|
||||||
fi
|
fi
|
||||||
if [[ $SPDK_TEST_NVME_SCC -eq 1 ]]; then
|
if [[ $SPDK_TEST_NVME_SCC -eq 1 ]]; then
|
||||||
run_test "nvme_scc" test/nvme/nvme_scc.sh
|
run_test "nvme_scc" $rootdir/test/nvme/nvme_scc.sh
|
||||||
fi
|
fi
|
||||||
if [[ $SPDK_TEST_NVME_BP -eq 1 ]]; then
|
if [[ $SPDK_TEST_NVME_BP -eq 1 ]]; then
|
||||||
run_test "nvme_bp" test/nvme/nvme_bp.sh
|
run_test "nvme_bp" $rootdir/test/nvme/nvme_bp.sh
|
||||||
fi
|
fi
|
||||||
if [[ $SPDK_TEST_NVME_CUSE -eq 1 ]]; then
|
if [[ $SPDK_TEST_NVME_CUSE -eq 1 ]]; then
|
||||||
run_test "nvme_cuse" test/nvme/cuse/nvme_cuse.sh
|
run_test "nvme_cuse" $rootdir/test/nvme/cuse/nvme_cuse.sh
|
||||||
fi
|
fi
|
||||||
if [[ $SPDK_TEST_NVME_CMB -eq 1 ]]; then
|
if [[ $SPDK_TEST_NVME_CMB -eq 1 ]]; then
|
||||||
run_test "nvme_cmb" test/nvme/cmb/cmb.sh
|
run_test "nvme_cmb" $rootdir/test/nvme/cmb/cmb.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SPDK_TEST_NVME_ZNS -eq 1 ]]; then
|
if [[ $SPDK_TEST_NVME_ZNS -eq 1 ]]; then
|
||||||
run_test "nvme_zns" test/nvme/zns/zns.sh
|
run_test "nvme_zns" $rootdir/test/nvme/zns/zns.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_test "nvme_rpc" test/nvme/nvme_rpc.sh
|
run_test "nvme_rpc" $rootdir/test/nvme/nvme_rpc.sh
|
||||||
run_test "nvme_rpc_timeouts" test/nvme/nvme_rpc_timeouts.sh
|
run_test "nvme_rpc_timeouts" $rootdir/test/nvme/nvme_rpc_timeouts.sh
|
||||||
# Only test hotplug without ASAN enabled. Since if it is
|
# Only test hotplug without ASAN enabled. Since if it is
|
||||||
# enabled, it catches SEGV earlier than our handler which
|
# enabled, it catches SEGV earlier than our handler which
|
||||||
# breaks the hotplug logic.
|
# breaks the hotplug logic.
|
||||||
if [ $SPDK_RUN_ASAN -eq 0 ] && [ $(uname -s) = Linux ]; then
|
if [ $SPDK_RUN_ASAN -eq 0 ] && [ $(uname -s) = Linux ]; then
|
||||||
run_test "sw_hotplug" test/nvme/sw_hotplug.sh
|
run_test "sw_hotplug" $rootdir/test/nvme/sw_hotplug.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SPDK_TEST_XNVME -eq 1 ]]; then
|
if [[ $SPDK_TEST_XNVME -eq 1 ]]; then
|
||||||
run_test "nvme_xnvme" test/nvme/xnvme/xnvme.sh
|
run_test "nvme_xnvme" $rootdir/test/nvme/xnvme/xnvme.sh
|
||||||
run_test "blockdev_xnvme" test/bdev/blockdev.sh "xnvme"
|
run_test "blockdev_xnvme" $rootdir/test/bdev/blockdev.sh "xnvme"
|
||||||
# Run ublk with xnvme since they have similar kernel dependencies
|
# Run ublk with xnvme since they have similar kernel dependencies
|
||||||
run_test "ublk" test/ublk/ublk.sh
|
run_test "ublk" $rootdir/test/ublk/ublk.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_IOAT -eq 1 ]; then
|
if [ $SPDK_TEST_IOAT -eq 1 ]; then
|
||||||
run_test "ioat" test/ioat/ioat.sh
|
run_test "ioat" $rootdir/test/ioat/ioat.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
timing_exit lib
|
timing_exit lib
|
||||||
|
|
||||||
if [ $SPDK_TEST_ISCSI -eq 1 ]; then
|
if [ $SPDK_TEST_ISCSI -eq 1 ]; then
|
||||||
run_test "iscsi_tgt" ./test/iscsi_tgt/iscsi_tgt.sh
|
run_test "iscsi_tgt" $rootdir/test/iscsi_tgt/iscsi_tgt.sh
|
||||||
run_test "spdkcli_iscsi" ./test/spdkcli/iscsi.sh
|
run_test "spdkcli_iscsi" $rootdir/test/spdkcli/iscsi.sh
|
||||||
|
|
||||||
# Run raid spdkcli test under iSCSI since blockdev tests run on systems that can't run spdkcli yet
|
# Run raid spdkcli test under iSCSI since blockdev tests run on systems that can't run spdkcli yet
|
||||||
run_test "spdkcli_raid" test/spdkcli/raid.sh
|
run_test "spdkcli_raid" $rootdir/test/spdkcli/raid.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_BLOBFS -eq 1 ]; then
|
if [ $SPDK_TEST_BLOBFS -eq 1 ]; then
|
||||||
run_test "rocksdb" ./test/blobfs/rocksdb/rocksdb.sh
|
run_test "rocksdb" $rootdir/test/blobfs/rocksdb/rocksdb.sh
|
||||||
run_test "blobstore" ./test/blobstore/blobstore.sh
|
run_test "blobstore" $rootdir/test/blobstore/blobstore.sh
|
||||||
run_test "blobstore_grow" ./test/blobstore/blobstore_grow/blobstore_grow.sh
|
run_test "blobstore_grow" $rootdir/test/blobstore/blobstore_grow/blobstore_grow.sh
|
||||||
run_test "blobfs" ./test/blobfs/blobfs.sh
|
run_test "blobfs" $rootdir/test/blobfs/blobfs.sh
|
||||||
run_test "hello_blob" $SPDK_EXAMPLE_DIR/hello_blob \
|
run_test "hello_blob" $SPDK_EXAMPLE_DIR/hello_blob \
|
||||||
examples/blob/hello_world/hello_blob.json
|
examples/blob/hello_world/hello_blob.json
|
||||||
fi
|
fi
|
||||||
@ -264,19 +264,19 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
|
|||||||
# The NVMe-oF run test cases are split out like this so that the parser that compiles the
|
# The NVMe-oF run test cases are split out like this so that the parser that compiles the
|
||||||
# list of all tests can properly differentiate them. Please do not merge them into one line.
|
# list of all tests can properly differentiate them. Please do not merge them into one line.
|
||||||
if [ "$SPDK_TEST_NVMF_TRANSPORT" = "rdma" ]; then
|
if [ "$SPDK_TEST_NVMF_TRANSPORT" = "rdma" ]; then
|
||||||
run_test "nvmf_rdma" ./test/nvmf/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
run_test "nvmf_rdma" $rootdir/test/nvmf/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
||||||
run_test "spdkcli_nvmf_rdma" ./test/spdkcli/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
run_test "spdkcli_nvmf_rdma" $rootdir/test/spdkcli/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
||||||
elif [ "$SPDK_TEST_NVMF_TRANSPORT" = "tcp" ]; then
|
elif [ "$SPDK_TEST_NVMF_TRANSPORT" = "tcp" ]; then
|
||||||
run_test "nvmf_tcp" ./test/nvmf/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
run_test "nvmf_tcp" $rootdir/test/nvmf/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
||||||
if [[ $SPDK_TEST_URING -eq 0 ]]; then
|
if [[ $SPDK_TEST_URING -eq 0 ]]; then
|
||||||
run_test "spdkcli_nvmf_tcp" ./test/spdkcli/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
run_test "spdkcli_nvmf_tcp" $rootdir/test/spdkcli/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
||||||
run_test "nvmf_identify_passthru" test/nvmf/target/identify_passthru.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
run_test "nvmf_identify_passthru" $rootdir/test/nvmf/target/identify_passthru.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
||||||
fi
|
fi
|
||||||
run_test "nvmf_dif" test/nvmf/target/dif.sh
|
run_test "nvmf_dif" $rootdir/test/nvmf/target/dif.sh
|
||||||
run_test "nvmf_abort_qd_sizes" test/nvmf/target/abort_qd_sizes.sh
|
run_test "nvmf_abort_qd_sizes" $rootdir/test/nvmf/target/abort_qd_sizes.sh
|
||||||
elif [ "$SPDK_TEST_NVMF_TRANSPORT" = "fc" ]; then
|
elif [ "$SPDK_TEST_NVMF_TRANSPORT" = "fc" ]; then
|
||||||
run_test "nvmf_fc" ./test/nvmf/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
run_test "nvmf_fc" $rootdir/test/nvmf/nvmf.sh --transport=$SPDK_TEST_NVMF_TRANSPORT
|
||||||
run_test "spdkcli_nvmf_fc" ./test/spdkcli/nvmf.sh
|
run_test "spdkcli_nvmf_fc" $rootdir/test/spdkcli/nvmf.sh
|
||||||
else
|
else
|
||||||
echo "unknown NVMe transport, please specify rdma, tcp, or fc."
|
echo "unknown NVMe transport, please specify rdma, tcp, or fc."
|
||||||
exit 1
|
exit 1
|
||||||
@ -284,82 +284,82 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_VHOST -eq 1 ]; then
|
if [ $SPDK_TEST_VHOST -eq 1 ]; then
|
||||||
run_test "vhost" ./test/vhost/vhost.sh
|
run_test "vhost" $rootdir/test/vhost/vhost.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_VFIOUSER_QEMU -eq 1 ]; then
|
if [ $SPDK_TEST_VFIOUSER_QEMU -eq 1 ]; then
|
||||||
run_test "vfio_user_qemu" ./test/vfio_user/vfio_user.sh
|
run_test "vfio_user_qemu" $rootdir/test/vfio_user/vfio_user.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_LVOL -eq 1 ]; then
|
if [ $SPDK_TEST_LVOL -eq 1 ]; then
|
||||||
run_test "lvol" ./test/lvol/lvol.sh
|
run_test "lvol" $rootdir/test/lvol/lvol.sh
|
||||||
run_test "blob_io_wait" ./test/blobstore/blob_io_wait/blob_io_wait.sh
|
run_test "blob_io_wait" $rootdir/test/blobstore/blob_io_wait/blob_io_wait.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_VHOST_INIT -eq 1 ]; then
|
if [ $SPDK_TEST_VHOST_INIT -eq 1 ]; then
|
||||||
timing_enter vhost_initiator
|
timing_enter vhost_initiator
|
||||||
run_test "vhost_blockdev" ./test/vhost/initiator/blockdev.sh
|
run_test "vhost_blockdev" $rootdir/test/vhost/initiator/blockdev.sh
|
||||||
run_test "spdkcli_virtio" ./test/spdkcli/virtio.sh
|
run_test "spdkcli_virtio" $rootdir/test/spdkcli/virtio.sh
|
||||||
run_test "vhost_shared" ./test/vhost/shared/shared.sh
|
run_test "vhost_shared" $rootdir/test/vhost/shared/shared.sh
|
||||||
run_test "vhost_fuzz" ./test/vhost/fuzz/fuzz.sh
|
run_test "vhost_fuzz" $rootdir/test/vhost/fuzz/fuzz.sh
|
||||||
timing_exit vhost_initiator
|
timing_exit vhost_initiator
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_PMDK -eq 1 ]; then
|
if [ $SPDK_TEST_PMDK -eq 1 ]; then
|
||||||
run_test "blockdev_pmem" ./test/bdev/blockdev.sh "pmem"
|
run_test "blockdev_pmem" $rootdir/test/bdev/blockdev.sh "pmem"
|
||||||
run_test "pmem" ./test/pmem/pmem.sh -x
|
run_test "pmem" $rootdir/test/pmem/pmem.sh -x
|
||||||
run_test "spdkcli_pmem" ./test/spdkcli/pmem.sh
|
run_test "spdkcli_pmem" $rootdir/test/spdkcli/pmem.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_RBD -eq 1 ]; then
|
if [ $SPDK_TEST_RBD -eq 1 ]; then
|
||||||
run_test "blockdev_rbd" ./test/bdev/blockdev.sh "rbd"
|
run_test "blockdev_rbd" $rootdir/test/bdev/blockdev.sh "rbd"
|
||||||
run_test "spdkcli_rbd" ./test/spdkcli/rbd.sh
|
run_test "spdkcli_rbd" $rootdir/test/spdkcli/rbd.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_OCF -eq 1 ]; then
|
if [ $SPDK_TEST_OCF -eq 1 ]; then
|
||||||
run_test "ocf" ./test/ocf/ocf.sh
|
run_test "ocf" $rootdir/test/ocf/ocf.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_FTL -eq 1 ]; then
|
if [ $SPDK_TEST_FTL -eq 1 ]; then
|
||||||
run_test "ftl" ./test/ftl/ftl.sh
|
run_test "ftl" $rootdir/test/ftl/ftl.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_VMD -eq 1 ]; then
|
if [ $SPDK_TEST_VMD -eq 1 ]; then
|
||||||
run_test "vmd" ./test/vmd/vmd.sh
|
run_test "vmd" $rootdir/test/vmd/vmd.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_VBDEV_COMPRESS -eq 1 ]; then
|
if [ $SPDK_TEST_VBDEV_COMPRESS -eq 1 ]; then
|
||||||
run_test "compress_compdev" ./test/compress/compress.sh "compdev"
|
run_test "compress_compdev" $rootdir/test/compress/compress.sh "compdev"
|
||||||
run_test "compress_isal" ./test/compress/compress.sh "isal"
|
run_test "compress_isal" $rootdir/test/compress/compress.sh "isal"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_OPAL -eq 1 ]; then
|
if [ $SPDK_TEST_OPAL -eq 1 ]; then
|
||||||
run_test "nvme_opal" ./test/nvme/nvme_opal.sh
|
run_test "nvme_opal" $rootdir/test/nvme/nvme_opal.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_CRYPTO -eq 1 ]; then
|
if [ $SPDK_TEST_CRYPTO -eq 1 ]; then
|
||||||
run_test "blockdev_crypto_aesni" ./test/bdev/blockdev.sh "crypto_aesni"
|
run_test "blockdev_crypto_aesni" $rootdir/test/bdev/blockdev.sh "crypto_aesni"
|
||||||
run_test "blockdev_crypto_sw" ./test/bdev/blockdev.sh "crypto_sw"
|
run_test "blockdev_crypto_sw" $rootdir/test/bdev/blockdev.sh "crypto_sw"
|
||||||
# Proceed with the test only if QAT devices are in place
|
# Proceed with the test only if QAT devices are in place
|
||||||
if [[ $(lspci -d:37c8) ]]; then
|
if [[ $(lspci -d:37c8) ]]; then
|
||||||
run_test "blockdev_crypto_qat" ./test/bdev/blockdev.sh "crypto_qat"
|
run_test "blockdev_crypto_qat" $rootdir/test/bdev/blockdev.sh "crypto_qat"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SPDK_TEST_SCHEDULER -eq 1 ]]; then
|
if [[ $SPDK_TEST_SCHEDULER -eq 1 ]]; then
|
||||||
run_test "scheduler" ./test/scheduler/scheduler.sh
|
run_test "scheduler" $rootdir/test/scheduler/scheduler.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SPDK_TEST_SMA -eq 1 ]]; then
|
if [[ $SPDK_TEST_SMA -eq 1 ]]; then
|
||||||
run_test "sma" ./test/sma/sma.sh
|
run_test "sma" $rootdir/test/sma/sma.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SPDK_TEST_FUZZER -eq 1 ]]; then
|
if [[ $SPDK_TEST_FUZZER -eq 1 ]]; then
|
||||||
run_test "llvm_fuzz" test/fuzz/llvm.sh
|
run_test "llvm_fuzz" $rootdir/test/fuzz/llvm.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SPDK_TEST_RAID5 -eq 1 ]]; then
|
if [[ $SPDK_TEST_RAID5 -eq 1 ]]; then
|
||||||
run_test "blockdev_raid5f" ./test/bdev/blockdev.sh "raid5f"
|
run_test "blockdev_raid5f" $rootdir/test/bdev/blockdev.sh "raid5f"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ function app_repeat_test() {
|
|||||||
# This SIGTERM is sent to the app_repeat test app - it doesn't actually
|
# This SIGTERM is sent to the app_repeat test app - it doesn't actually
|
||||||
# terminate the app, it just causes it go through another
|
# terminate the app, it just causes it go through another
|
||||||
# spdk_app_stop/spdk_app_start cycle
|
# spdk_app_stop/spdk_app_start cycle
|
||||||
./scripts/rpc.py -s $rpc_server spdk_kill_instance SIGTERM
|
$rootdir/scripts/rpc.py -s $rpc_server spdk_kill_instance SIGTERM
|
||||||
done
|
done
|
||||||
|
|
||||||
waitforlisten $repeat_pid $rpc_server
|
waitforlisten $repeat_pid $rpc_server
|
||||||
|
@ -22,53 +22,53 @@ create_veth_interfaces
|
|||||||
|
|
||||||
trap 'cleanup_veth_interfaces; exit 1' SIGINT SIGTERM EXIT
|
trap 'cleanup_veth_interfaces; exit 1' SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
run_test "iscsi_tgt_sock" ./test/iscsi_tgt/sock/sock.sh
|
run_test "iscsi_tgt_sock" $rootdir/test/iscsi_tgt/sock/sock.sh
|
||||||
if [[ -d /usr/local/calsoft ]]; then
|
if [[ -d /usr/local/calsoft ]]; then
|
||||||
run_test "iscsi_tgt_calsoft" ./test/iscsi_tgt/calsoft/calsoft.sh
|
run_test "iscsi_tgt_calsoft" $rootdir/test/iscsi_tgt/calsoft/calsoft.sh
|
||||||
else
|
else
|
||||||
skip_run_test_with_warning "WARNING: Calsoft binaries not found, skipping test!"
|
skip_run_test_with_warning "WARNING: Calsoft binaries not found, skipping test!"
|
||||||
fi
|
fi
|
||||||
run_test "iscsi_tgt_filesystem" ./test/iscsi_tgt/filesystem/filesystem.sh
|
run_test "iscsi_tgt_filesystem" $rootdir/test/iscsi_tgt/filesystem/filesystem.sh
|
||||||
run_test "iscsi_tgt_reset" ./test/iscsi_tgt/reset/reset.sh
|
run_test "iscsi_tgt_reset" $rootdir/test/iscsi_tgt/reset/reset.sh
|
||||||
run_test "iscsi_tgt_rpc_config" ./test/iscsi_tgt/rpc_config/rpc_config.sh
|
run_test "iscsi_tgt_rpc_config" $rootdir/test/iscsi_tgt/rpc_config/rpc_config.sh
|
||||||
run_test "iscsi_tgt_iscsi_lvol" ./test/iscsi_tgt/lvol/iscsi_lvol.sh
|
run_test "iscsi_tgt_iscsi_lvol" $rootdir/test/iscsi_tgt/lvol/iscsi_lvol.sh
|
||||||
run_test "iscsi_tgt_fio" ./test/iscsi_tgt/fio/fio.sh
|
run_test "iscsi_tgt_fio" $rootdir/test/iscsi_tgt/fio/fio.sh
|
||||||
run_test "iscsi_tgt_qos" ./test/iscsi_tgt/qos/qos.sh
|
run_test "iscsi_tgt_qos" $rootdir/test/iscsi_tgt/qos/qos.sh
|
||||||
run_test "iscsi_tgt_ip_migration" ./test/iscsi_tgt/ip_migration/ip_migration.sh
|
run_test "iscsi_tgt_ip_migration" $rootdir/test/iscsi_tgt/ip_migration/ip_migration.sh
|
||||||
run_test "iscsi_tgt_trace_record" ./test/iscsi_tgt/trace_record/trace_record.sh
|
run_test "iscsi_tgt_trace_record" $rootdir/test/iscsi_tgt/trace_record/trace_record.sh
|
||||||
run_test "iscsi_tgt_login_redirection" ./test/iscsi_tgt/login_redirection/login_redirection.sh
|
run_test "iscsi_tgt_login_redirection" $rootdir/test/iscsi_tgt/login_redirection/login_redirection.sh
|
||||||
|
|
||||||
if [ $RUN_NIGHTLY -eq 1 ]; then
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
||||||
if [ $SPDK_TEST_PMDK -eq 1 ]; then
|
if [ $SPDK_TEST_PMDK -eq 1 ]; then
|
||||||
run_test "iscsi_tgt_pmem" ./test/iscsi_tgt/pmem/iscsi_pmem.sh 4096 10
|
run_test "iscsi_tgt_pmem" $rootdir/test/iscsi_tgt/pmem/iscsi_pmem.sh 4096 10
|
||||||
fi
|
fi
|
||||||
run_test "iscsi_tgt_ext4test" ./test/iscsi_tgt/ext4test/ext4test.sh
|
run_test "iscsi_tgt_ext4test" $rootdir/test/iscsi_tgt/ext4test/ext4test.sh
|
||||||
run_test "iscsi_tgt_digests" ./test/iscsi_tgt/digests/digests.sh
|
run_test "iscsi_tgt_digests" $rootdir/test/iscsi_tgt/digests/digests.sh
|
||||||
fi
|
fi
|
||||||
if [ $SPDK_TEST_RBD -eq 1 ]; then
|
if [ $SPDK_TEST_RBD -eq 1 ]; then
|
||||||
if ! hash ceph; then
|
if ! hash ceph; then
|
||||||
echo "ERROR: SPDK_TEST_RBD requested but no ceph installed!"
|
echo "ERROR: SPDK_TEST_RBD requested but no ceph installed!"
|
||||||
false
|
false
|
||||||
fi
|
fi
|
||||||
run_test "iscsi_tgt_rbd" ./test/iscsi_tgt/rbd/rbd.sh
|
run_test "iscsi_tgt_rbd" $rootdir/test/iscsi_tgt/rbd/rbd.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
trap 'cleanup_veth_interfaces; exit 1' SIGINT SIGTERM EXIT
|
trap 'cleanup_veth_interfaces; exit 1' SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
if [ $SPDK_TEST_NVMF -eq 1 ]; then
|
if [ $SPDK_TEST_NVMF -eq 1 ]; then
|
||||||
# Test configure remote NVMe device from rpc and conf file
|
# Test configure remote NVMe device from rpc and conf file
|
||||||
run_test "iscsi_tgt_fio_remote_nvme" ./test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh
|
run_test "iscsi_tgt_fio_remote_nvme" $rootdir/test/iscsi_tgt/nvme_remote/fio_remote_nvme.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $RUN_NIGHTLY -eq 1 ]; then
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
||||||
run_test "iscsi_tgt_fuzz" ./test/iscsi_tgt/fuzz/fuzz.sh
|
run_test "iscsi_tgt_fuzz" $rootdir/test/iscsi_tgt/fuzz/fuzz.sh
|
||||||
run_test "iscsi_tgt_multiconnection" ./test/iscsi_tgt/multiconnection/multiconnection.sh
|
run_test "iscsi_tgt_multiconnection" $rootdir/test/iscsi_tgt/multiconnection/multiconnection.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $SPDK_TEST_ISCSI_INITIATOR -eq 1 ]; then
|
if [ $SPDK_TEST_ISCSI_INITIATOR -eq 1 ]; then
|
||||||
run_test "iscsi_tgt_initiator" ./test/iscsi_tgt/initiator/initiator.sh
|
run_test "iscsi_tgt_initiator" $rootdir/test/iscsi_tgt/initiator/initiator.sh
|
||||||
run_test "iscsi_tgt_bdev_io_wait" ./test/iscsi_tgt/bdev_io_wait/bdev_io_wait.sh
|
run_test "iscsi_tgt_bdev_io_wait" $rootdir/test/iscsi_tgt/bdev_io_wait/bdev_io_wait.sh
|
||||||
run_test "iscsi_tgt_resize" ./test/iscsi_tgt/resize/resize.sh
|
run_test "iscsi_tgt_resize" $rootdir/test/iscsi_tgt/resize/resize.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cleanup_veth_interfaces
|
cleanup_veth_interfaces
|
||||||
|
@ -52,7 +52,7 @@ echo "iscsi_tgt is listening. Running tests..."
|
|||||||
timing_exit start_iscsi_tgt
|
timing_exit start_iscsi_tgt
|
||||||
|
|
||||||
mkdir -p ${TRACE_TMP_FOLDER}
|
mkdir -p ${TRACE_TMP_FOLDER}
|
||||||
./build/bin/spdk_trace_record -s iscsi -p ${iscsi_pid} -f ${TRACE_RECORD_OUTPUT} -q 1> ${TRACE_RECORD_NOTICE_LOG} &
|
$rootdir/build/bin/spdk_trace_record -s iscsi -p ${iscsi_pid} -f ${TRACE_RECORD_OUTPUT} -q 1> ${TRACE_RECORD_NOTICE_LOG} &
|
||||||
record_pid=$!
|
record_pid=$!
|
||||||
echo "Trace record pid: $record_pid"
|
echo "Trace record pid: $record_pid"
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ trap 'delete_tmp_files; iscsitestfini; exit 1' SIGINT SIGTERM EXIT
|
|||||||
|
|
||||||
killprocess $iscsi_pid
|
killprocess $iscsi_pid
|
||||||
killprocess $record_pid
|
killprocess $record_pid
|
||||||
./build/bin/spdk_trace -f ${TRACE_RECORD_OUTPUT} > ${TRACE_TOOL_LOG}
|
$rootdir/build/bin/spdk_trace -f ${TRACE_RECORD_OUTPUT} > ${TRACE_TOOL_LOG}
|
||||||
|
|
||||||
#verify trace record and trace tool
|
#verify trace record and trace tool
|
||||||
#trace entries str in trace-record, like "Trace Size of lcore (0): 4136"
|
#trace entries str in trace-record, like "Trace Size of lcore (0): 4136"
|
||||||
|
@ -10,13 +10,13 @@ source $rootdir/test/common/autotest_common.sh
|
|||||||
timing_enter lvol
|
timing_enter lvol
|
||||||
|
|
||||||
timing_enter basic
|
timing_enter basic
|
||||||
run_test "lvol_basic" test/lvol/basic.sh
|
run_test "lvol_basic" $rootdir/test/lvol/basic.sh
|
||||||
run_test "lvol_resize" test/lvol/resize.sh
|
run_test "lvol_resize" $rootdir/test/lvol/resize.sh
|
||||||
run_test "lvol_hotremove" test/lvol/hotremove.sh
|
run_test "lvol_hotremove" $rootdir/test/lvol/hotremove.sh
|
||||||
run_test "lvol_tasting" test/lvol/tasting.sh
|
run_test "lvol_tasting" $rootdir/test/lvol/tasting.sh
|
||||||
run_test "lvol_snapshot_clone" test/lvol/snapshot_clone.sh
|
run_test "lvol_snapshot_clone" $rootdir/test/lvol/snapshot_clone.sh
|
||||||
run_test "lvol_rename" test/lvol/rename.sh
|
run_test "lvol_rename" $rootdir/test/lvol/rename.sh
|
||||||
run_test "lvol_provisioning" test/lvol/thin_provisioning.sh
|
run_test "lvol_provisioning" $rootdir/test/lvol/thin_provisioning.sh
|
||||||
timing_exit basic
|
timing_exit basic
|
||||||
|
|
||||||
timing_exit lvol
|
timing_exit lvol
|
||||||
|
@ -50,10 +50,10 @@ function check_header_filenames() {
|
|||||||
|
|
||||||
xtrace_disable
|
xtrace_disable
|
||||||
|
|
||||||
include_headers=$(git ls-files -- include/spdk include/spdk_internal | xargs -n 1 basename)
|
include_headers=$(git ls-files -- $rootdir/include/spdk $rootdir/include/spdk_internal | xargs -n 1 basename)
|
||||||
dups=
|
dups=
|
||||||
for file in $include_headers; do
|
for file in $include_headers; do
|
||||||
if [[ $(git ls-files "lib/**/$file" "module/**/$file" --error-unmatch 2> /dev/null) ]]; then
|
if [[ $(git ls-files "$rootdir/lib/**/$file" "$rootdir/module/**/$file" --error-unmatch 2> /dev/null) ]]; then
|
||||||
dups+=" $file"
|
dups+=" $file"
|
||||||
dups_found=1
|
dups_found=1
|
||||||
fi
|
fi
|
||||||
@ -309,7 +309,7 @@ if [[ -f $rootdir/mk/config.mk ]]; then
|
|||||||
$MAKE $MAKEFLAGS clean
|
$MAKE $MAKEFLAGS clean
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./configure $config_params --with-shared
|
$rootdir/configure $config_params --with-shared
|
||||||
# By setting SPDK_NO_LIB_DEPS=1, we ensure that we won't create any link dependencies.
|
# By setting SPDK_NO_LIB_DEPS=1, we ensure that we won't create any link dependencies.
|
||||||
# Then we can be sure we get a valid accounting of the symbol dependencies we have.
|
# Then we can be sure we get a valid accounting of the symbol dependencies we have.
|
||||||
SPDK_NO_LIB_DEPS=1 $MAKE $MAKEFLAGS
|
SPDK_NO_LIB_DEPS=1 $MAKE $MAKEFLAGS
|
||||||
|
@ -20,44 +20,44 @@ TEST_ARGS=("$@")
|
|||||||
timing_enter target
|
timing_enter target
|
||||||
|
|
||||||
if [[ $SPDK_TEST_URING -eq 0 ]]; then
|
if [[ $SPDK_TEST_URING -eq 0 ]]; then
|
||||||
run_test "nvmf_example" test/nvmf/target/nvmf_example.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_example" $rootdir/test/nvmf/target/nvmf_example.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_filesystem" test/nvmf/target/filesystem.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_filesystem" $rootdir/test/nvmf/target/filesystem.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_discovery" test/nvmf/target/discovery.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_discovery" $rootdir/test/nvmf/target/discovery.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_connect_disconnect" test/nvmf/target/connect_disconnect.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_connect_disconnect" $rootdir/test/nvmf/target/connect_disconnect.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_multitarget" test/nvmf/target/multitarget.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_multitarget" $rootdir/test/nvmf/target/multitarget.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_rpc" test/nvmf/target/rpc.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_rpc" $rootdir/test/nvmf/target/rpc.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_invalid" test/nvmf/target/invalid.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_invalid" $rootdir/test/nvmf/target/invalid.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_abort" test/nvmf/target/abort.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_abort" $rootdir/test/nvmf/target/abort.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_ns_hotplug_stress" test/nvmf/target/ns_hotplug_stress.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_ns_hotplug_stress" $rootdir/test/nvmf/target/ns_hotplug_stress.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_connect_stress" test/nvmf/target/connect_stress.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_connect_stress" $rootdir/test/nvmf/target/connect_stress.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_fused_ordering" test/nvmf/target/fused_ordering.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_fused_ordering" $rootdir/test/nvmf/target/fused_ordering.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_delete_subsystem" test/nvmf/target/delete_subsystem.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_delete_subsystem" $rootdir/test/nvmf/target/delete_subsystem.sh "${TEST_ARGS[@]}"
|
||||||
if [[ $SPDK_TEST_NVME_CLI -eq 1 ]]; then
|
if [[ $SPDK_TEST_NVME_CLI -eq 1 ]]; then
|
||||||
run_test "nvmf_nvme_cli" test/nvmf/target/nvme_cli.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_nvme_cli" $rootdir/test/nvmf/target/nvme_cli.sh "${TEST_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
if [[ $SPDK_TEST_VFIOUSER -eq 1 ]]; then
|
if [[ $SPDK_TEST_VFIOUSER -eq 1 ]]; then
|
||||||
run_test "nvmf_vfio_user" test/nvmf/target/nvmf_vfio_user.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_vfio_user" $rootdir/test/nvmf/target/nvmf_vfio_user.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_vfio_user_nvme_compliance" test/nvme/compliance/compliance.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_vfio_user_nvme_compliance" $rootdir/test/nvme/compliance/compliance.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_vfio_user_fuzz" test/nvmf/target/vfio_user_fuzz.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_vfio_user_fuzz" $rootdir/test/nvmf/target/vfio_user_fuzz.sh "${TEST_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_test "nvmf_host_management" test/nvmf/target/host_management.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_host_management" $rootdir/test/nvmf/target/host_management.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_lvol" test/nvmf/target/nvmf_lvol.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_lvol" $rootdir/test/nvmf/target/nvmf_lvol.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_vhost" test/nvmf/target/nvmf_vhost.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_vhost" $rootdir/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_bdev_io_wait" $rootdir/test/nvmf/target/bdev_io_wait.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_queue_depth" test/nvmf/target/queue_depth.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_queue_depth" $rootdir/test/nvmf/target/queue_depth.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_multipath" test/nvmf/target/multipath.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_multipath" $rootdir/test/nvmf/target/multipath.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_zcopy" test/nvmf/target/zcopy.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_zcopy" $rootdir/test/nvmf/target/zcopy.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_tls" test/nvmf/target/tls.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_tls" $rootdir/test/nvmf/target/tls.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_nmic" test/nvmf/target/nmic.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_nmic" $rootdir/test/nvmf/target/nmic.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_fio_target" test/nvmf/target/fio.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_fio_target" $rootdir/test/nvmf/target/fio.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_bdevio" test/nvmf/target/bdevio.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_bdevio" $rootdir/test/nvmf/target/bdevio.sh "${TEST_ARGS[@]}"
|
||||||
|
|
||||||
if [ $RUN_NIGHTLY -eq 1 ]; then
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
||||||
run_test "nvmf_fuzz" test/nvmf/target/fabrics_fuzz.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_fuzz" $rootdir/test/nvmf/target/fabrics_fuzz.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_multiconnection" test/nvmf/target/multiconnection.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_multiconnection" $rootdir/test/nvmf/target/multiconnection.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_initiator_timeout" test/nvmf/target/initiator_timeout.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_initiator_timeout" $rootdir/test/nvmf/target/initiator_timeout.sh "${TEST_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $NET_TYPE == phy ]]; then
|
if [[ $NET_TYPE == phy ]]; then
|
||||||
@ -65,12 +65,12 @@ if [[ $NET_TYPE == phy ]]; then
|
|||||||
gather_supported_nvmf_pci_devs
|
gather_supported_nvmf_pci_devs
|
||||||
TCP_INTERFACE_LIST=("${net_devs[@]}")
|
TCP_INTERFACE_LIST=("${net_devs[@]}")
|
||||||
if ((${#TCP_INTERFACE_LIST[@]} > 0)); then
|
if ((${#TCP_INTERFACE_LIST[@]} > 0)); then
|
||||||
run_test "nvmf_perf_adq" test/nvmf/target/perf_adq.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_perf_adq" $rootdir/test/nvmf/target/perf_adq.sh "${TEST_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
run_test "nvmf_shutdown" test/nvmf/target/shutdown.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_shutdown" $rootdir/test/nvmf/target/shutdown.sh "${TEST_ARGS[@]}"
|
||||||
#TODO: disabled due to intermittent failures. Need to triage.
|
# TODO: disabled due to intermittent failures. Need to triage.
|
||||||
# run_test "nvmf_srq_overwhelm" test/nvmf/target/srq_overwhelm.sh $TEST_ARGS
|
# run_test "nvmf_srq_overwhelm" $rootdir/test/nvmf/target/srq_overwhelm.sh "${TEST_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
timing_exit target
|
timing_exit target
|
||||||
@ -78,35 +78,35 @@ timing_exit target
|
|||||||
timing_enter host
|
timing_enter host
|
||||||
|
|
||||||
if [[ $SPDK_TEST_URING -eq 0 ]]; then
|
if [[ $SPDK_TEST_URING -eq 0 ]]; then
|
||||||
run_test "nvmf_multicontroller" test/nvmf/host/multicontroller.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_multicontroller" $rootdir/test/nvmf/host/multicontroller.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_aer" test/nvmf/host/aer.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_aer" $rootdir/test/nvmf/host/aer.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_async_init" test/nvmf/host/async_init.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_async_init" $rootdir/test/nvmf/host/async_init.sh "${TEST_ARGS[@]}"
|
||||||
run_test "dma" test/nvmf/host/dma.sh "${TEST_ARGS[@]}"
|
run_test "dma" $rootdir/test/nvmf/host/dma.sh "${TEST_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_test "nvmf_identify" test/nvmf/host/identify.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_identify" $rootdir/test/nvmf/host/identify.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_perf" test/nvmf/host/perf.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_perf" $rootdir/test/nvmf/host/perf.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_fio_host" test/nvmf/host/fio.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_fio_host" $rootdir/test/nvmf/host/fio.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_failover" test/nvmf/host/failover.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_failover" $rootdir/test/nvmf/host/failover.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_discovery" test/nvmf/host/discovery.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_discovery" $rootdir/test/nvmf/host/discovery.sh "${TEST_ARGS[@]}"
|
||||||
# TODO: disabled due to intermittent failures (RDMA_CM_EVENT_UNREACHABLE/ETIMEDOUT)
|
# TODO: disabled due to intermittent failures (RDMA_CM_EVENT_UNREACHABLE/ETIMEDOUT)
|
||||||
#run_test test/nvmf/host/identify_kernel_nvmf.sh $TEST_ARGS
|
#run_test $rootdir/test/nvmf/host/identify_kernel_nvmf.sh $TEST_ARGS
|
||||||
|
|
||||||
if [[ $SPDK_TEST_NVMF_MDNS -eq 1 && "$SPDK_TEST_NVMF_TRANSPORT" == "tcp" ]]; then
|
if [[ $SPDK_TEST_NVMF_MDNS -eq 1 && "$SPDK_TEST_NVMF_TRANSPORT" == "tcp" ]]; then
|
||||||
# Skipping tests on RDMA because the rdma stack fails to configure the same IP for host and target.
|
# Skipping tests on RDMA because the rdma stack fails to configure the same IP for host and target.
|
||||||
run_test "nvmf_mdns_discovery" test/nvmf/host/mdns_discovery.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_mdns_discovery" $rootdir/test/nvmf/host/mdns_discovery.sh "${TEST_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SPDK_TEST_USDT -eq 1 ]]; then
|
if [[ $SPDK_TEST_USDT -eq 1 ]]; then
|
||||||
run_test "nvmf_multipath" test/nvmf/host/multipath.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_multipath" $rootdir/test/nvmf/host/multipath.sh "${TEST_ARGS[@]}"
|
||||||
run_test "nvmf_timeout" test/nvmf/host/timeout.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_timeout" $rootdir/test/nvmf/host/timeout.sh "${TEST_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $NET_TYPE == phy ]]; then
|
if [[ $NET_TYPE == phy ]]; then
|
||||||
# GitHub issue #1165
|
# GitHub issue #1165
|
||||||
run_test "nvmf_bdevperf" test/nvmf/host/bdevperf.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_bdevperf" $rootdir/test/nvmf/host/bdevperf.sh "${TEST_ARGS[@]}"
|
||||||
# GitHub issue #1043
|
# GitHub issue #1043
|
||||||
run_test "nvmf_target_disconnect" test/nvmf/host/target_disconnect.sh "${TEST_ARGS[@]}"
|
run_test "nvmf_target_disconnect" $rootdir/test/nvmf/host/target_disconnect.sh "${TEST_ARGS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
timing_exit host
|
timing_exit host
|
||||||
|
@ -72,4 +72,4 @@ run_test "vhost_blk_packed_ring_integrity" $WORKDIR/fiotest/fio.sh -x --fio-bin=
|
|||||||
--fio-job=$WORKDIR/common/fio_jobs/default_integrity.job \
|
--fio-job=$WORKDIR/common/fio_jobs/default_integrity.job \
|
||||||
--packed
|
--packed
|
||||||
|
|
||||||
run_test "spdkcli_vhost" ./test/spdkcli/vhost.sh
|
run_test "spdkcli_vhost" $rootdir/test/spdkcli/vhost.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user