diff --git a/test/run-syntax-checks.sh b/test/run-syntax-checks.sh index 8f5a9253..8975c98c 100644 --- a/test/run-syntax-checks.sh +++ b/test/run-syntax-checks.sh @@ -60,10 +60,17 @@ ChecksCompleted() cd syntax_check || exit 1 echo "" > log.txt -export CMAKE_BUILD_PARALLEL_LEVEL=6 +#****************************************************************************** +# Set the number of concurrent processes to use. +#****************************************************************************** +if [ $# -eq 0 ]; then + export CMAKE_BUILD_PARALLEL_LEVEL=4 +else + export CMAKE_BUILD_PARALLEL_LEVEL=$1 +fi echo "" -echo "Using "${CMAKE_BUILD_PARALLEL_LEVEL}" jobs" +echo "Using "$CMAKE_BUILD_PARALLEL_LEVEL" concurrent processes" ############################################################################### cd c++03 || exit 1 diff --git a/test/run-tests.sh b/test/run-tests.sh index adc9316e..5d07705a 100644 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -9,8 +9,6 @@ echo "ETL Tests" > log.txt export ASAN_OPTIONS=symbol_line=1 export ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-14/bin//llvm-symbolizer -export CMAKE_BUILD_PARALLEL_LEVEL=6 - echo -e testname="Test Name Not Set" @@ -129,8 +127,17 @@ else opt="-O0" fi +#****************************************************************************** +# Set the number of concurrent processes to use. +#****************************************************************************** +if [ $# -eq 2 ]; then + export CMAKE_BUILD_PARALLEL_LEVEL=4 +else + export CMAKE_BUILD_PARALLEL_LEVEL=$3 +fi + echo "" -echo "Using "${CMAKE_BUILD_PARALLEL_LEVEL}" jobs" +echo "Using "${CMAKE_BUILD_PARALLEL_LEVEL}" concurrent processes" #****************************************************************************** # GCC