From 81aae1a962579216c9816bf1b22cc5c341972466 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 20 Jul 2024 10:35:07 +0100 Subject: [PATCH] Changed default action to Linux test script --- test/run-tests.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/run-tests.sh b/test/run-tests.sh index 408c7481..17821951 100644 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -129,7 +129,9 @@ fi #****************************************************************************** # Set the optimisation level. Default -O0 #****************************************************************************** -if [ "$2" = "1" ]; then +if [ $# -eq 1 ]; then + opt="-O0" +elif [ "$2" = "1" ]; then opt="-O1" elif [ "$2" = "2" ]; then opt="-O2" @@ -140,9 +142,9 @@ else fi #****************************************************************************** -# Set the number of concurrent processes to use. +# Set the number of concurrent processes to use. Default 4 #****************************************************************************** -if [ $# -eq 2 ]; then +if [ $# -le 2 ]; then export CMAKE_BUILD_PARALLEL_LEVEL=4 else export CMAKE_BUILD_PARALLEL_LEVEL=$3