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>
This commit is contained in:
parent
e67b3ca53a
commit
f40c49ac9f
|
@ -96,10 +96,10 @@ all: build
|
||||||
|
|
||||||
build: $(CRT) $(TESTCASES)
|
build: $(CRT) $(TESTCASES)
|
||||||
|
|
||||||
check: $(CRT) $(SYS) $(TESTCASES)
|
check: $(TESTCASES:test_%.tst=check_%)
|
||||||
@for case in $(TESTCASES); do \
|
|
||||||
$(SIM) $(SIMFLAGS) ./$$case; \
|
check_%: test_%.tst $(CRT) $(SYS)
|
||||||
done
|
$(SIM) $(SIMFLAGS) $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -fr $(TESTCASES) $(CRT)
|
$(RM) -fr $(TESTCASES) $(CRT)
|
||||||
|
|
Loading…
Reference in a new issue