]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
ci/run: favor `make check' as the default target
authorEric Wong <e@80x24.org>
Mon, 18 Sep 2023 10:15:09 +0000 (10:15 +0000)
committerEric Wong <e@80x24.org>
Wed, 20 Sep 2023 19:14:18 +0000 (19:14 +0000)
While parallelism isn't always a good thing, `make check'
has more verbose output to help us track down occasionally
failing tests.

ci/run.sh

index 54563f1cc4a0be82e8a48f64f7253079ec41ee74..93790269f1937036a35ef8e6fa978c27938cd1ba 100755 (executable)
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -14,11 +14,12 @@ fi
 NPROC=${NPROC-$({ getconf _NPROCESSORS_ONLN || getconf NPROCESSORS_ONLN ||
        gnproc || nproc || echo 2; } 2>/dev/null)}
 
+TEST_JOBS=${TEST_JOBS-1}
 $PERL -w ci/profiles.perl | while read args
 do
        $DO $SUDO $PERL -w install/deps.perl -y --allow-remove $args
        $DO $PERL Makefile.PL
        $DO $MAKE -j${BUILD_JOBS-$NPROC}
-       $DO $MAKE -j${TEST_JOBS-1} ${TEST_TARGET-test}
+       $DO $MAKE ${TEST_TARGET-check} N=${N-$TEST_JOBS}
        $DO $MAKE clean >/dev/null
 done