diff --git a/autotest.sh b/autotest.sh index a5f63c164e..4020553ef5 100755 --- a/autotest.sh +++ b/autotest.sh @@ -194,11 +194,16 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then run_test "bdev_raid" test/bdev/bdev_raid.sh run_test "bdevperf_config" test/bdev/bdevperf/test_config.sh if [[ $(uname -s) == Linux ]]; then - run_test "spdk_dd" test/dd/dd.sh run_test "reactor_set_interrupt" test/interrupt/reactor_set_interrupt.sh fi fi + if [[ $(uname -s) == Linux ]]; then + if [[ $SPDK_TEST_BLOCKDEV -eq 1 || $SPDK_TEST_URING -eq 1 ]]; then + run_test "spdk_dd" test/dd/dd.sh + fi + fi + if [ $SPDK_TEST_JSON -eq 1 ]; then run_test "test_converter" test/config_converter/test_converter.sh fi diff --git a/test/dd/dd.sh b/test/dd/dd.sh index e2b8bb86a0..7789911045 100755 --- a/test/dd/dd.sh +++ b/test/dd/dd.sh @@ -8,6 +8,11 @@ nvmes=($(nvme_in_userspace)) check_liburing +if ((liburing_in_use == 0 && SPDK_TEST_URING == 1)); then + printf 'SPDK_TEST_URING is set but spdk_dd is not linked to liburing, aborting\n' >&2 + exit 1 +fi + run_test "spdk_dd_basic_rw" "$testdir/basic_rw.sh" "${nvmes[@]}" run_test "spdk_dd_posix" "$testdir/posix.sh" run_test "spdk_dd_bdev_to_bdev" "$testdir/bdev_to_bdev.sh" "${nvmes[@]}"