selftests/Makefile: make `run_tests' depend on `all'
Andrew Morton [Wed, 28 Mar 2012 21:42:54 +0000 (14:42 -0700)]
So a "make run_tests" will build the tests before trying to run them.

Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

tools/testing/selftests/Makefile

index b1119f0..9203cd7 100644 (file)
@@ -5,7 +5,7 @@ all:
                make -C $$TARGET; \
        done;
 
-run_tests:
+run_tests: all
        for TARGET in $(TARGETS); do \
                make -C $$TARGET run_tests; \
        done;