chiark / gitweb /
tests: Run in parallel
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Dec 2019 13:25:42 +0000 (13:25 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 11:35:15 +0000 (11:35 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/.gitignore [new file with mode: 0644]
tests/check
tests/tests.mk [new file with mode: 0644]

diff --git a/tests/.gitignore b/tests/.gitignore
new file mode 100644 (file)
index 0000000..3e5c274
--- /dev/null
@@ -0,0 +1 @@
+*/log
index 3bd0f89..de20e4b 100755 (executable)
@@ -1,6 +1,5 @@
 #!/bin/sh
-set -ex
+set -e
 
-tests/filter/check
-tests/intree/check
-tests/example/check
+${MAKE-make} -f tests/tests.mk -j8
+echo 'ok.'
diff --git a/tests/tests.mk b/tests/tests.mk
new file mode 100644 (file)
index 0000000..5ea0de9
--- /dev/null
@@ -0,0 +1,10 @@
+
+TESTS=$(wildcard tests/*/check)
+
+all: $(addsuffix .done, $(TESTS))
+
+.PHONY: tests/%/check.done all
+
+tests/%/check.done:
+       tests/$*/check >tests/$*/log 2>&1
+       @echo $* ok.