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))
exec_remove=$(($exec_lines_basic+$total_stages+$total_groups-1))
iter_remove=$(($iter_lines_basic+$total_stages-1))
if [ "$#" -lt "6" ]
if [ "$#" -lt "5" ]
then
echo "Not enough arguments"
echo "Usage -> bash CheckRun maxIndes total_repetitions total_groups total_stages max_iteration_time"
......
......@@ -28,7 +28,7 @@ configFile=$2
use_extrae=$3
outFileIndex=$4
qty=1
if [ $# -gt 5 ]
if [ $# -ge 5 ]
then
qty=$5
fi
......
......@@ -26,17 +26,17 @@ use_extrae=0
outFileIndex=0
qty=1
if [ $# -gt 3 ]
if [ $# -ge 3 ]
then
use_extrae=$3
fi
if [ $# -gt 4 ]
if [ $# -ge 4 ]
then
outFileIndex=$4
fi
if [ $# -gt 5 ]
if [ $# -ge 5 ]
then
qty=$5
fi
......
......@@ -18,7 +18,7 @@ codeDir="/Codes/build"
execDir="/Exec"
ResultsDir="/Results"
if [ $# -lt 2 ]
if [ $# -lt 1 ]
then
echo "Not enough arguments. Usage:"
echo "bash singleRun.sh config.ini [outFileIndex] [Qty] [Use extrae] [Output path]"
......@@ -36,19 +36,19 @@ outFileIndex=0
qty=1
use_extrae=0
if [ $# -gt 2 ]
if [ $# -ge 2 ]
then
outFileIndex=$2
fi
if [ $# -gt 3 ]
if [ $# -ge 3 ]
then
qty=$3
fi
if [ $# -gt 4 ]
if [ $# -ge 4 ]
then
use_extrae=$4
fi
if [ $# -gt 5 ]
if [ $# -ge 5 ]
then
output=$5
fi
......
......@@ -14,15 +14,13 @@ codeDir="/Codes/build"
execDir="/Exec"
ResultsDir="/Results"
if [ $# -lt 2 ]
if [ $# -lt 1 ]
then
echo "Not enough arguments. Usage:"
echo "singleRunCostum.sh config.ini [outFileIndex] [Qty] [Use Extrae] [Output path]"
exit 1
fi
echo "START TEST"
#$1 == configFile
#$2 == outFileIndex
#$3 == Qty of repetitions
......@@ -34,19 +32,19 @@ outFileIndex=0
qty=1
use_extrae=0
if [ $# -gt 2 ]
if [ $# -ge 2 ]
then
outFileIndex=$2
fi
if [ $# -gt 3 ]
if [ $# -ge 3 ]
then
qty=$3
fi
if [ $# -gt 4 ]
if [ $# -ge 4 ]
then
use_extrae=$4
fi
if [ $# -gt 5 ]
if [ $# -ge 5 ]
then
output=$5
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