Make it easy to test just a subset of tests

with e.g., 'make TEST_EXTRA="extmod/uasyncio*.py" test'
This commit is contained in:
Jeff Epler 2022-10-14 17:07:27 -05:00
parent 4f190c9228
commit 6a8bc738ec
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 2 additions and 1 deletions

View File

@ -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)))