summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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