unix Makefile: easy wait to print test failures as diffs

This commit is contained in:
Jeff Epler 2022-10-14 14:44:34 -05:00
parent 798f6ec71f
commit 963a51487a
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 4 additions and 0 deletions

View File

@ -309,6 +309,10 @@ test_full: $(PROG) $(TOP)/tests/run-tests.py
cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests.py --via-mpy $(RUN_TESTS_MPY_CROSS_FLAGS) --emit native -d basics float micropython cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests.py --via-mpy $(RUN_TESTS_MPY_CROSS_FLAGS) --emit native -d basics float micropython
cat $(TOP)/tests/basics/0prelim.py | ./$(PROG) | grep -q 'abc' cat $(TOP)/tests/basics/0prelim.py | ./$(PROG) | grep -q 'abc'
.PHONY: print-failures clean-failures
print-failures clean-failures:
../../tests/run-tests.py --$@
test_gcov: test_full test_gcov: test_full
gcov -o $(BUILD)/py $(TOP)/py/*.c gcov -o $(BUILD)/py $(TOP)/py/*.c
gcov -o $(BUILD)/extmod $(TOP)/extmod/*.c gcov -o $(BUILD)/extmod $(TOP)/extmod/*.c