aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-06-29 14:20:07 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-06-29 14:20:07 +0300
commit49aa680ccdac46d1d2a7f9f250999b7ff7099548 (patch)
tree1de3bd5209feadfd147f7a05d1ac925f98b747b1 /Makefile
parent29718f2e84478b296c3198ae6d35cfd5d79efb14 (diff)
downloadejit-49aa680ccdac46d1d2a7f9f250999b7ff7099548.tar.gz
ejit-49aa680ccdac46d1d2a7f9f250999b7ff7099548.zip
start adding tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 839fd5f..5fdaec7 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,12 @@ all: setup
examples: setup
$(MAKE) -f scripts/makefile examples
+.PHONY: check
+check: all
+ @echo -n > tests.mk
+ @./scripts/gen-tests $$(echo tests/*.c)
+ $(MAKE) -f tests/makefile check
+
# this kicks all unrecognised targets to the client script.
# note that trying to compile individual files, e.g.
#
@@ -24,7 +30,7 @@ setup:
@echo -n > deps.mk
@./scripts/gen-deps -p EJIT -c COMPILE_EJIT -b ejit "$(EJIT_SOURCES)"
-CLEANUP := build deps.mk ejit.o examples/exec examples/*.d
+CLEANUP := build deps.mk tests.md ejit.o examples/exec examples/*.d tests/test-*
CLEANUP_CMD :=
EJIT_SOURCES :=
@@ -32,7 +38,7 @@ include src/source.mk
.PHONY: format
format:
- find src include -iname '*.[ch]' |\
+ find src include tests -iname '*.[ch]' |\
xargs uncrustify -c uncrustify.conf --no-backup -F -
.PHONY: license