-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 66a01b9659016cbb74dfac64861f28c71c804c97 | ||
refs/heads/master: 80d03428597056f4e2d1aed389929ece7879dad1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |