selftests/Makefile: make `run_tests' depend on `all'
authorAndrew Morton <[email protected]>
Wed, 28 Mar 2012 21:42:54 +0000 (14:42 -0700)
committerLinus Torvalds <[email protected]>
Thu, 29 Mar 2012 00:14:37 +0000 (17:14 -0700)
So a "make run_tests" will build the tests before trying to run them.

Acked-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/testing/selftests/Makefile

index b1119f0db51834bd0e2768450f7e284cab0bcaaa..9203cd77fc330c4414092f1244c2b34be3a89aa3 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;