From aa852a9998684f6d330e25410302f7599f2fb8ef Mon Sep 17 00:00:00 2001 From: Chiraffollo <5937599+Chiraffollo@users.noreply.github.com> Date: Sat, 20 Jul 2024 11:39:59 +0200 Subject: [PATCH] Fix run-tests.sh script (#929) * Fix run-tests.sh script - Fix ordering of parameters in help info - Change spaces to tabs in indentation of methods (unique usage of indentation) - Fix check for number of parameters to avoid empty string as default parameter value * Fix incorrect comparison --- test/run-tests.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/run-tests.sh b/test/run-tests.sh index 17821951..cb5a9d12 100644 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -21,7 +21,7 @@ NoColour='\033[0m' ParseGitBranch() { - git rev-parse --abbrev-ref HEAD + git rev-parse --abbrev-ref HEAD } SetConfigurationName() @@ -54,10 +54,10 @@ PrintHelp() { echo "$HelpColour" echo "----------------------------------------------------------------------------------" - echo " Syntax : ./runtests.sh " + echo " Syntax : ./runtests.sh " echo " C++ Standard : 11, 14, 17 or 20 " - echo " Threads : Number of threads to use. Default = 4 " echo " Optimisation : 0, 1, 2 or 3. Default = 0 " + echo " Threads : Number of threads to use. Default = 4 " echo " Sanitizer : S enables sanitizer checks. Default disabled " echo "----------------------------------------------------------------------------------" echo "$NoColour" @@ -85,7 +85,7 @@ FailedCompilation() { echo "$FailColour" echo "****************************************************************************" | tee -a log.txt - echo "**** Failed Compilation - $configuration_name" | tee -a log.txt + echo "**** Failed Compilation - $configuration_name" | tee -a log.txt echo "****************************************************************************" | tee -a log.txt echo "$NoColour" Bell @@ -95,7 +95,7 @@ FailedTests() { echo "$FailColour" echo "****************************************************************************" | tee -a log.txt - echo "**** Failed Tests - $configuration_name" | tee -a log.txt + echo "**** Failed Tests - $configuration_name" | tee -a log.txt echo "****************************************************************************" | tee -a log.txt echo "$NoColour" Bell