summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-09-16 12:56:30 +1000
committerDamien George <damien@micropython.org>2025-10-01 11:14:46 +1000
commite031ead6b2043c412abb38804c1a1e350237e642 (patch)
treeab5798cfc0915f9f411483104ee8ac8810059617
parent4d905ef55235ed6f2f2d02799a3089ae8eb0c6e3 (diff)
unix/Makefile: Run all possible tests when using --via-mpy.
Currently testing on the unix port with `--via-mpy` only runs tests in the `basics`, `float` and `micropython` test directories. This commit removes that restriction and now runs `--via-mpy` tests using all possible test directories. This improves test coverage. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/unix/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/ports/unix/Makefile b/ports/unix/Makefile
index e4638299f..7df4c6f79 100644
--- a/ports/unix/Makefile
+++ b/ports/unix/Makefile
@@ -278,16 +278,15 @@ test/%: $(BUILD)/$(PROG) $(TOP)/tests/run-tests.py
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(BUILD)/$(PROG) ./run-tests.py -d "$*"
-test_full_no_native: $(BUILD)/$(PROG) $(TOP)/tests/run-tests.py
+test_full_no_native: $(BUILD)/$(PROG) $(TOP)/tests/run-tests.py test
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
- cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(BUILD)/$(PROG) ./run-tests.py
- cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(BUILD)/$(PROG) ./run-tests.py --via-mpy $(RUN_TESTS_MPY_CROSS_FLAGS) -d basics float micropython
+ cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(BUILD)/$(PROG) ./run-tests.py --via-mpy $(RUN_TESTS_MPY_CROSS_FLAGS)
cat $(TOP)/tests/basics/0prelim.py | ./$(BUILD)/$(PROG) | grep -q 'abc'
test_full: $(BUILD)/$(PROG) $(TOP)/tests/run-tests.py test_full_no_native
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(BUILD)/$(PROG) ./run-tests.py --emit native
- cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(BUILD)/$(PROG) ./run-tests.py --via-mpy $(RUN_TESTS_MPY_CROSS_FLAGS) --emit native -d basics float micropython
+ cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(BUILD)/$(PROG) ./run-tests.py --via-mpy $(RUN_TESTS_MPY_CROSS_FLAGS) --emit native
test_gcov: test_full
gcov -o $(BUILD)/py $(TOP)/py/*.c