]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
selftests: launch individual selftests from the main Makefile
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 28 Mar 2012 21:42:54 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Mar 2012 00:14:37 +0000 (17:14 -0700)
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>
tools/testing/selftests/Makefile
tools/testing/selftests/breakpoints/Makefile
tools/testing/selftests/run_tests [deleted file]

index 4ec84018cc1364f8f905ee30c31e52f04d7ec6ff..b1119f0db51834bd0e2768450f7e284cab0bcaaa 100644 (file)
@@ -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; \
index f362722cdce7e564ad70d9d1c6df1ae094f0e2f7..931278035f5c94746fbe3ea5376fccdcf81e5747 100644 (file)
@@ -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
diff --git a/tools/testing/selftests/run_tests b/tools/testing/selftests/run_tests
deleted file mode 100644 (file)
index 320718a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-TARGETS=breakpoints
-
-for TARGET in $TARGETS
-do
-       $TARGET/run_test
-done