2018-01-21 18:29:33 +00:00
|
|
|
#!/bin/bash
|
2017-11-19 11:09:51 +00:00
|
|
|
|
2017-12-12 15:30:53 +00:00
|
|
|
BASEDIR=../deps
|
2017-11-19 11:09:51 +00:00
|
|
|
|
2018-03-15 21:04:41 +00:00
|
|
|
. ../gen_links.sh.inc
|
2017-11-19 11:09:51 +00:00
|
|
|
|
2017-12-29 15:01:39 +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
|
2017-11-19 11:09:51 +00:00
|
|
|
|
|
|
|
DIR=$BASEDIR/titan.Libraries.TCCUsefulFunctions/src
|
2018-02-05 15:58:27 +00:00
|
|
|
FILES="TCCInterface_Functions.ttcn TCCConversion_Functions.ttcn TCCConversion.cc TCCInterface.cc TCCInterface_ip.h"
|
2018-05-29 14:49:50 +00:00
|
|
|
FILES+=" TCCEncoding_Functions.ttcn TCCEncoding.cc " # GSM 7-bit coding
|
2017-11-19 11:09:51 +00:00
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-01-21 18:29:33 +00:00
|
|
|
DIR=$BASEDIR/titan.TestPorts.Common_Components.Socket-API/src
|
|
|
|
FILES="Socket_API_Definitions.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
# Required by MGCP and IPA
|
|
|
|
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
|
|
|
|
|
2017-11-19 11:09:51 +00:00
|
|
|
# required by M3UA_Emulation
|
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.M3UA/src
|
|
|
|
FILES="M3UA_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
# required by M3UA_Emulation
|
|
|
|
DIR=$BASEDIR/titan.TestPorts.SCTPasp/src
|
|
|
|
FILES="SCTPasp_PT.cc SCTPasp_PT.hh SCTPasp_PortType.ttcn SCTPasp_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
# required by M3UA Emulation
|
2018-03-18 09:58:00 +00:00
|
|
|
DIR=$BASEDIR/titan.TestPorts.MTP3asp/src
|
2017-11-19 11:09:51 +00:00
|
|
|
FILES="MTP3asp_PortType.ttcn MTP3asp_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
# required by SCCP Emulation
|
2018-03-18 09:58:00 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolEmulations.M3UA/src
|
2017-11-19 11:09:51 +00:00
|
|
|
FILES="M3UA_Emulation.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-03-18 09:58:00 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolEmulations.SCCP/src
|
2017-11-19 11:09:51 +00:00
|
|
|
FILES="SCCP_Emulation.ttcn SCCP_EncDec.cc SCCP_Mapping.ttcnpp SCCP_Types.ttcn SCCPasp_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2019-05-20 17:20:55 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.BSSMAP/src
|
2017-11-19 11:09:51 +00:00
|
|
|
FILES="BSSAP_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-05-27 18:38:43 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.ROSE/src
|
|
|
|
FILES="Remote_Operations_Generic_ROS_PDUs.asn Remote_Operations_Information_Objects.asn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.MAP/src
|
|
|
|
FILES="MAP_ApplicationContexts.asn MAP_CH_DataTypes.asn MAP_CallHandlingOperations.asn MAP_CommonDataTypes.asn MAP_DialogueInformation.asn MAP_ER_DataTypes.asn MAP_EncDec.cc MAP_Errors.asn MAP_GR_DataTypes.asn MAP_Group_Call_Operations.asn MAP_LCS_DataTypes.asn MAP_LocationServiceOperations.asn MAP_MS_DataTypes.asn MAP_MobileServiceOperations.asn MAP_OM_DataTypes.asn MAP_OperationAndMaintenanceOperations.asn MAP_PDU_Defs.asn MAP_Protocol.asn MAP_SM_DataTypes.asn MAP_SS_Code.asn MAP_SS_DataTypes.asn MAP_ShortMessageServiceOperations.asn MAP_SupplementaryServiceOperations.asn MAP_TS_Code.asn MAP_Types.ttcn "
|
|
|
|
FILES+="MAP_BS_Code.asn MAP_ExtensionDataTypes.asn MobileDomainDefinitions.asn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2017-11-19 11:09:51 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.MobileL3_v13.4.0/src
|
2018-05-27 18:38:43 +00:00
|
|
|
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 "
|
|
|
|
FILES+="SS_DataTypes.asn SS_Errors.asn SS_Operations.asn SS_PDU_Defs.asn SS_Protocol.asn SS_Types.ttcn SS_EncDec.cc"
|
2017-11-19 11:09:51 +00:00
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-01-21 18:29:33 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.SDP/src
|
|
|
|
FILES="SDP_EncDec.cc SDP_Types.ttcn SDP_parse_.tab.c SDP_parse_.tab.h SDP_parse_parser.h SDP_parser.l
|
|
|
|
SDP_parser.y lex.SDP_parse_.c"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.RTP/src
|
|
|
|
FILES="RTP_EncDec.cc RTP_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-01-24 17:51:27 +00:00
|
|
|
DIR=$BASEDIR/titan.TestPorts.TELNETasp/src
|
|
|
|
FILES="TELNETasp_PT.cc TELNETasp_PT.hh TELNETasp_PortType.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
2017-11-19 11:09:51 +00:00
|
|
|
|
2018-04-09 12:17:45 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.SMPP/src
|
|
|
|
FILES="SMPP_EncDec.cc SMPP_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2018-10-05 17:03:28 +00:00
|
|
|
DIR=$BASEDIR/titan.ProtocolModules.SGsAP_13.2.0/src
|
|
|
|
FILES="SGsAP_Types.ttcn"
|
|
|
|
gen_links $DIR $FILES
|
2018-04-09 12:17:45 +00:00
|
|
|
|
2019-04-14 15:39:29 +00:00
|
|
|
DIR=../library/ranap
|
|
|
|
FILES="RANAP_CommonDataTypes.asn RANAP_Constants.asn RANAP_Containers.asn RANAP_IEs.asn RANAP_PDU_Contents.asn RANAP_PDU_Descriptions.asn "
|
|
|
|
FILES+="RANAP_Types.ttcn RANAP_Templates.ttcn RANAP_CodecPort.ttcn RANAP_EncDec.cc "
|
|
|
|
gen_links $DIR $FILES
|
|
|
|
|
2017-11-19 11:09:51 +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 Osmocom_Types.ttcn MNCC_Types.ttcn MNCC_EncDec.cc MNCC_CodecPort.ttcn mncc.h MNCC_Emulation.ttcn Osmocom_VTY_Functions.ttcn Native_Functions.ttcn Native_FunctionDefs.cc "
|
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 GSUP_Types.ttcn GSUP_Emulation.ttcn "
|
2020-04-29 17:07:36 +00:00
|
|
|
FILES+="Osmocom_CTRL_Types.ttcn Osmocom_CTRL_Functions.ttcn Osmocom_CTRL_Adapter.ttcn L3_Templates.ttcn RLCMAC_CSN1_Templates.ttcn RLCMAC_CSN1_Types.ttcn L3_Common.ttcn "
|
2019-04-15 09:48:05 +00:00
|
|
|
FILES+="RAN_Emulation.ttcnpp BSSAP_CodecPort.ttcn BSSMAP_Templates.ttcn RAN_Adapter.ttcnpp MGCP_Types.ttcn MGCP_Templates.ttcn MGCP_CodecPort_CtrlFunct.ttcn MGCP_Emulation.ttcn "
|
2018-01-21 18:29:33 +00:00
|
|
|
FILES+="RTP_CodecPort.ttcn RTP_CodecPort_CtrlFunctDef.cc "
|
|
|
|
FILES+="MGCP_CodecPort.ttcn MGCP_CodecPort_CtrlFunctDef.cc "
|
2018-04-14 08:57:41 +00:00
|
|
|
FILES+="SMPP_CodecPort.ttcn SMPP_CodecPort_CtrlFunct.ttcn SMPP_CodecPort_CtrlFunctDef.cc SMPP_Emulation.ttcn SMPP_Templates.ttcn "
|
2018-10-05 17:03:28 +00:00
|
|
|
FILES+="SS_Templates.ttcn SCCP_Templates.ttcn USSD_Helpers.ttcn "
|
WIP: MSC_Tests: Add SGs testcases
This extens MSC_Tests.ttcn with an initial set of SGs interface test
cases for RESET, LU, DETACH, PAGING, SMS and CSFB procedures
In particular the following testcases are added:
- TC_sgsap_reset: isolated reset procedure test
- TC_sgsap_lu: isolated location update with TMSI realloc
- TC_sgsap_lu_imsi_reject: location update, reject case
- TC_sgsap_lu_and_nothing: location update with failed TMSI realloc
- TC_sgsap_expl_imsi_det_eps: detach from EPS serveces
- TC_sgsap_expl_imsi_det_noneps: detach from non-EPS services
- TC_sgsap_paging_rej: isolated paging, reject case
- TC_sgsap_paging_subscr_rej: isolated paging, subscr rejects call
- TC_sgsap_paging_ue_unr: isolated paging, ue is unreachable
- TC_sgsap_paging_and_nothing: page, but don't respond
- TC_sgsap_paging_and_lu: check paging followed by an LU
- TC_sgsap_mt_sms: mobile terminated SMS through SGs Interface
- TC_sgsap_mo_sms: mobile originated SMS through SGs Interface
- TC_sgsap_mt_sms_and_nothing: trigger SMS, but don't respond to paging
- TC_sgsap_mt_sms_and_reject: trigger SMS, but reject paging
- TC_sgsap_unexp_ud: Send unexpected unitdata (SGs Association: NULL)
- TC_sgsap_unsol_ud: Send unsolicited unitdata (subscriber not in VLR)
- TC_bssap_lu_sgsap_lu_and_mt_call: LU on 2G, LU on SGs and CSFB call
- TC_sgsap_lu_and_mt_call: LU on SGs, and CSFB call
Change-Id: I38543c35a9e74cea276e58d1d7ef01ef07ffe858
Depends: osmo-msc I73359925fc1ca72b33a1466e6ac41307f2f0b11d
Related: OS#3645
2018-12-06 10:56:27 +00:00
|
|
|
FILES+="SGsAP_Templates.ttcn SGsAP_CodecPort.ttcn SGsAP_CodecPort_CtrlFunct.ttcn SGsAP_CodecPort_CtrlFunctDef.cc SGsAP_Emulation.ttcn DNS_Helpers.ttcn "
|
2017-11-19 11:09:51 +00:00
|
|
|
gen_links $DIR $FILES
|
2018-03-15 23:03:00 +00:00
|
|
|
|
|
|
|
ignore_pp_results
|