From: Ian Jackson Date: Sun, 26 Oct 2014 11:58:09 +0000 (+0000) Subject: regress/Makefile.in: Parallelise `make check' X-Git-Tag: adns-1.5.0-rc1~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=commitdiff_plain;h=e726e5c1af62954370f44794d86b27a9a6c5f097;ds=sidebyside 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 --- 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 $@