From 499ea3f0e82e38aeb6dd34d3f686be28142e6094 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 2 Oct 2023 07:26:09 -0500 Subject: [PATCH] Restore unix Makefile functionality --- ports/unix/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ports/unix/Makefile b/ports/unix/Makefile index f71aee681e..f5b111a5fe 100644 --- a/ports/unix/Makefile +++ b/ports/unix/Makefile @@ -262,9 +262,17 @@ include $(TOP)/py/mkrules.mk .PHONY: test test_full +# CIRCUITPY: these two targets are ours +.PHONY: print-failures clean-failures +print-failures clean-failures: + ../../tests/run-tests.py --$@ + + +# CIRCUITPY: support for passing args to run-tests, like `make test TEST_ARGS="basics/*.py"` +TEST_ARGS ?= test: $(BUILD)/$(PROG) $(TOP)/tests/run-tests.py $(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 $(TEST_ARGS) test_full: $(BUILD)/$(PROG) $(TOP)/tests/run-tests.py $(eval DIRNAME=ports/$(notdir $(CURDIR)))