Linus Torvalds 73287a43cc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next há 12 anos atrás
..
breakpoints 5a55f8bb2d breakpoint selftests: print failure status instead of cause make error há 12 anos atrás
cpu-hotplug a58130ddc8 cpu-hotplug selftests: print failure status instead of cause make error há 12 anos atrás
efivarfs 123abd76ed efivars: efivarfs_valid_name() should handle pstore syntax há 12 anos atrás
ipc 3a665531a3 selftests: IPC message queue copy feature test há 12 anos atrás
kcmp 2bf1cbf1c6 tools/testing/selftests/kcmp/kcmp_test.c: print reason for failure in kcmp_test há 12 anos atrás
memory-hotplug aabccae6e9 mem-hotplug selftests: print failure status instead of cause make error há 12 anos atrás
mqueue 9ed1d90ed1 mqueue selftests: print failure status instead of cause make error há 12 anos atrás
net fdd5f43a1b selftests: psock_tpacket: fix status check há 12 anos atrás
ptrace 17afab1de4 selftest: add a test case for PTRACE_PEEKSIGINFO há 12 anos atrás
soft-dirty 58c7be84fe selftest: add simple test for soft-dirty bit há 12 anos atrás
vm 000e06b01f vm selftests: print failure status instead of cause make error há 12 anos atrás
Makefile 73287a43cc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next há 12 anos atrás
README.txt 80d0342859 selftests: add a simple doc há 12 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.