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.
pull/505/head
Andrew Scheller 2014-04-16 20:38:16 +01:00
rodzic a1c67206c8
commit d5ce916f26
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

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