a3a0651569
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>
19 lines
545 B
Bash
Executable File
19 lines
545 B
Bash
Executable File
#!/usr/bin/env bash
|
|
testdir=$(readlink -f "$(dirname "$0")")
|
|
rootdir=$(readlink -f "$testdir/../../")
|
|
source "$testdir/common.sh"
|
|
|
|
"$rootdir/scripts/setup.sh"
|
|
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[@]}"
|