Add 'test' target to unix/Makefile
In conjunction with #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.
This commit is contained in:
parent
a1c67206c8
commit
d5ce916f26
@ -67,3 +67,8 @@ OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
|
||||
|
||||
include ../py/mkrules.mk
|
||||
|
||||
.PHONY: test
|
||||
|
||||
test: $(PROG) ../tests/run-tests
|
||||
$(eval DIRNAME=$(notdir $(CURDIR)))
|
||||
cd ../tests && MICROPY_MP_PY=../$(DIRNAME)/$(PROG) ./run-tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user