From 377294316eb4882dfa34462208a600e8661e7715 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 13 Aug 2019 10:47:13 +0200 Subject: [PATCH] added: environment variable TESTTHREADS in build-opm-module.sh set this to run tests in parallel --- jenkins/build-opm-module.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jenkins/build-opm-module.sh b/jenkins/build-opm-module.sh index 8dad8b031..293cbadc5 100755 --- a/jenkins/build-opm-module.sh +++ b/jenkins/build-opm-module.sh @@ -112,11 +112,12 @@ function build_module { cmake --build . fi test $? -eq 0 || exit 2 + TESTTHREADS=${TESTTHREADS:-1} if test -z "$CTEST_CONFIGURATION" then - ctest -T Test --no-compress-output + ctest -T Test --no-compress-output -j$TESTTHREADS else - ctest -C $CTEST_CONFIGURATION --timeout 5000 -T Test --no-compress-output + ctest -j$TESTTHREADS -C $CTEST_CONFIGURATION --timeout 5000 -T Test --no-compress-output fi # Convert to junit format