summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2012-12-10 00:03:09 +0100
committerMichael Walle <michael@walle.cc>2014-02-04 19:34:29 +0100
commitf40c49ac9f89ee52b6015904c9005b734a73487a (patch)
treec85a6019e55e93aa377939c59dca544bf633c3d1
parente67b3ca53a891413a33c45495ff20c2728d69722 (diff)
downloadhqemu-f40c49ac9f89ee52b6015904c9005b734a73487a.zip
hqemu-f40c49ac9f89ee52b6015904c9005b734a73487a.tar.gz
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 <michael@walle.cc> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--tests/tcg/lm32/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tcg/lm32/Makefile b/tests/tcg/lm32/Makefile
index 9a00ef7..8e5d405 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)
OpenPOWER on IntegriCloud