summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-17 17:24:42 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-17 17:24:42 +0100
commit594d0ddbb2740996b460dd596f76fc21f092e9fc (patch)
tree8579e24dece12fd2f383f9fe3716682f5dc51c9e
parent91d0ab9b0f695cf37198b518428480890bd05195 (diff)
parente02b77bf6b84b7f3149071c8aeadaffe173cb368 (diff)
downloadmicropython-594d0ddbb2740996b460dd596f76fc21f092e9fc.tar.gz
micropython-594d0ddbb2740996b460dd596f76fc21f092e9fc.zip
Merge pull request #505 from lurch/patch-5
Add 'test' target to unix/Makefile
-rw-r--r--unix/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/unix/Makefile b/unix/Makefile
index 07a75f7adb..c9509b9f0d 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -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_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests