linux-kernelorg-stable/tools/testing/selftests
Shivam Chaudhary 58beae2585 selftests: tmpfs: Add kselftest support to tmpfs
Replace direct error handling with 'ksft_test_result_*'
macros for better reporting.

Test logs:

Before change:
- Without root
 error: unshare, errno 1

- With root
 No, output

After change:
- Without root
TAP version 13
1..1
ok 2 # SKIP This test needs root to run!
Totals: pass:0 fail:0 xfail:0 xpass:0 skip:1 error:0

- With root
TAP version 13
1..1
ok 1 Test : Success
Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0

Link: https://lore.kernel.org/r/20250105085255.124929-3-cvam0000@gmail.com
Signed-off-by: Shivam Chaudhary <cvam0000@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2025-01-14 17:06:32 -07:00
..
acct selftests: acct: Add ksft_exit_skip if not running as root 2025-01-14 17:06:31 -07:00
alsa selftests/alsa: Fix circular dependency involving global-timer 2024-12-20 10:00:41 +01:00
amd-pstate
arm64 kselftest/arm64: abi: fix SVCR detection 2024-12-13 14:59:37 +00:00
bpf selftests/bpf: Test bpf_skb_change_tail() in TC ingress 2024-12-20 23:13:31 +01:00
breakpoints selftests: breakpoints: use remaining time to check if suspend succeed 2024-10-02 14:37:30 -06:00
cachestat
capabilities
cgroup cgroup/cpuset: Prevent leakage of isolated CPUs into sched domains 2024-12-11 05:45:52 -10:00
clone3 clone3: clone3_cap_checkpoint_restore: remove unused MAX_PID_NS_LEVEL macro 2024-09-30 11:39:56 -06:00
connector
core selftests: core: add unshare_test to gitignore 2024-09-30 11:42:11 -06:00
cpu-hotplug
cpufreq
damon selftests/damon: add _damon_sysfs.py to TEST_FILES 2024-12-05 19:54:44 -08:00
devices kselftest/devices/probe: Fix SyntaxWarning in regex strings for Python3 2024-10-02 14:30:58 -06:00
dma
dmabuf-heaps
drivers selftests: drv-net: test empty queue and NAPI responses in netlink 2024-12-20 11:57:29 -08:00
dt
efivarfs
exec selftests: exec: update gitignore for load_address 2024-09-30 11:42:19 -06:00
fchmodat2
filelock
filesystems selftests/filesystems: Add missing gitignore file 2025-01-14 17:06:31 -07:00
firmware
fpu
ftrace selftests/ftrace: adjust offset for kprobe syntax error test 2024-12-11 10:08:04 -07:00
futex
gpio
hid selftests/hid: fix kfunc inclusions with newer bpftool 2024-11-29 15:27:04 +01:00
ia64
intel_pstate selftests/intel_pstate: check if cpupower is installed 2024-10-28 21:18:57 -06:00
iommu iommufd/selftest: Cover IOMMU_FAULT_QUEUE_ALLOC in iommufd_fail_nth 2024-12-03 12:15:00 -04:00
ipc selftests/ipc: Remove unused variables 2025-01-14 17:06:31 -07:00
ir
kcmp
kexec
kmod
kselftest selftests: Warn about skipped tests in result summary 2025-01-14 17:06:31 -07:00
kvm KVM: s390: three small bugfixes 2025-01-12 12:51:05 +01:00
landlock selftests/landlock: Test signal created by out-of-bound message 2024-09-16 23:50:54 +02:00
lib
livepatch selftests: livepatch: test livepatching a kprobed function 2024-10-22 17:13:11 +02:00
lkdtm
locking
lsm
media_tests selftest: media_tests: fix trivial UAF typo 2025-01-14 17:06:31 -07:00
membarrier
memfd selftests/memfd: add test for mapping write-sealed memfd read-only 2024-12-30 17:59:06 -08:00
memory-hotplug
mincore
mm selftest: hugetlb_dio: fix test naming 2024-12-05 19:54:44 -08:00
module selftests: find_symbol: Actually use load_mod() parameter 2024-11-28 11:17:38 -08:00
mount
mount_setattr selftests/mount_setattr: Fix failures on 64K PAGE_SIZE kernels 2024-11-20 09:18:48 +01:00
move_mount_set_group
mqueue
nci
net selftests: net: local_termination: require mausezahn 2024-12-20 11:48:21 -08:00
nolibc selftests/nolibc: start qemu with 1 GiB of memory 2024-10-07 21:57:45 +02:00
nsfs
ntb
openat2
pcie_bwctrl selftests/pcie_bwctrl: Create selftests 2024-11-16 10:09:30 -06:00
perf_events
pid_namespace
pidfd pidfd: add ioctl to retrieve pid info 2024-10-24 13:54:51 +02:00
power_supply
powerpc selftests/powerpc: Remove the path after initialization. 2024-11-14 22:41:00 +11:00
prctl
proc
pstore
ptp selftest/ptp: update ptp selftest to exercise the gettimex options 2024-10-04 15:36:43 -07:00
ptrace
rcutorture Merge branches 'rcu/fixes', 'rcu/nocb', 'rcu/torture', 'rcu/stall' and 'rcu/srcu' into rcu/dev 2024-11-15 22:38:53 +01:00
resctrl selftests/resctrl: Replace magic constants used as array size 2024-11-04 17:02:03 -07:00
ring-buffer selftests/ring-buffer: Add test for out-of-bound pgoff mapping 2025-01-14 17:06:32 -07:00
riscv Merge patch series "selftest: fix riscv/vector tests" 2025-01-09 09:35:42 -08:00
rlimits
rseq selftests/rseq: Fix mm_cid test failure 2024-10-11 15:05:05 -06:00
rtc selftest: rtc: Add to check rtc alarm status for alarm related test 2024-10-23 14:13:00 -06:00
rust
safesetid
sched
sched_ext sched_ext: Fix dsq_local_on selftest 2024-12-24 14:09:50 -10:00
seccomp
sgx
signal selftests: Add a test mangling with uc_sigmask 2024-10-29 01:01:49 -06:00
size
sparc64
splice
static_keys
sync
syscall_user_dispatch
sysctl
tc-testing selftests: tc-testing: reduce rshift value 2025-01-04 08:49:47 -08:00
tdx
thermal/intel
timens
timers selftests: timers: clocksource-switch: Adapt progress to kselftest framework 2025-01-14 17:06:31 -07:00
tmpfs selftests: tmpfs: Add kselftest support to tmpfs 2025-01-14 17:06:32 -07:00
tpm2 selftests: tpm2: test_smoke: Run only when TPM2 is avaialable. 2024-09-17 18:56:37 +03:00
tty
turbostat
uevent
user_events
vDSO selftests/vDSO: support DT_GNU_HASH 2025-01-14 17:06:31 -07:00
watchdog selftests/watchdog-test: Fix system accidentally reset after watchdog-test 2024-10-28 21:34:43 -06:00
wireguard Networking changes for 6.13. 2024-11-21 08:28:08 -08:00
x86
zram selftests/zram: gitignore output file 2025-01-14 17:06:31 -07:00
.gitignore
Makefile pci-v6.13-changes 2024-11-26 18:05:44 -08:00
gen_kselftest_tar.sh
kselftest.h selftests: kselftest: Fix the wrong format specifier 2025-01-14 17:06:31 -07:00
kselftest_deps.sh
kselftest_harness.h selftests: harness: fix printing of mismatch values in __EXPECT() 2025-01-14 17:06:32 -07:00
kselftest_install.sh
kselftest_module.h
lib.mk
run_kselftest.sh selftests/run_kselftest.sh: Fix help string for --per-test-log 2025-01-14 17:06:32 -07:00