fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36823?usp=email )
Change subject: sgsn: add Iu specific, module local f_init() ......................................................................
sgsn: add Iu specific, module local f_init()
Change-Id: Iea23b847b363da518a8dc121405522df9e4e0f77 --- M sgsn/SGSN_Tests_Iu.ttcn 1 file changed, 13 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/23/36823/1
diff --git a/sgsn/SGSN_Tests_Iu.ttcn b/sgsn/SGSN_Tests_Iu.ttcn index 236a6a7..53aa032 100644 --- a/sgsn/SGSN_Tests_Iu.ttcn +++ b/sgsn/SGSN_Tests_Iu.ttcn @@ -11,6 +11,10 @@ import from RANAP_PDU_Descriptions all; import from RANAP_IEs all;
+private function f_init() runs on test_CT { + g_ranap_enable := true; + SGSN_Tests.f_init(); +}
private function f_TC_iu_attach(charstring id) runs on BSSGP_ConnHdlr { var PdpActPars apars := valueof(t_PdpActPars(mp_ggsn_ip)); @@ -29,7 +33,6 @@ * MS -> SGSN: Attach Complete */ var BSSGP_ConnHdlr vc_conn; - g_ranap_enable := true; f_init(); f_sleep(1.0); vc_conn := f_start_handler(refers(f_TC_iu_attach), testcasename(), g_gb, 1001); @@ -50,7 +53,6 @@ * MS -> SGSN: Attach Complete */ var BSSGP_ConnHdlr vc_conn; - g_ranap_enable := true; f_init(); f_vty_config(SGSNVTY, "sgsn", "encryption uea 1 2"); f_sleep(1.0); @@ -75,7 +77,6 @@ * MS <-> SGSN: Routing Area Update over Geran */ var BSSGP_ConnHdlr vc_conn; - g_ranap_enable := true; f_init(); f_sleep(1.0); vc_conn := f_start_handler(refers(f_TC_iu_attach_geran_rau), testcasename(), g_gb, 1002); @@ -99,7 +100,6 @@ * MS <-> SGSN: Routing Area Update over Iu */ var BSSGP_ConnHdlr vc_conn; - g_ranap_enable := true; f_init(); f_sleep(1.0); vc_conn := f_start_handler(refers(f_TC_geran_attach_iu_rau), testcasename(), g_gb, 1003);