test/dd: Rerun POSIX tests with AIO
In case spdk_dd was compiled with liburing support, rerun the tests with forced AIO. Change-Id: I26bee51b2671c19189a2678f48aef4809b7b1621 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3479 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com>
This commit is contained in:
parent
6bb13965a5
commit
a70c87ad8a
@ -86,13 +86,37 @@ io() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
trap "cleanup" EXIT
|
tests() {
|
||||||
|
printf '* First test run%s\n' \
|
||||||
test_file0=$SPDK_TEST_STORAGE/dd.dump0
|
"${msg[liburing_in_use]}" >&2
|
||||||
test_file1=$SPDK_TEST_STORAGE/dd.dump1
|
|
||||||
|
|
||||||
run_test "dd_flag_append" append
|
run_test "dd_flag_append" append
|
||||||
run_test "dd_flag_directory" directory
|
run_test "dd_flag_directory" directory
|
||||||
run_test "dd_flag_nofollow" nofollow
|
run_test "dd_flag_nofollow" nofollow
|
||||||
run_test "dd_flag_noatime" noatime
|
run_test "dd_flag_noatime" noatime
|
||||||
run_test "dd_flags_misc" io
|
run_test "dd_flags_misc" io
|
||||||
|
}
|
||||||
|
|
||||||
|
tests_forced_aio() {
|
||||||
|
printf '* Second test run%s\n' \
|
||||||
|
"${msg[liburing_in_use ? 2 : 0]}" >&2
|
||||||
|
|
||||||
|
DD_APP+=("--aio")
|
||||||
|
run_test "dd_flag_append_forced_aio" append
|
||||||
|
run_test "dd_flag_directory_forced_aio" directory
|
||||||
|
run_test "dd_flag_nofollow_forced_aio" nofollow
|
||||||
|
run_test "dd_flag_noatime_forced_aio" noatime
|
||||||
|
run_test "dd_flags_misc_forced_aio" io
|
||||||
|
}
|
||||||
|
|
||||||
|
msg[0]=", using AIO"
|
||||||
|
msg[1]=", liburing in use"
|
||||||
|
msg[2]=", disabling liburing, forcing AIO"
|
||||||
|
|
||||||
|
trap "cleanup" EXIT
|
||||||
|
|
||||||
|
test_file0=$SPDK_TEST_STORAGE/dd.dump0
|
||||||
|
test_file1=$SPDK_TEST_STORAGE/dd.dump1
|
||||||
|
|
||||||
|
tests
|
||||||
|
tests_forced_aio
|
||||||
|
Loading…
Reference in New Issue
Block a user