chiark / gitweb /
regress/Makefile.in: Parallelise `make check'
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Oct 2014 11:58:09 +0000 (11:58 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Oct 2014 12:03:41 +0000 (12:03 +0000)
Use an individual target for each test.  This allows parallel make to
get its teeth into the problem.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
regress/Makefile.in

index 34be146..b0035e7 100644 (file)
@@ -45,8 +45,14 @@ ALL_OBJS=    $(HARNLOBJS) dtest.o hrecord.o hplayback.o
 
 all install uninstall: $(TARGETS)
 
-check:         $(TARGETS)
-               srcdir=$(srcdir) $(srcdir)/checkall
+ALL_TESTS:=$(patsubst $(srcdir)/case-%.sys,%,$(wildcard $(srcdir)/case-*.sys))
+
+check:         $(TARGETS) $(addprefix check-,$(ALL_TESTS))
+               @echo
+               @echo 'all tests passed or maybe skipped.'
+
+check-%:       case-%.sys
+               @srcdir=$(srcdir) $(srcdir)/r1test $* || test $? = 5
 
 LINK_CMD=      $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@