selftests: new very basic kernel selftests directory
authorFrederic Weisbecker <>
Fri, 13 Jan 2012 01:20:44 +0000 (17:20 -0800)
committerLinus Torvalds <>
Fri, 13 Jan 2012 04:13:12 +0000 (20:13 -0800)
selftests: new very basic kernel selftests directory

Bring a new kernel selftests directory in tools/testing/selftests.  To
add a new selftest, create a subdirectory with the sources and a
makefile that creates a target named "run_test" then add the
subdirectory name to the TARGET var in tools/testing/selftests/Makefile
and tools/testing/selftests/run_tests script.

This can help centralizing and maintaining any useful selftest that
developers usually tend to let rust in peace on some random server.

Suggested-by: Andrew Morton <>
Signed-off-by: Frederic Weisbecker <>
Cc: Thomas Gleixner <>
Cc: Ingo Molnar <>
Cc: "H. Peter Anvin" <>
Cc: Jason Wessel <>
Cc: Will Deacon <>
Cc: Steven Rostedt <>
Cc: Michal Marek <>
Cc: Sam Ravnborg <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
tools/testing/selftests/Makefile [new file with mode: 0644]
tools/testing/selftests/run_tests [new file with mode: 0644]