Change in osmo-ttcn3-hacks[master]: PCU: introduce TC_egprs_pkt_chan_req_reject_emergency

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Mon May 25 09:06:33 UTC 2020


fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18424 )

Change subject: PCU: introduce TC_egprs_pkt_chan_req_reject_emergency
......................................................................

PCU: introduce TC_egprs_pkt_chan_req_reject_emergency

At the moment, the IUT does not support any emergency services.
Make sure that EGPRS Packet Channel Request for an emergency call
is properly rejected (RR Immediate Assignment Reject).

Note that at the time of writing this test, the IUT does not
handle EGPRS Packet Channel Request properly, so it fails.

Change-Id: I63d989e89e6235a631e024c2810a3a4b0de56ccf
Related: OS#1548
---
M pcu/PCU_Tests.ttcn
1 file changed, 30 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index fb59c13..999ece0 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -1832,6 +1832,35 @@
 	f_shutdown(__BFILE__, __LINE__, final := true);
 }
 
+/* At the moment, the IUT does not support any emergency services. Make sure
+ * that EGPRS Packet Channel Request for an emergency call is properly rejected. */
+testcase TC_egprs_pkt_chan_req_reject_emergency() runs on RAW_PCU_Test_CT {
+	var template IARRestOctets rest;
+	var BIT5 ext_ra;
+	var BIT11 ra11;
+
+	/* Initialize the PCU interface abstraction */
+	f_init_raw(testcasename());
+
+	var EGPRSPktChRequest req := {
+		/* NOTE: other fields are set in the loop */
+		emergency := { tag := '110111'B }
+	};
+
+	for (var integer i := 0; i < 6; i := i + 1) {
+		ext_ra := int2bit(f_rnd_int(32), 5); /* 5 LSB's of RA11 */
+		rest := tr_IARRestOctets({ *, tr_ExtRAOpt(ext_ra), * });
+
+		req.emergency.random_bits := ext_ra;
+		ra11 := enc_EGPRSPktChRequest2bits(req);
+
+		/* Intentionally incorrect message (see table 11.2.5a.2) */
+		f_TC_egprs_pkt_chan_req_reject(ra11, 1337 + i, rest);
+	}
+
+	f_shutdown(__BFILE__, __LINE__, final := true);
+}
+
 control {
 	execute( TC_pcuif_suspend() );
 	execute( TC_ta_ptcch_idle() );
@@ -1865,6 +1894,7 @@
 	execute( TC_egprs_pkt_chan_req_one_phase() );
 	execute( TC_egprs_pkt_chan_req_two_phase() );
 	execute( TC_egprs_pkt_chan_req_reject_content() );
+	execute( TC_egprs_pkt_chan_req_reject_emergency() );
 
 	execute( TC_mo_ping_pong_with_ul_racap_egprs_only() );
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18424
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: I63d989e89e6235a631e024c2810a3a4b0de56ccf
Gerrit-Change-Number: 18424
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200525/4249aea5/attachment.htm>


More information about the gerrit-log mailing list