From: Michael Walle Date: Sun, 9 Dec 2012 23:03:09 +0000 (+0100) Subject: tests: lm32: new rule for single test cases X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f40c49ac9f89ee52b6015904c9005b734a73487a;p=qemu.git tests: lm32: new rule for single test cases Introduce new target "check_%" to run individual test caes, eg. make check_mmu Signed-off-by: Michael Walle Reviewed-by: Peter Maydell --- diff --git a/tests/tcg/lm32/Makefile b/tests/tcg/lm32/Makefile index 9a00ef7ea9..8e5d405459 100644 --- a/tests/tcg/lm32/Makefile +++ b/tests/tcg/lm32/Makefile @@ -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)