Skip to content

Commit

Permalink
selftests: launch individual selftests from the main Makefile
Browse files Browse the repository at this point in the history
Remove the run_tests script and launch the selftests by calling "make
run_tests" from the selftests top directory instead.  This delegates to
the Makefile in each selftest directory, where it is decided how to launch
the local test.

This removes the need to add each selftest directory to the now removed
"run_tests" top script.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Frederic Weisbecker authored and Linus Torvalds committed Mar 29, 2012
1 parent 0fc9d10 commit f467f71
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
5 changes: 5 additions & 0 deletions tools/testing/selftests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ all:
make -C $$TARGET; \
done;

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

clean:
for TARGET in $(TARGETS); do \
make -C $$TARGET clean; \
Expand Down
7 changes: 5 additions & 2 deletions tools/testing/selftests/breakpoints/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ endif

all:
ifeq ($(ARCH),x86)
gcc breakpoint_test.c -o run_test
gcc breakpoint_test.c -o breakpoint_test
else
echo "Not an x86 target, can't build breakpoints selftests"
endif

run_tests:
./breakpoint_test

clean:
rm -fr run_test
rm -fr breakpoint_test
8 changes: 0 additions & 8 deletions tools/testing/selftests/run_tests

This file was deleted.

0 comments on commit f467f71

Please sign in to comment.