]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commitdiff
tests: lm32: new rule for single test cases
authorMichael Walle <michael@walle.cc>
Sun, 9 Dec 2012 23:03:09 +0000 (00:03 +0100)
committerMichael Walle <michael@walle.cc>
Tue, 4 Feb 2014 18:34:29 +0000 (19:34 +0100)
Introduce new target "check_%" to run individual test caes, eg.
  make check_mmu

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
tests/tcg/lm32/Makefile

index 9a00ef7ea96025ab14a263747dd61fc5c03d3d71..8e5d4054594f896d467970d8b7eb334d876ed924 100644 (file)
@@ -96,10 +96,10 @@ all: build
 
 build: $(CRT) $(TESTCASES)
 
-check: $(CRT) $(SYS) $(TESTCASES)
-       @for case in $(TESTCASES); do \
-               $(SIM) $(SIMFLAGS) ./$$case; \
-       done
+check: $(TESTCASES:test_%.tst=check_%)
+
+check_%: test_%.tst $(CRT) $(SYS)
+       $(SIM) $(SIMFLAGS) $<
 
 clean:
        $(RM) -fr $(TESTCASES) $(CRT)