added: environment variable TESTTHREADS in build-opm-module.sh

set this to run tests in parallel
This commit is contained in:
Arne Morten Kvarving 2019-08-13 10:47:13 +02:00
parent 9ff301625b
commit 377294316e

View File

@ -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