Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359422
b: refs/heads/master
c: 80d0342
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Kerr authored and Linus Torvalds committed Feb 28, 2013
1 parent bdbf93c commit e9c0337
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66a01b9659016cbb74dfac64861f28c71c804c97
refs/heads/master: 80d03428597056f4e2d1aed389929ece7879dad1
42 changes: 42 additions & 0 deletions trunk/tools/testing/selftests/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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.

0 comments on commit e9c0337

Please sign in to comment.