From 6a8bc738ecf0e849cd1a973aeea3970262835231 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Fri, 14 Oct 2022 17:07:27 -0500 Subject: [PATCH] Make it easy to test just a subset of tests with e.g., 'make TEST_EXTRA="extmod/uasyncio*.py" test' --- ports/unix/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/unix/Makefile b/ports/unix/Makefile index 4790e0eacf..5141beff4c 100644 --- a/ports/unix/Makefile +++ b/ports/unix/Makefile @@ -296,9 +296,10 @@ include $(TOP)/py/mkrules.mk .PHONY: test test_full +TEST_EXTRA ?= test: $(PROG) $(TOP)/tests/run-tests.py $(eval DIRNAME=ports/$(notdir $(CURDIR))) - cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests.py + cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests.py $(TEST_EXTRA) test_full: $(PROG) $(TOP)/tests/run-tests.py $(eval DIRNAME=ports/$(notdir $(CURDIR)))