chiark / gitweb /
Testing: Provide Makefile
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 29 Oct 2015 01:23:06 +0000 (01:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 Nov 2015 21:08:39 +0000 (21:08 +0000)
Can be run with `make -C tests/'.  Currently there is a bug with -j.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/Makefile [new file with mode: 0644]

diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644 (file)
index 0000000..2d8bb47
--- /dev/null
@@ -0,0 +1,12 @@
+# -*- make -*-
+#
+# Run `make check' (or just `make') in this directory, to run all the
+# tests.  Run `make check-TESTNAME' to run just one test.
+
+TESTS := $(basename $(shell echo *.at))
+CHECKS := $(addprefix check-,$(TESTS))
+
+all check: $(CHECKS)
+
+check-%: %.at
+       @ set -e; cd ..; tests/autotest tests/$^