summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-07-29 23:13:38 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2026-07-29 23:23:54 +0300
commit593c49c00fb3e8c73ce369bda4db3cdda8fdc706 (patch)
treeca3b612109e990b839bd5ce90444ed9a253e8e79 /tests/Makefile
parentbef57b702ce808a3419f6b52beb10f7dce6906a3 (diff)
downloadlark-593c49c00fb3e8c73ce369bda4db3cdda8fdc706.tar.gz
lark-593c49c00fb3e8c73ce369bda4db3cdda8fdc706.zip
add simple test framework
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..ed89598
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,21 @@
+check:
+ $(MAKE) -f scripts/makefile check
+
+.DEFAULT:
+ $(MAKE) -f scripts/makefile $<
+
+SOURCES != echo */source.mk
+DO != echo -n > tests.mk && rm -rf reports
+
+# basic tests that shouldn't cause the return code to be nonzero
+TESTS :=
+
+include $(SOURCES)
+
+DO != echo "$(TESTS)" | xargs ./scripts/gen-simple
+
+RM ?= rm
+
+.PHONY: clean
+clean:
+ $(RM) -rf reports