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
755e6f21
Commit
755e6f21
authored
Jan 29, 2021
by
Yann Garcia
Browse files
Setup run scripts
parent
4c7ac431
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
53 additions
and
49 deletions
+53
-49
config.mk
config.mk
+3
-3
etc/AtsMapemSpatem/AtsMapemSpatem.cfg
etc/AtsMapemSpatem/AtsMapemSpatem.cfg
+1
-1
etc/AtsRSUsSimulator/AtsRSUSimulator.cfg
etc/AtsRSUsSimulator/AtsRSUSimulator.cfg
+1
-1
scripts/run_all.bash
scripts/run_all.bash
+13
-7
scripts/run_mtc.bash
scripts/run_mtc.bash
+15
-21
scripts/run_ptcs.bash
scripts/run_ptcs.bash
+14
-16
ttcn/AtsCAM/module.mk
ttcn/AtsCAM/module.mk
+1
-0
ttcn/AtsDENM/module.mk
ttcn/AtsDENM/module.mk
+1
-0
ttcn/AtsIVIM/module.mk
ttcn/AtsIVIM/module.mk
+1
-0
ttcn/AtsMapemSpatem/module.mk
ttcn/AtsMapemSpatem/module.mk
+1
-0
ttcn/AtsRSUsSimulator/module.mk
ttcn/AtsRSUsSimulator/module.mk
+1
-0
ttcn/AtsSremSsem/module.mk
ttcn/AtsSremSsem/module.mk
+1
-0
No files found.
config.mk
100755 → 100644
View file @
755e6f21
TTCN3_DIR
:
= /cygdrive/c/Tools/Titan
WPCAP_DLL_PATH
:=
/cygdrive/c/windows/system32/npcap/wpcap.dll
NPCAP_INCLUDE
:=
/cygdrive/c/PROGRA~1/Npcap/sdk/include
#
TTCN3_DIR
:
= /cygdrive/c/Tools/Titan
#
WPCAP_DLL_PATH := /cygdrive/c/windows/system32/npcap/wpcap.dll
#
NPCAP_INCLUDE := /cygdrive/c/PROGRA~1/Npcap/sdk/include
etc/AtsMapemSpatem/AtsMapemSpatem.cfg
View file @
755e6f21
...
...
@@ -11,7 +11,7 @@ LibItsMapemSpatem_Pics.PICS_IS_IUT_SECURED := false
# In this section you can specify the name of the log file and the classes of events
# you want to log into the file or display on console (standard error).
LogFile := "../logs/%e.%h-%r.%s"
LogFile := "../logs/
AtsMapemSpatem/
%e.%h-%r.%s"
FileMask := LOG_ALL | USER | DEBUG | MATCHING
ConsoleMask := LOG_ALL | USER | DEBUG | MATCHING
#FileMask := ERROR | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP
...
...
etc/AtsRSUsSimulator/AtsRSUSimulator.cfg
View file @
755e6f21
...
...
@@ -89,7 +89,7 @@ LibItsPki_Pics.PICS_IUT_AA_CERTIFICATE_ID := "CERT_TS_A_AA"
[LOGGING]
# In this section you can specify the name of the log file and the classes of events
# you want to log into the file or display on console (standard error).
LogFile := "../logs/%e.%h-%r.%s"
LogFile := "../logs/
AtsRSUsSimulator/
%e.%h-%r.%s"
FileMask := LOG_ALL | USER | DEBUG | MATCHING
ConsoleMask := LOG_ALL | USER | DEBUG | MATCHING
#FileMask := ERROR | WARNING | USER | MATCHING | EXECUTOR_RUNTIME | VERDICTOP
...
...
scripts/run_all.bash
View file @
755e6f21
#!/bin/bash
#set -e
#
set -vx
set
-vx
clear
if
[
-z
$ATS
]
then
echo
"ATS shall be defined"
exit
1
fi
if
!
[[
$1
=
~
"^[0-9]+$"
]]
then
COUNTER
=
$1
...
...
@@ -12,22 +18,22 @@ else
fi
CURPWD
=
`
pwd
`
if
[
!
"
${
PWD
##*/
}
"
==
"
obj
s"
]
if
[
!
"
${
PWD
##*/
}
"
==
"
script
s"
]
then
cd
../
obj
s
cd
../
script
s
if
[
!
$?
==
0
]
then
echo
"Please move to PROJECT/
obj
directory"
echo
"Please move to PROJECT/
scripts
directory"
exit
1
fi
fi
rm
../logs/merged.
*
.log
rm
../
bin/S1/
logs/merged.
*
.log
for
i
in
$(
seq
1 1
$COUNTER
)
do
../bin/run_mtc.bash &
../bin/run_ptcs.bash
$2
../bin/run_ptcs.bash
dup
=
$(
ps
-ef
|
grep
"
$0
"
|
grep
-v
grep
|
wc
-l
)
while
[
${
dup
}
-eq
3
]
...
...
@@ -37,7 +43,7 @@ do
done
sleep
1
mv
../logs/merged.log ../logs/merged.
`
date
+
'%Y%m%d%S'
`
.log
mv
../
$ATS
/
logs/merged.log ../
$ATS
/
logs/merged.
`
date
+
'%Y%m%d%S'
`
.log
done
exit
0
...
...
scripts/run_mtc.bash
View file @
755e6f21
#!/bin/bash
#set -evx
#set -e
set
-vx
clear
if
[
-z
$ATS
]
then
echo
"ATS shall be defined"
exit
1
fi
CURPWD
=
`
pwd
`
if
[
!
"
${
PWD
##*/
}
"
==
"
obj
s"
]
if
[
!
"
${
PWD
##*/
}
"
==
"
script
s"
]
then
cd
../
obj
s
cd
../
script
s
if
[
!
$?
==
0
]
then
echo
"Please move to PROJECT/
obj
directory"
echo
"Please move to PROJECT/
scripts
directory"
exit
1
fi
fi
TITAN_LOG_DIR
=
../logs
TITAN_LOG_DIR
=
../logs
/
$ATS
if
[
!
-d
${
TITAN_LOG_DIR
}
]
then
mkdir
${
TITAN_LOG_DIR
}
...
...
@@ -22,21 +30,7 @@ else
rm
-f
${
TITAN_LOG_DIR
}
/
*
.log
fi
CFG_FILES
=
`
find ../etc
-name
'*.cfg'
`
#LOG_FILES=`find ${TITAN_LOG_DIR} -name '*.log'`
#mv ${LOG_FILES} ../logs
#if [ "${OSTYPE}" == "cygwin" ]
#then
# # Remove dll
# rm ./*.dll
# ## Copy the new ones
# cp ~/lib/libhelper.dll .
# cp ~/lib/libconverter.dll .
# cp ~/lib/liblogger.dll .
# cp ~/lib/libttcn3_tri.dll .
# cp ~/lib/libcomm.dll .
#fi
CFG_FILES
=
`
find ../etc/
$ATS
-name
'*.cfg'
`
echo
"> cmtc: to create the MTC server"
echo
"> smtc [module_name[[.control]|.testcase_name|.*]: when MyExample is connected, run the TCs in [EXECUTE] section"
...
...
@@ -48,7 +42,7 @@ if [ "${TITAN_LOG_DIR}" != "" ]
then
ttcn3_logmerge
-o
${
TITAN_LOG_DIR
}
/merged.log
${
LOG_FILES
}
ttcn3_logformat
-o
${
TITAN_LOG_DIR
}
/merged_formated.log
${
TITAN_LOG_DIR
}
/merged.log
mv
${
TITAN_LOG_DIR
}
/merged_formated.log
${
TITAN_LOG_DIR
}
/merged.log
mv
${
TITAN_LOG_DIR
}
/merged_formated.log
${
TITAN_LOG_DIR
}
/merged.log
echo
"log files were merged into
${
TITAN_LOG_DIR
}
/merged.log"
fi
...
...
scripts/run_ptcs.bash
View file @
755e6f21
#!/bin/bash
#set -e
#
set -vx
set
-vx
clear
if
[
-z
$ATS
]
then
echo
"ATS shall be defined"
exit
1
fi
CURPWD
=
`
pwd
`
if
[
!
"
${
PWD
##*/
}
"
==
"
obj
s"
]
if
[
!
"
${
PWD
##*/
}
"
==
"
script
s"
]
then
cd
../
obj
s
cd
../
script
s
if
[
!
$?
==
0
]
then
echo
"Please move to PROJECT/
obj
directory"
echo
"Please move to PROJECT/
scripts
directory"
exit
1
fi
fi
...
...
@@ -19,20 +25,12 @@ if [ -f ./core ]
then
rm
-f
./core
fi
if
[
"
$1
"
==
"d"
]
then
make run_d
elif
[
"
$1
"
==
"v"
]
if
[
"
$ATS
"
==
"AtsRSUsSimulator"
]
then
make run_v
sudo
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
../bin/
$ATS
127.0.0.1 12001
else
make run
sudo
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
../bin/
$ATS
127.0.0.1 12000
fi
#if [ "${OSTYPE}" == "cygwin" ]
#then
# ../bin/SIPmsg.exe 127.0.0.1 12000
#else
# ../bin/SIPmsg 127.0.0.1 12000
#fi
cd
${
CURPWD
}
ttcn/AtsCAM/module.mk
View file @
755e6f21
...
...
@@ -27,6 +27,7 @@ modules := ../LibCommon \
../../ccsrc/Protocols/CAM
\
../../ccsrc/Protocols/GeoNetworking
\
../../ccsrc/Protocols/BTP
\
../../ccsrc/Protocols/ETH
\
../../ccsrc/Protocols/Pcap
\
../../ccsrc/Protocols/UpperTester
\
../../ccsrc/Protocols/Security
\
...
...
ttcn/AtsDENM/module.mk
View file @
755e6f21
...
...
@@ -25,6 +25,7 @@ modules := ../LibCommon \
../../ccsrc/Protocols/DENM
\
../../ccsrc/Protocols/GeoNetworking
\
../../ccsrc/Protocols/BTP
\
../../ccsrc/Protocols/ETH
\
../../ccsrc/Protocols/Pcap
\
../../ccsrc/Protocols/UpperTester
\
../../ccsrc/Protocols/Security
\
...
...
ttcn/AtsIVIM/module.mk
View file @
755e6f21
...
...
@@ -27,6 +27,7 @@ modules := ../LibCommon \
../../ccsrc/Protocols/IVIM
\
../../ccsrc/Protocols/GeoNetworking
\
../../ccsrc/Protocols/BTP
\
../../ccsrc/Protocols/ETH
\
../../ccsrc/Protocols/Pcap
\
../../ccsrc/Protocols/UpperTester
\
../../ccsrc/Protocols/Security
\
...
...
ttcn/AtsMapemSpatem/module.mk
View file @
755e6f21
...
...
@@ -30,6 +30,7 @@ modules := ../LibCommon \
../../ccsrc/Protocols/MapemSpatem
\
../../ccsrc/Protocols/GeoNetworking
\
../../ccsrc/Protocols/BTP
\
../../ccsrc/Protocols/ETH
\
../../ccsrc/Protocols/Pcap
\
../../ccsrc/Protocols/UpperTester
\
../../ccsrc/Protocols/Security
\
...
...
ttcn/AtsRSUsSimulator/module.mk
View file @
755e6f21
...
...
@@ -50,6 +50,7 @@ modules := ../LibCommon \
../../ccsrc/Protocols/GeoNetworking
\
../../ccsrc/Protocols/BTP
\
../../ccsrc/Protocols/Pcap
\
../../ccsrc/Protocols/ETH
\
../../ccsrc/Protocols/UpperTester
\
../../ccsrc/Protocols/Security
\
../../ccsrc/Protocols/Http
\
...
...
ttcn/AtsSremSsem/module.mk
View file @
755e6f21
...
...
@@ -30,6 +30,7 @@ modules := ../LibCommon \
../../ccsrc/Protocols/SremSsem
\
../../ccsrc/Protocols/GeoNetworking
\
../../ccsrc/Protocols/BTP
\
../../ccsrc/Protocols/ETH
\
../../ccsrc/Protocols/Pcap
\
../../ccsrc/Protocols/UpperTester
\
../../ccsrc/Protocols/Security
\
...
...
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