Skip to content

Commit

Permalink
selftests: new very basic kernel selftests directory
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Jason Wessel <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Michal Marek <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
fweisbec authored and torvalds committed Jan 13, 2012
1 parent e2bdb93 commit 274343a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/testing/selftests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
TARGETS =

all:
for TARGET in $(TARGETS); do \
make -C $$TARGET; \
done;

clean:
for TARGET in $(TARGETS); do \
make -C $$TARGET clean; \
done;
8 changes: 8 additions & 0 deletions tools/testing/selftests/run_tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

TARGETS=

for TARGET in $TARGETS
do
$TARGET/run_test
done

0 comments on commit 274343a

Please sign in to comment.