aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..1f37445
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,26 @@
+check:
+ $(MAKE) -f scripts/makefile check
+
+.DEFAULT:
+ $(MAKE) -f scripts/makefile $<
+
+SOURCES != echo */source.mk
+DO != echo -n > tests.mk && rm -rf reports
+
+SIMPLE :=
+SIMPLE_XFAIL :=
+
+include $(SOURCES)
+
+# pass through xargs to 'trick' it into expanding each SIMPLE_XFAIL into a
+# separate argument for the script, as make would otherwise just split at each space
+# this way we can pass spaces as arguments to the generator scripts, pretty neat
+# huh?
+DO != echo "$(SIMPLE)" | xargs ./scripts/gen-simple
+DO != echo "$(SIMPLE_XFAIL)" | xargs ./scripts/gen-simple-xfail
+
+RM ?= rm
+
+.PHONY: clean
+clean:
+ $(RM) -rf reports