/usr/src/linux-headers-5.15.0-181/tools/testing/selftests
NameSizeModeActions
arm64/-0755rm
bpf/-0755rm
breakpoints/-0755rm
capabilities/-0755rm
cgroup/-0755rm
clone3/-0755rm
core/-0755rm
cpu-hotplug/-0755rm
cpufreq/-0755rm
damon/-0755rm
dma/-0755rm
dmabuf-heaps/-0755rm
drivers/-0755rm
efivarfs/-0755rm
exec/-0755rm
filesystems/-0755rm
firmware/-0755rm
fpu/-0755rm
ftrace/-0755rm
futex/-0755rm
gpio/-0755rm
ia64/-0755rm
intel_pstate/-0755rm
ipc/-0755rm
ir/-0755rm
kcmp/-0755rm
kexec/-0755rm
kmod/-0755rm
kselftest/-0755rm
kvm/-0755rm
landlock/-0755rm
lib/-0755rm
livepatch/-0755rm
lkdtm/-0755rm
locking/-0755rm
media_tests/-0755rm
membarrier/-0755rm
memfd/-0755rm
memory-hotplug/-0755rm
mincore/-0755rm
mount/-0755rm
mount_setattr/-0755rm
move_mount_set_group/-0755rm
mqueue/-0755rm
nci/-0755rm
net/-0755rm
netfilter/-0755rm
nsfs/-0755rm
ntb/-0755rm
openat2/-0755rm
perf_events/-0755rm
pidfd/-0755rm
pid_namespace/-0755rm
powerpc/-0755rm
prctl/-0755rm
proc/-0755rm
pstore/-0755rm
ptp/-0755rm
ptrace/-0755rm
rcutorture/-0755rm
resctrl/-0755rm
rlimits/-0755rm
rseq/-0755rm
rtc/-0755rm
safesetid/-0755rm
sched/-0755rm
seccomp/-0755rm
sgx/-0755rm
sigaltstack/-0755rm
size/-0755rm
sparc64/-0755rm
splice/-0755rm
static_keys/-0755rm
sync/-0755rm
syscall_user_dispatch/-0755rm
sysctl/-0755rm
tc-testing/-0755rm
timens/-0755rm
timers/-0755rm
tmpfs/-0755rm
tpm2/-0755rm
ublk/-0755rm
uevent/-0755rm
user/-0755rm
vDSO/-0755rm
vm/-0755rm
watchdog/-0755rm
wireguard/-0755rm
x86/-0755rm
zram/-0755rm
gen_kselftest_tar.sh13000755editdlrm
kselftest_deps.sh81930755editdlrm
kselftest_install.sh8230755editdlrm
Makefile80810644editdlrm
run_kselftest.sh21030755editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/tools/testing/selftests/run_kselftest.sh (2103B)
#!/bin/sh # SPDX-License-Identifier: GPL-2.0 # # Run installed kselftest tests. # BASE_DIR=$(realpath $(dirname $0)) cd $BASE_DIR TESTS="$BASE_DIR"/kselftest-list.txt if [ ! -r "$TESTS" ] ; then echo "$0: Could not find list of tests to run ($TESTS)" >&2 available="" else available="$(cat "$TESTS")" fi . ./kselftest/runner.sh ROOT=$PWD usage() { cat < $logfile shift ;; -t | --test) TESTS="$TESTS $2" shift 2 ;; -c | --collection) COLLECTIONS="$COLLECTIONS $2" shift 2 ;; -l | --list) echo "$available" exit 0 ;; -d | --dry-run) dryrun="echo" shift ;; -h | --help) usage 0 ;; "") break ;; *) usage 1 ;; esac done # Add all selected collections to the explicit test list. if [ -n "$COLLECTIONS" ]; then for collection in $COLLECTIONS ; do found="$(echo "$available" | grep "^$collection:")" if [ -z "$found" ] ; then echo "No such collection '$collection'" >&2 exit 1 fi TESTS="$TESTS $found" done fi # Replace available test list with explicitly selected tests. if [ -n "$TESTS" ]; then valid="" for test in $TESTS ; do found="$(echo "$available" | grep "^${test}$")" if [ -z "$found" ] ; then echo "No such test '$test'" >&2 exit 1 fi valid="$valid $found" done available="$(echo "$valid" | sed -e 's/ /\n/g')" fi collections=$(echo "$available" | cut -d: -f1 | uniq) for collection in $collections ; do [ -w /dev/kmsg ] && echo "kselftest: Running tests in $collection" >> /dev/kmsg tests=$(echo "$available" | grep "^$collection:" | cut -d: -f2) ($dryrun cd "$collection" && $dryrun run_many $tests) done