2018-02-04 09:36:22 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
BASEDIR=../deps
|
|
|
|
|
2018-03-15 21:04:41 +00:00
|
|
|
. ../gen_links.sh.inc
|
2018-02-04 09:36:22 +00:00
|
|
|
|
|
|
|
#DIR=$BASEDIR/titan.TestPorts.UNIX_DOMAIN_SOCKETasp/src
|
|
|
|
#FILES="UD_PT.cc UD_PT.hh UD_PortType.ttcn UD_Types.ttcn"
|
|
|
|
#gen_links $DIR $FILES
|
|
|
|
|
|
|
|
DIR=$BASEDIR/titan.Libraries.TCCUsefulFunctions/src
|
|
|
|
FILES="TCCInterface_Functions.ttcn TCCConversion_Functions.ttcn TCCConversion.cc TCCConversion.hh TCCInterface.cc TCCInterface_ip.h"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
DIR=$BASEDIR/titan.TestPorts.Common_Components.Socket-API/src
|
|
|
|
FILES="Socket_API_Definitions.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
DIR=$BASEDIR/titan.TestPorts.IPL4asp/src
|
|
|
|
FILES="IPL4asp_Functions.ttcn IPL4asp_PT.cc IPL4asp_PT.hh IPL4asp_PortType.ttcn IPL4asp_Types.ttcn IPL4asp_discovery.cc IPL4asp_protocol_L234.hh"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
#DIR=$BASEDIR/titan.TestPorts.UNIX_DOMAIN_SOCKETasp/src
|
|
|
|
#FILES="UD_PT.cc UD_PT.hh UD_PortType.ttcn UD_Types.ttcn"
|
|
|
|
#gen_links $DIR $FILES
|
|
|
|
|
|
|
|
# for Osmocom_VTY
|
|
|
|
DIR=$BASEDIR/titan.TestPorts.TELNETasp/src
|
|
|
|
FILES="TELNETasp_PT.cc TELNETasp_PT.hh TELNETasp_PortType.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.NS_v7.3.0/src
|
|
|
|
FILES="NS_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.BSSGP_v13.0.0/src
|
|
|
|
FILES="BSSGP_EncDec.cc BSSGP_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-02-15 19:39:13 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.LLC_v7.1.0/src
|
|
|
|
FILES="LLC_EncDec.cc LLC_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-02-18 18:03:36 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.SNDCP_v7.0.0/src
|
|
|
|
FILES="SNDCP_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-02-15 19:39:13 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.MobileL3_v13.4.0/src
|
|
|
|
FILES="MobileL3_CC_Types.ttcn MobileL3_CommonIE_Types.ttcn MobileL3_GMM_SM_Types.ttcn MobileL3_MM_Types.ttcn MobileL3_RRM_Types.ttcn MobileL3_SMS_Types.ttcn MobileL3_SS_Types.ttcn MobileL3_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-02-17 19:57:34 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.GTP_v13.5.0/src
|
|
|
|
FILES="GTPC_EncDec.cc GTPC_Types.ttcn GTPU_EncDec.cc GTPU_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-02-04 09:36:22 +00:00
|
|
|
DIR=../library
|
Add Misc_Helpers.ttcn to centralize TTCN3 shutdown handling
This function can now be called from anywhere to try and safely shutdown
a testcase. It is not optimal as we can't call "all component.stop" from
outside the mtc, but without any proper and orderly shutdown handling of
all our emulation components I believe this is the best we can do.
To use it:
import from Misc_Helpers all;
in your module and then call
Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
You can also pass the function a verdict and a message and it will take care
of calling setverdict, but beware of the following:
While setverdict would accept any number of arguments as log message
and convert them to a log string f_shutdown expects one charstring.
It's possible to use the log2str function to use the log arguments in
setverdict for f_shutdown, for example
setverdict(fail, "Template didn't match: ", tmpl_foo);
would become
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Template didn't match: ", tmpl_foo));
Change-Id: I84d1aa6732f6b748d2bfdeac8f6309023717f267
2018-10-23 18:29:59 +00:00
|
|
|
FILES="Misc_Helpers.ttcn General_Types.ttcn GSM_Types.ttcn GSM_RR_Types.ttcn Osmocom_Types.ttcn RLCMAC_Types.ttcn RLCMAC_CSN1_Types.ttcn RLCMAC_EncDec.cc "
|
2018-02-04 09:36:22 +00:00
|
|
|
FILES+="NS_Emulation.ttcn NS_CodecPort.ttcn NS_CodecPort_CtrlFunct.ttcn NS_CodecPort_CtrlFunctDef.cc "
|
|
|
|
FILES+="BSSGP_Emulation.ttcn Osmocom_Gb_Types.ttcn "
|
|
|
|
FILES+="Osmocom_CTRL_Types.ttcn Osmocom_CTRL_Functions.ttcn Osmocom_CTRL_Adapter.ttcn "
|
|
|
|
FILES+="Osmocom_VTY_Functions.ttcn "
|
2018-02-15 19:39:13 +00:00
|
|
|
FILES+="LLC_Templates.ttcn L3_Templates.ttcn L3_Common.ttcn "
|
2018-02-04 09:36:22 +00:00
|
|
|
# IPA_Emulation + dependencies
|
2018-02-20 14:49:30 +00:00
|
|
|
FILES+="IPA_Types.ttcn IPA_Emulation.ttcnpp IPA_CodecPort.ttcn IPA_CodecPort_CtrlFunct.ttcn IPA_CodecPort_CtrlFunctDef.cc Native_Functions.ttcn Native_FunctionDefs.cc GSUP_Types.ttcn GSUP_Emulation.ttcn "
|
2018-02-17 19:57:34 +00:00
|
|
|
FILES+="GTP_CodecPort.ttcn GTP_CodecPort_CtrlFunct.ttcn GTP_CodecPort_CtrlFunctDef.cc GTP_Emulation.ttcn
|
|
|
|
GTP_Templates.ttcn IPCP_Types.ttcn "
|
2018-02-04 09:36:22 +00:00
|
|
|
gen_links $DIR $FILES
|
2018-03-15 23:03:00 +00:00
|
|
|
|
|
|
|
ignore_pp_results
|