linux/tools/testing/selftests/ublk
Uday Shankar a3835a4410 selftests: ublk: fix behavior when fio is not installed
Some ublk selftests have strange behavior when fio is not installed.
While most tests behave correctly (run if they don't need fio, or skip
if they need fio), the following tests have different behavior:

- test_null_01, test_null_02, test_generic_01, test_generic_02, and
  test_generic_12 try to run fio without checking if it exists first,
  and fail on any failure of the fio command (including "fio command
  not found"). So these tests fail when they should skip.
- test_stress_05 runs fio without checking if it exists first, but
  doesn't fail on fio command failure. This test passes, but that pass
  is misleading as the test doesn't do anything useful without fio
  installed. So this test passes when it should skip.

Fix these issues by adding _have_program fio checks to the top of all of
these tests.

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-09-20 23:18:23 -06:00
..
trace selftests: ublk: add functional test for per io daemons 2025-05-31 14:38:48 -06:00
.gitignore
Makefile selftests: ublk: add test to verify that feat_map is complete 2025-09-19 11:06:15 -06:00
common.c selftests: ublk: move common code into common.c 2025-03-22 08:35:08 -06:00
config
fault_inject.c selftests: ublk: pass 'ublk_thread *' to more common helpers 2025-07-15 08:04:17 -06:00
file_backed.c selftests: ublk: pass 'ublk_thread *' to more common helpers 2025-07-15 08:04:17 -06:00
kublk.c selftests: ublk: kublk: add UBLK_F_BUF_REG_OFF_DAEMON to feat_map 2025-09-19 11:06:15 -06:00
kublk.h selftests: ublk: add utils.h 2025-07-15 08:04:17 -06:00
null.c selftests: ublk: remove ublk queue self-defined flags 2025-07-15 08:04:17 -06:00
stripe.c selftests: ublk: pass 'ublk_thread *' to more common helpers 2025-07-15 08:04:17 -06:00
test_common.sh selftests: ublk: add stress test for per io daemons 2025-05-31 14:38:53 -06:00
test_generic_01.sh selftests: ublk: fix behavior when fio is not installed 2025-09-20 23:18:23 -06:00
test_generic_02.sh selftests: ublk: fix behavior when fio is not installed 2025-09-20 23:18:23 -06:00
test_generic_03.sh selftests: ublk: add test for checking zero copy related parameter 2025-03-28 16:15:43 -06:00
test_generic_04.sh selftests: ublk: add test for UBLK_F_QUIESCE 2025-05-23 09:42:12 -06:00
test_generic_05.sh selftests: ublk: add test for UBLK_F_QUIESCE 2025-05-23 09:42:12 -06:00
test_generic_06.sh selftests: ublk: make test_generic_06 silent on success 2025-05-05 16:54:52 -06:00
test_generic_07.sh selftests: ublk: fix UBLK_F_NEED_GET_DATA 2025-04-29 06:01:36 -06:00
test_generic_08.sh selftests: ublk: support UBLK_F_AUTO_BUF_REG 2025-05-20 10:24:45 -06:00
test_generic_09.sh selftests: ublk: add test for covering UBLK_AUTO_BUF_REG_FALLBACK 2025-05-20 10:24:45 -06:00
test_generic_10.sh selftests: ublk: add test case for UBLK_U_CMD_UPDATE_SIZE 2025-05-23 09:42:12 -06:00
test_generic_11.sh selftests: ublk: add test for UBLK_F_QUIESCE 2025-05-23 09:42:12 -06:00
test_generic_12.sh selftests: ublk: fix behavior when fio is not installed 2025-09-20 23:18:23 -06:00
test_generic_13.sh selftests: ublk: add test to verify that feat_map is complete 2025-09-19 11:06:15 -06:00
test_loop_01.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_loop_02.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_loop_03.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_loop_04.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_loop_05.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_null_01.sh selftests: ublk: fix behavior when fio is not installed 2025-09-20 23:18:23 -06:00
test_null_02.sh selftests: ublk: fix behavior when fio is not installed 2025-09-20 23:18:23 -06:00
test_stress_01.sh selftests: ublk: run stress tests in parallel 2025-04-16 19:32:18 -06:00
test_stress_02.sh selftests: ublk: make IO & device removal test more stressful 2025-05-20 10:24:13 -06:00
test_stress_03.sh selftests: ublk: don't take same backing file for more than one ublk devices 2025-06-24 20:45:31 -06:00
test_stress_04.sh selftests: ublk: cover PER_IO_DAEMON in more stress tests 2025-06-02 12:00:31 -06:00
test_stress_05.sh selftests: ublk: fix behavior when fio is not installed 2025-09-20 23:18:23 -06:00
test_stripe_01.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_stripe_02.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_stripe_03.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
test_stripe_04.sh selftests: ublk: cleanup backfile automatically 2025-04-16 19:32:18 -06:00
ublk_dep.h selftests: ublk: add one dependency header 2025-03-20 17:18:55 -06:00
utils.h selftests: ublk: add utils.h 2025-07-15 08:04:17 -06:00