Renamed test case main to avoid clash with other main.c, always rebuild source for testcases, show full debug trace during testcases (keepin' it real)

v0.96
Richard Meadows 2015-06-15 11:29:43 +01:00
rodzic eca1a3af10
commit 9008a2f5c5
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -115,7 +115,7 @@ INCLUDE_PATH += chip/ chip/cmsis/ samd20/ samd20/component/ test/tc/
# Verification suite code # Verification suite code
# #
# #
SYSTEM += test/main.c SYSTEM += test/tmain.c
# Linker Scripts # Linker Scripts
# #
@ -253,12 +253,12 @@ emacs:
TESTCASES := $(shell $(FIND) test/tc -name '*.[h]') TESTCASES := $(shell $(FIND) test/tc -name '*.[h]')
.PHONY: test .PHONY: test
test: test/main.py test: test/main.py all
@echo "Running tests..." @echo "Running tests..."
>/dev/null $(DB) -q -x test/tests.py $(DB) -q -x test/tests.py
# Ctypesgen for test # Ctypesgen for test
test/main.py: test/main.c $(TESTCASES) test/main.py: test/tmain.c $(TESTCASES)
@echo "Generating Python Wrappers...." @echo "Generating Python Wrappers...."
@echo @echo
test/ctypesgen/ctypesgen.py -o $@ \ test/ctypesgen/ctypesgen.py -o $@ \