autotest: Run dd tests under SPDK_TEST_URING
As these tests were limited to SPDK_TEST_BLOCKBDEV the spdk_dd was not being tested against liburing. Make sure it is the case now. Also, fail the test if spdk_dd is not linked to liburing in case where such tests were requested. Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: I5704577530048ed4775ea15a6cdacf23380b5072 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7653 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
1c71de70bd
commit
a3a0651569
@ -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
|
||||
|
@ -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[@]}"
|
||||
|
Loading…
Reference in New Issue
Block a user