Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Iker Martín Álvarez
Proteo
Commits
626eaa40
Commit
626eaa40
authored
Mar 10, 2023
by
iker_martin
Browse files
Minor fixes in Exec scripts
parent
d8f1ea5e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Exec/CheckRun.sh
View file @
626eaa40
...
@@ -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"
...
...
Exec/generalRun.sh
View file @
626eaa40
...
@@ -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
[
$#
-g
t
5
]
if
[
$#
-g
e
5
]
then
then
qty
=
$5
qty
=
$5
fi
fi
...
...
Exec/generalRunCostum.sh
View file @
626eaa40
...
@@ -26,17 +26,17 @@ use_extrae=0
...
@@ -26,17 +26,17 @@ use_extrae=0
outFileIndex
=
0
outFileIndex
=
0
qty
=
1
qty
=
1
if
[
$#
-g
t
3
]
if
[
$#
-g
e
3
]
then
then
use_extrae
=
$3
use_extrae
=
$3
fi
fi
if
[
$#
-g
t
4
]
if
[
$#
-g
e
4
]
then
then
outFileIndex
=
$4
outFileIndex
=
$4
fi
fi
if
[
$#
-g
t
5
]
if
[
$#
-g
e
5
]
then
then
qty
=
$5
qty
=
$5
fi
fi
...
...
Exec/singleRun.sh
View file @
626eaa40
...
@@ -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
[
$#
-g
t
2
]
if
[
$#
-g
e
2
]
then
then
outFileIndex
=
$2
outFileIndex
=
$2
fi
fi
if
[
$#
-g
t
3
]
if
[
$#
-g
e
3
]
then
then
qty
=
$3
qty
=
$3
fi
fi
if
[
$#
-g
t
4
]
if
[
$#
-g
e
4
]
then
then
use_extrae
=
$4
use_extrae
=
$4
fi
fi
if
[
$#
-g
t
5
]
if
[
$#
-g
e
5
]
then
then
output
=
$5
output
=
$5
fi
fi
...
...
Exec/singleRunCostum.sh
View file @
626eaa40
...
@@ -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
[
$#
-g
t
2
]
if
[
$#
-g
e
2
]
then
then
outFileIndex
=
$2
outFileIndex
=
$2
fi
fi
if
[
$#
-g
t
3
]
if
[
$#
-g
e
3
]
then
then
qty
=
$3
qty
=
$3
fi
fi
if
[
$#
-g
t
4
]
if
[
$#
-g
e
4
]
then
then
use_extrae
=
$4
use_extrae
=
$4
fi
fi
if
[
$#
-g
t
5
]
if
[
$#
-g
e
5
]
then
then
output
=
$5
output
=
$5
fi
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment