Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
4c396d03
Commit
4c396d03
authored
Jan 30, 2021
by
Yann Garcia
Browse files
Setup run scripts
parent
755e6f21
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
scripts/run_all.bash
scripts/run_all.bash
+4
-4
scripts/run_mtc.bash
scripts/run_mtc.bash
+2
-2
scripts/run_ptcs.bash
scripts/run_ptcs.bash
+1
-1
No files found.
scripts/run_all.bash
View file @
4c396d03
#!/bin/bash
#set -e
set
-vx
#
set -vx
clear
...
...
@@ -32,8 +32,8 @@ rm ../bin/S1/logs/merged.*.log
for
i
in
$(
seq
1 1
$COUNTER
)
do
.
./bin
/run_mtc.bash &
.
./bin
/run_ptcs.bash
./run_mtc.bash &
./run_ptcs.bash
dup
=
$(
ps
-ef
|
grep
"
$0
"
|
grep
-v
grep
|
wc
-l
)
while
[
${
dup
}
-eq
3
]
...
...
@@ -43,7 +43,7 @@ do
done
sleep
1
mv
../
$ATS
/logs
/merged.log ../
$ATS
/logs
/merged.
`
date
+
'%Y%m%d%S'
`
.log
mv
../
logs/
$ATS
/merged.log ../
logs/
$ATS
/merged.
`
date
+
'%Y%m%d%S'
`
.log
done
exit
0
...
...
scripts/run_mtc.bash
View file @
4c396d03
#!/bin/bash
#set -e
set
-vx
#set -vx
clear
...
...
@@ -37,6 +36,7 @@ echo "> smtc [module_name[[.control]|.testcase_name|.*]: when MyExample is conne
echo
"> emtc: Terminate MTC."
mctr
${
CFG_FILES
}
sudo chown
-R
`
whoami
`
${
TITAN_LOG_DIR
}
LOG_FILES
=
`
find
${
TITAN_LOG_DIR
}
-name
'*.log'
`
if
[
"
${
TITAN_LOG_DIR
}
"
!=
""
]
then
...
...
scripts/run_ptcs.bash
View file @
4c396d03
#!/bin/bash
#set -e
set
-vx
#
set -vx
clear
...
...
Write
Preview
Markdown
is supported
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