Shuah Khan e84f1ab33c tools/testing/selftests/ipc/msgque.c: improve error handling when not running as root há 11 anos atrás
..
breakpoints 5a55f8bb2d breakpoint selftests: print failure status instead of cause make error há 13 anos atrás
cpu-hotplug 1bd702e665 tools: cpu-hotplug fix unexpected operator error há 11 anos atrás
efivarfs 123abd76ed efivars: efivarfs_valid_name() should handle pstore syntax há 13 anos atrás
ipc e84f1ab33c tools/testing/selftests/ipc/msgque.c: improve error handling when not running as root há 11 anos atrás
kcmp 94d090013e selftests: add .gitignore for kcmp há 12 anos atrás
memory-hotplug e98f776224 tools: memory-hotplug fix unexpected operator error há 11 anos atrás
mqueue 9ed1d90ed1 mqueue selftests: print failure status instead of cause make error há 13 anos atrás
net 64a8946b44 net: filter: BPF testsuite há 11 anos atrás
powerpc aa83f3d897 selftests/powerpc: Use the test harness for the TM DSCR test há 11 anos atrás
ptrace 17afab1de4 selftest: add a test case for PTRACE_PEEKSIGINFO há 12 anos atrás
rcutorture 8be7f505f9 rcutorture: Note diffs from git commits há 11 anos atrás
sysctl 24fe831c17 tools/testing/selftests/sysctl: validate sysctl_writes_strict há 11 anos atrás
timers c88b05b2cd tools/testing/selftests: fix uninitialized variable há 12 anos atrás
user 3e2a4c183a test: check copy_to/from_user boundary validation há 12 anos atrás
vm c7fed9cf61 selftests: add .gitignore for vm há 12 anos atrás
Makefile 24fe831c17 tools/testing/selftests/sysctl: validate sysctl_writes_strict há 11 anos atrás
README.txt 80d0342859 selftests: add a simple doc há 13 anos atrás

README.txt

Linux Kernel Selftests

The kernel contains a set of "self tests" under the tools/testing/selftests/
directory. These are intended to be small unit tests to exercise individual
code paths in the kernel.

Running the selftests
=====================

To build the tests:

$ make -C tools/testing/selftests


To run the tests:

$ make -C tools/testing/selftests run_tests

- note that some tests will require root privileges.


To run only tests targetted for a single subsystem:

$ make -C tools/testing/selftests TARGETS=cpu-hotplug run_tests

See the top-level tools/testing/selftests/Makefile for the list of all possible
targets.


Contributing new tests
======================

In general, the rules for for selftests are

* Do as much as you can if you're not root;

* Don't take too long;

* Don't break the build on any architecture, and

* Don't cause the top-level "make run_tests" to fail if your feature is
unconfigured.