mirror-linux/tools/testing/selftests
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
..
acct
alsa selftests: ALSA: fix memory leak in utimer test 2025-07-31 17:01:53 +02:00
amd-pstate
arm64 arm64 updates for 6.17: 2025-07-29 20:21:54 -07:00
bpf powerpc fixes for 6.17 #2 2025-08-03 19:15:04 -07:00
breakpoints selftests: breakpoints: use suspend_stats to reliably check suspend success 2025-07-10 14:21:30 -06:00
cachestat selftests: cachestat: add tests for mmap, refactor and enhance mmap test for cachestat validation 2025-08-02 12:06:09 -07:00
capabilities
cgroup selftests/cgroup: fix cpu.max tests 2025-07-17 08:12:19 -10:00
clone3
connector
core
coredump selftests/coredump: Remove the read() that fails the test 2025-08-11 15:43:31 +02:00
cpu-hotplug selftests/cpu-hotplug: fix typo in hotplaggable_offline_cpus function name 2025-06-17 14:12:16 -06:00
cpufreq kselftest: cpufreq: Get rid of double suspend in rtcwake case 2025-05-09 12:43:39 -06:00
damon selftests/damon: fix selftests by installing drgn related script 2025-08-19 16:35:55 -07:00
devices
dma
dmabuf-heaps
drivers selftests: bonding: add test for passive LACP mode 2025-08-21 09:35:21 +02:00
dt
efivarfs
exec
fchmodat2
filelock
filesystems selftests/kernfs: test xattr retrieval 2025-07-02 14:18:22 +02:00
firmware
fpu
ftrace Probes updates for v6.17: 2025-07-30 15:38:01 -07:00
futex Update for the futex subsystem: 2025-07-29 14:39:42 -07:00
gpio
hid hid-for-linus-2025073101 2025-07-31 21:26:05 -07:00
ia64
intel_pstate
iommu iommufd 6.17 merge window pull 2025-07-31 12:43:08 -07:00
ipc selftests: ipc: Replace fail print statements with ksft_test_result_fail 2025-06-17 14:45:05 -06:00
ir
kcmp
kexec selftests/kexec: fix test_kexec_jump build 2025-07-22 15:10:52 -06:00
kho kho: add test for kexec handover 2025-08-02 12:01:41 -07:00
kmod lib/test_kmod: do not hardcode/depend on any filesystem 2025-05-11 17:54:09 -07:00
kselftest
kselftest_harness selftests: harness: Add kselftest harness selftest 2025-05-21 15:32:27 +02:00
kvm ARM: 2025-07-30 17:14:01 -07:00
landlock selftests/landlock: Add test to check rule tied to covered mount point 2025-06-19 13:55:41 +02:00
lib
livepatch
lkdtm stackleak: Rename STACKLEAK to KSTACK_ERASE 2025-07-21 21:35:01 -07:00
locking
lsm
media_tests
membarrier
memfd
memory-hotplug
mincore
mm selftests/mm: add test for invalid multi VMA operations 2025-08-19 16:35:55 -07:00
module
mount
mount_setattr selftests/mount_setattr: add smoke tests for open_tree_attr(2) bug 2025-08-11 14:51:49 +02:00
move_mount_set_group
mqueue
mseal_system_mappings
nci selftests: nci: Fix "Electrnoics" to "Electronics" 2025-05-20 18:13:43 -07:00
net selftests: tls: add tests for zero-length records 2025-08-21 07:52:31 -07:00
nolibc selftests/nolibc: add x32 test configuration 2025-07-13 16:58:41 +02:00
ntb
openat2
pci_endpoint selftests: pci_endpoint: Add doorbell test case 2025-07-24 16:51:47 -05:00
pcie_bwctrl
perf_events selftests/perf_events: Add a mmap() correctness test 2025-08-05 21:55:29 +02:00
pid_namespace selftests: pid_namespace: add missing sys/mount.h include in pid_max.c 2025-05-09 13:12:33 -06:00
pidfd linux_kselftest-next-6.17-rc1 2025-07-29 12:48:53 -07:00
power_supply
powerpc
prctl
proc selftests/proc: fix string literal warning in proc-maps-race.c 2025-08-11 23:00:59 -07:00
pstore
ptp testptp: add option to enable external timestamping edges 2025-06-23 13:32:14 +01:00
ptrace Significant patch series in this pull request: 2025-08-03 16:23:09 -07:00
rcutorture Merge branches 'rcu-exp.23.07.2025', 'rcu.22.07.2025', 'torture-scripts.16.07.2025', 'srcu.19.07.2025', 'rcu.nocb.18.07.2025' and 'refscale.07.07.2025' into rcu.merge.23.07.2025 2025-07-23 21:42:20 +05:30
resctrl
ring-buffer
riscv
rlimits
rseq
rtc
rust
safesetid
sched
sched_ext selftests/sched_ext: Remove duplicate sched.h header 2025-08-11 08:24:08 -10:00
seccomp selftests: seccomp: Fix "performace" to "performance" 2025-05-20 13:16:39 -07:00
sgx
signal
size
sparc64
splice
static_keys
sync
syscall_user_dispatch selftests: Add tests for PR_SYS_DISPATCH_INCLUSIVE_ON 2025-06-13 18:36:39 +02:00
sysctl sysctl: Nixify sysctl.sh 2025-07-23 11:56:02 +02:00
tc-testing selftests/tc-testing: Check backlog stats in gso_skb case 2025-08-14 17:52:29 -07:00
tdx
thermal/intel selftests/thermal: remove duplicate newlines in perror calls 2025-07-19 19:08:28 -07:00
timens selftests/timens: timerfd: Use correct clockid type in tclock_gettime() 2025-05-09 13:12:57 -06:00
timers
tmpfs
tpm2
tty
turbostat
ublk selftests: ublk: fix behavior when fio is not installed 2025-09-20 23:18:23 -06:00
uevent
user_events
vDSO selftests: vDSO: vdso_standalone_test_x86: Replace source file with symlink 2025-07-01 15:50:43 +02:00
vsock selftests/vsock: add initial vmtest.sh for vsock 2025-06-11 13:17:59 -07:00
watchdog
wireguard selftests: net: Enable legacy netfilter legacy options. 2025-07-25 18:38:55 +02:00
x86 selftests/x86: Add a test to detect infinite SIGTRAP handler loop 2025-06-09 08:52:06 -07:00
zram
.gitignore
Makefile nolibc changes for v6.17 2025-07-29 15:32:02 -07:00
gen_kselftest_tar.sh
kselftest.h
kselftest_deps.sh
kselftest_harness.h selftests: harness: Stop using setjmp()/longjmp() 2025-05-21 15:32:37 +02:00
kselftest_install.sh
kselftest_module.h
lib.mk
run_kselftest.sh selftests/run_kselftest.sh: Use readlink if realpath is not available 2025-05-15 16:52:47 -06:00