Skip to content

Commit d5ce916

Browse files
committed
Add 'test' target to unix/Makefile
In conjunction with adafruit#504 this allows you to do things like: ```shell make -C unix clean && make -C unix test CC=gcc-4.7 ``` all from the top-level micropython directory :-) Something similar could probably be done for windows/Makefile too, but I don't have a cygwin setup to test with.
1 parent a1c6720 commit d5ce916

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_MP_PY=../$(DIRNAME)/$(PROG) ./run-tests

0 commit comments

Comments
 (0)