aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-18 20:48:27 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-18 21:07:11 +0300
commit4af5176d6377958a457da3e5f671ce21540fad70 (patch)
tree04e7f2fe66e7c2e05f6a47b0c8108cf407ee6c93 /tests/Makefile
parentcdbe058f69f1db9c552e1b4a1ec5f94c12fc48a2 (diff)
downloadqbt-4af5176d6377958a457da3e5f671ce21540fad70.tar.gz
qbt-4af5176d6377958a457da3e5f671ce21540fad70.zip
add tests and fixes on top of 674438
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