From ee2565d6332bc8f56d95ca37137baa86c8206f19 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 26 Oct 2014 11:58:09 +0000 Subject: [PATCH] regress/Makefile.in: Parallelise `make check' Use an individual target for each test. This allows parallel make to get its teeth into the problem. Signed-off-by: Ian Jackson --- regress/Makefile.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/regress/Makefile.in b/regress/Makefile.in index 34be146..b0035e7 100644 --- a/regress/Makefile.in +++ b/regress/Makefile.in @@ -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 $@ -- 2.30.2