Make ctest suitable for multi-core machines.
@@ -68,7 +68,7 @@ sub_build() {
# Tests (coverage needs to run the tests)
if [ $BUILD_TESTS = 1 ] || [ $BUILD_COVERAGE = 1 ]; then
- ctest -VV -C $BUILD_TYPE
+ ctest -j$(getconf _NPROCESSORS_ONLN) --output-on-failure -C $BUILD_TYPE
fi
# Coverage
