Skip to content

Commit

Permalink
Fix run-tests.sh script (#929)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Chiraffollo authored and John Wellbelove committed Jul 28, 2024
1 parent 81aae1a commit aa852a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ NoColour='\033[0m'

ParseGitBranch()
{
git rev-parse --abbrev-ref HEAD
git rev-parse --abbrev-ref HEAD
}

SetConfigurationName()
Expand Down Expand Up @@ -54,10 +54,10 @@ PrintHelp()
{
echo "$HelpColour"
echo "----------------------------------------------------------------------------------"
echo " Syntax : ./runtests.sh <C++ Standard> <Threads> <Optimisation> <Sanitizer> "
echo " Syntax : ./runtests.sh <C++ Standard> <Optimisation> <Threads> <Sanitizer> "
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"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit aa852a9

Please sign in to comment.