Commit 755e6f21 authored by Yann Garcia's avatar Yann Garcia
Browse files

Setup run scripts

parent 4c7ac431
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
......@@ -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
......
......@@ -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
......
#!/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##*/}" == "objs" ]
if [ ! "${PWD##*/}" == "scripts" ]
then
cd ../objs
cd ../scripts
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
......
#!/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##*/}" == "objs" ]
if [ ! "${PWD##*/}" == "scripts" ]
then
cd ../objs
cd ../scripts
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
......
#!/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##*/}" == "objs" ]
if [ ! "${PWD##*/}" == "scripts" ]
then
cd ../objs
cd ../scripts
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}
......@@ -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 \
......
......@@ -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 \
......
......@@ -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 \
......
......@@ -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 \
......
......@@ -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 \
......
......@@ -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 \
......
Markdown is supported
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