lynxis lazus has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15163


Change subject: sgsn: add TC_iu_attach_gmm_rau
......................................................................

sgsn: add TC_iu_attach_gmm_rau

do a GMM attach on Iu
do a GMM Routing Area Update on GMM

Change-Id: Ie043639638a640a2041324fc910964385a41c77d
fixme: This will crash the SGSN atm :)
---
M sgsn/SGSN_Tests.ttcn
M sgsn/SGSN_Tests_Iu.ttcn
2 files changed, 19 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/63/15163/1

diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index d96d3d9..4b5dd0f 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -2183,7 +2183,7 @@
        vc_conn.done;
 }

-private function f_routing_area_update(RoutingAreaIdentificationV ra, integer 
bssgp := 0) runs on BSSGP_ConnHdlr {
+friend function f_routing_area_update(RoutingAreaIdentificationV ra, integer 
bssgp := 0) runs on BSSGP_ConnHdlr {
        var PDU_L3_SGSN_MS l3_mt;

        /* then send RAU */
diff --git a/sgsn/SGSN_Tests_Iu.ttcn b/sgsn/SGSN_Tests_Iu.ttcn
index 43d1965..9ee4468 100644
--- a/sgsn/SGSN_Tests_Iu.ttcn
+++ b/sgsn/SGSN_Tests_Iu.ttcn
@@ -27,10 +27,28 @@
        vc_conn.done;
 }

+private function f_TC_iu_attach_geran_rau(charstring id) runs on 
BSSGP_ConnHdlr {
+       var PdpActPars apars := valueof(t_PdpActPars(mp_ggsn_ip));

+       /* first perform regular attach */
+       f_gmm_attach(umts_aka_challenge := true, force_gsm_sres := false, 
gb_idx := 3);
+
+       /* do a routing area update */
+       f_routing_area_update(g_pars.ra);
+}
+
+testcase TC_iu_attach_gmm_rau() runs on test_CT {
+       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, 1001);
+       vc_conn.done;
+}

 control {
        execute( TC_iu_attach() );
+       execute( TC_iu_attach_gmm_rau() );
 }



--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15163
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ie043639638a640a2041324fc910964385a41c77d
Gerrit-Change-Number: 15163
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lyn...@fe80.eu>
Gerrit-MessageType: newchange

Reply via email to