aboutsummaryrefslogtreecommitdiffstats
path: root/gbproxy/GBProxy_Tests.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'gbproxy/GBProxy_Tests.ttcn')
-rw-r--r--gbproxy/GBProxy_Tests.ttcn26
1 files changed, 26 insertions, 0 deletions
diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index bf777cc8..63427dfc 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -861,6 +861,31 @@ testcase TC_resume() runs on test_CT
f_cleanup();
}
+private function f_TC_flush_ll(charstring id) runs on BSSGP_ConnHdlr {
+ var BssgpBvci bvci := g_pars.pcu[0].cfg.bvc[0].bvci;
+ var integer i;
+ for (i := 0; i < 10; i := i+1) {
+ /* TODO: Test ACK, correctly set old and new bvci and nsei
+ * Actually move the tlli to a different BVC and check that the tlli is now moved to the new BVC (e.g. through paging) */
+ var template (value) PDU_BSSGP pdu_tx := ts_BSSGP_FLUSH_LL(g_pars.tlli, bvci, omit, omit);
+ /* we cannot use pdu_tx as there are some subtle differences in the length field :/ */
+ var template (present) PDU_BSSGP pdu_rx := tr_BSSGP_FLUSH_LL(g_pars.tlli, bvci, omit, omit);
+
+ f_sgsn2pcu(pdu_tx, pdu_rx);
+ }
+ setverdict(pass);
+}
+testcase TC_flush_ll() runs on test_CT
+{
+ var BSSGP_ConnHdlr vc_conn;
+ f_init();
+
+ vc_conn := f_start_handler(refers(f_TC_flush_ll), testcasename(), g_pcu, g_sgsn, 6);
+ vc_conn.done;
+ /* TODO: start multiple handlers (UEs) on various cells on same and other NSEs */
+
+ f_cleanup();
+}
control {
execute( TC_BVC_bringup() );
@@ -871,6 +896,7 @@ control {
execute( TC_radio_status() );
execute( TC_suspend() );
execute( TC_resume() );
+ execute( TC_flush_ll() );
}