From 3cc0a947e3f03308a30aedb0a0ff1bbaae1e5d41 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 29 Oct 2015 01:23:06 +0000 Subject: [PATCH] Testing: Provide Makefile Can be run with `make -C tests/'. Currently there is a bug with -j. Signed-off-by: Ian Jackson --- tests/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/Makefile diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..2d8bb47 --- /dev/null +++ b/tests/Makefile @@ -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/$^ -- 2.30.2