Skip to content

Commit 594d0dd

Browse files
committed
Merge pull request adafruit#505 from lurch/patch-5
Add 'test' target to unix/Makefile
2 parents 91d0ab9 + e02b77b commit 594d0dd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

unix/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,8 @@ OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
6767

6868
include ../py/mkrules.mk
6969

70+
.PHONY: test
71+
72+
test: $(PROG) ../tests/run-tests
73+
$(eval DIRNAME=$(notdir $(CURDIR)))
74+
cd ../tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests

0 commit comments

Comments
 (0)