Skip to content

Commit 6a8bc73

Browse files
committed
Make it easy to test just a subset of tests
with e.g., 'make TEST_EXTRA="extmod/uasyncio*.py" test'
1 parent 4f190c9 commit 6a8bc73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ports/unix/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,10 @@ include $(TOP)/py/mkrules.mk
296296

297297
.PHONY: test test_full
298298

299+
TEST_EXTRA ?=
299300
test: $(PROG) $(TOP)/tests/run-tests.py
300301
$(eval DIRNAME=ports/$(notdir $(CURDIR)))
301-
cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests.py
302+
cd $(TOP)/tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests.py $(TEST_EXTRA)
302303

303304
test_full: $(PROG) $(TOP)/tests/run-tests.py
304305
$(eval DIRNAME=ports/$(notdir $(CURDIR)))

0 commit comments

Comments
 (0)