From a1b3608fab2c00c022cdd3090d5acde83d610574 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 14 Mar 2011 15:11:39 -0700 Subject: [PATCH] debian: Run tests in parallel too. Passing e.g. -j4 in TESTSUITEFLAGS runs 4 tests in parallel, which speeds up the testsuite. --- debian/rules | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index bbc7357e..de79800a 100755 --- a/debian/rules +++ b/debian/rules @@ -14,9 +14,11 @@ BUILD_NUMBER = 0 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) -NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) -MAKEFLAGS += -j$(NUMJOBS) +PARALLEL = -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +else +PARALLEL = endif +MAKEFLAGS += $(PARALLEL) ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 @@ -45,7 +47,8 @@ build-arch: build-arch-stamp build-arch-stamp: configure-stamp $(MAKE) -C _debian ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) - if $(MAKE) -C _debian check; then :; else \ + if $(MAKE) -C _debian check TESTSUITEFLAGS='$(PARALLEL)'; then :; \ + else \ cat _debian/tests/testsuite.log; \ exit 1; \ fi -- 2.30.2