Commit 626eaa40 authored by iker_martin's avatar iker_martin
Browse files

Minor fixes in Exec scripts

parent d8f1ea5e
...@@ -32,7 +32,7 @@ iter_total_lines=$(($iter_lines_basic+$total_stages*2+1)) ...@@ -32,7 +32,7 @@ iter_total_lines=$(($iter_lines_basic+$total_stages*2+1))
exec_remove=$(($exec_lines_basic+$total_stages+$total_groups-1)) exec_remove=$(($exec_lines_basic+$total_stages+$total_groups-1))
iter_remove=$(($iter_lines_basic+$total_stages-1)) iter_remove=$(($iter_lines_basic+$total_stages-1))
if [ "$#" -lt "6" ] if [ "$#" -lt "5" ]
then then
echo "Not enough arguments" echo "Not enough arguments"
echo "Usage -> bash CheckRun maxIndes total_repetitions total_groups total_stages max_iteration_time" echo "Usage -> bash CheckRun maxIndes total_repetitions total_groups total_stages max_iteration_time"
......
...@@ -28,7 +28,7 @@ configFile=$2 ...@@ -28,7 +28,7 @@ configFile=$2
use_extrae=$3 use_extrae=$3
outFileIndex=$4 outFileIndex=$4
qty=1 qty=1
if [ $# -gt 5 ] if [ $# -ge 5 ]
then then
qty=$5 qty=$5
fi fi
......
...@@ -26,17 +26,17 @@ use_extrae=0 ...@@ -26,17 +26,17 @@ use_extrae=0
outFileIndex=0 outFileIndex=0
qty=1 qty=1
if [ $# -gt 3 ] if [ $# -ge 3 ]
then then
use_extrae=$3 use_extrae=$3
fi fi
if [ $# -gt 4 ] if [ $# -ge 4 ]
then then
outFileIndex=$4 outFileIndex=$4
fi fi
if [ $# -gt 5 ] if [ $# -ge 5 ]
then then
qty=$5 qty=$5
fi fi
......
...@@ -18,7 +18,7 @@ codeDir="/Codes/build" ...@@ -18,7 +18,7 @@ codeDir="/Codes/build"
execDir="/Exec" execDir="/Exec"
ResultsDir="/Results" ResultsDir="/Results"
if [ $# -lt 2 ] if [ $# -lt 1 ]
then then
echo "Not enough arguments. Usage:" echo "Not enough arguments. Usage:"
echo "bash singleRun.sh config.ini [outFileIndex] [Qty] [Use extrae] [Output path]" echo "bash singleRun.sh config.ini [outFileIndex] [Qty] [Use extrae] [Output path]"
...@@ -36,19 +36,19 @@ outFileIndex=0 ...@@ -36,19 +36,19 @@ outFileIndex=0
qty=1 qty=1
use_extrae=0 use_extrae=0
if [ $# -gt 2 ] if [ $# -ge 2 ]
then then
outFileIndex=$2 outFileIndex=$2
fi fi
if [ $# -gt 3 ] if [ $# -ge 3 ]
then then
qty=$3 qty=$3
fi fi
if [ $# -gt 4 ] if [ $# -ge 4 ]
then then
use_extrae=$4 use_extrae=$4
fi fi
if [ $# -gt 5 ] if [ $# -ge 5 ]
then then
output=$5 output=$5
fi fi
......
...@@ -14,15 +14,13 @@ codeDir="/Codes/build" ...@@ -14,15 +14,13 @@ codeDir="/Codes/build"
execDir="/Exec" execDir="/Exec"
ResultsDir="/Results" ResultsDir="/Results"
if [ $# -lt 2 ] if [ $# -lt 1 ]
then then
echo "Not enough arguments. Usage:" echo "Not enough arguments. Usage:"
echo "singleRunCostum.sh config.ini [outFileIndex] [Qty] [Use Extrae] [Output path]" echo "singleRunCostum.sh config.ini [outFileIndex] [Qty] [Use Extrae] [Output path]"
exit 1 exit 1
fi fi
echo "START TEST"
#$1 == configFile #$1 == configFile
#$2 == outFileIndex #$2 == outFileIndex
#$3 == Qty of repetitions #$3 == Qty of repetitions
...@@ -34,19 +32,19 @@ outFileIndex=0 ...@@ -34,19 +32,19 @@ outFileIndex=0
qty=1 qty=1
use_extrae=0 use_extrae=0
if [ $# -gt 2 ] if [ $# -ge 2 ]
then then
outFileIndex=$2 outFileIndex=$2
fi fi
if [ $# -gt 3 ] if [ $# -ge 3 ]
then then
qty=$3 qty=$3
fi fi
if [ $# -gt 4 ] if [ $# -ge 4 ]
then then
use_extrae=$4 use_extrae=$4
fi fi
if [ $# -gt 5 ] if [ $# -ge 5 ]
then then
output=$5 output=$5
fi fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment