Change in osmo-ttcn3-hacks[master]: gbproxy: Add flush_ll test without new bvci

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

daniel gerrit-no-reply at lists.osmocom.org
Thu Nov 25 17:15:52 UTC 2021


daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26372 )


Change subject: gbproxy: Add flush_ll test without new bvci
......................................................................

gbproxy: Add flush_ll test without new bvci

Change-Id: I9af6f0829bf10031b86e587529b86706fea3a413
Related: OS#5332
---
M gbproxy/GBProxy_Tests.ttcn
1 file changed, 33 insertions(+), 4 deletions(-)



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

diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index f569eaf..cb9ace7 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -2357,7 +2357,7 @@
  * FLUSH-LL procedure
  ***********************************************************************/
 
-private function f_TC_flush_ll(charstring id) runs on BSSGP_ConnHdlr {
+private function f_TC_flush_ll_bvci_new(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) {
@@ -2375,10 +2375,38 @@
 	}
 	setverdict(pass);
 }
-testcase TC_flush_ll() runs on test_CT
+
+testcase TC_flush_ll_bvci_new() runs on test_CT
 {
 	f_init();
-	f_start_handlers(refers(f_TC_flush_ll), testcasename(), 6);
+	f_start_handlers(refers(f_TC_flush_ll_bvci_new), testcasename(), 6);
+	/* TODO: start multiple handlers (UEs) on various cells on same and other NSEs */
+	f_cleanup();
+}
+
+private function f_TC_flush_ll_no_bvci_new(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) {
+		var template (value) PDU_BSSGP pdu_tx := ts_BSSGP_FLUSH_LL(g_pars.tlli, bvci);
+		/* 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);
+
+		f_sgsn2pcu(pdu_tx, pdu_rx, use_sig := true);
+
+		pdu_tx := ts_BSSGP_FLUSH_LL_ACK(g_pars.tlli, int2oct(0, 1), 23);
+		/* we cannot use pdu_tx as there are some subtle differences in the length field :/ */
+		pdu_rx := tr_BSSGP_FLUSH_LL_ACK(g_pars.tlli, int2oct(0, 1), 23);
+
+		f_pcu2sgsn(pdu_tx, pdu_rx, use_sig := true);
+	}
+	setverdict(pass);
+}
+
+testcase TC_flush_ll_no_bvci_new() runs on test_CT
+{
+	f_init();
+	f_start_handlers(refers(f_TC_flush_ll_no_bvci_new), testcasename(), 6);
 	/* TODO: start multiple handlers (UEs) on various cells on same and other NSEs */
 	f_cleanup();
 }
@@ -3643,7 +3671,8 @@
 	execute( TC_rim_from_eutran() );
 
 
-	execute( TC_flush_ll() );
+	execute( TC_flush_ll_bvci_new() );
+	execute( TC_flush_ll_no_bvci_new() );
 	execute( TC_fc_bvc() );
 	execute( TC_fc_ms() );
 	execute( TC_ms_reg_enq() );

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26372
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: I9af6f0829bf10031b86e587529b86706fea3a413
Gerrit-Change-Number: 26372
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211125/674d9e49/attachment.htm>


More information about the gerrit-log mailing list