<p>fixeria <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18424">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">PCU: introduce TC_egprs_pkt_chan_req_reject_emergency<br><br>At the moment, the IUT does not support any emergency services.<br>Make sure that EGPRS Packet Channel Request for an emergency call<br>is properly rejected (RR Immediate Assignment Reject).<br><br>Note that at the time of writing this test, the IUT does not<br>handle EGPRS Packet Channel Request properly, so it fails.<br><br>Change-Id: I63d989e89e6235a631e024c2810a3a4b0de56ccf<br>Related: OS#1548<br>---<br>M pcu/PCU_Tests.ttcn<br>1 file changed, 30 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn</span><br><span>index fb59c13..999ece0 100644</span><br><span>--- a/pcu/PCU_Tests.ttcn</span><br><span>+++ b/pcu/PCU_Tests.ttcn</span><br><span>@@ -1832,6 +1832,35 @@</span><br><span>        f_shutdown(__BFILE__, __LINE__, final := true);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* At the moment, the IUT does not support any emergency services. Make sure</span><br><span style="color: hsl(120, 100%, 40%);">+ * that EGPRS Packet Channel Request for an emergency call is properly rejected. */</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_egprs_pkt_chan_req_reject_emergency() runs on RAW_PCU_Test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+      var template IARRestOctets rest;</span><br><span style="color: hsl(120, 100%, 40%);">+      var BIT5 ext_ra;</span><br><span style="color: hsl(120, 100%, 40%);">+      var BIT11 ra11;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     /* Initialize the PCU interface abstraction */</span><br><span style="color: hsl(120, 100%, 40%);">+        f_init_raw(testcasename());</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ var EGPRSPktChRequest req := {</span><br><span style="color: hsl(120, 100%, 40%);">+                /* NOTE: other fields are set in the loop */</span><br><span style="color: hsl(120, 100%, 40%);">+          emergency := { tag := '110111'B }</span><br><span style="color: hsl(120, 100%, 40%);">+     };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  for (var integer i := 0; i < 6; i := i + 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+              ext_ra := int2bit(f_rnd_int(32), 5); /* 5 LSB's of RA11 */</span><br><span style="color: hsl(120, 100%, 40%);">+                rest := tr_IARRestOctets({ *, tr_ExtRAOpt(ext_ra), * });</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+            req.emergency.random_bits := ext_ra;</span><br><span style="color: hsl(120, 100%, 40%);">+          ra11 := enc_EGPRSPktChRequest2bits(req);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+            /* Intentionally incorrect message (see table 11.2.5a.2) */</span><br><span style="color: hsl(120, 100%, 40%);">+           f_TC_egprs_pkt_chan_req_reject(ra11, 1337 + i, rest);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   f_shutdown(__BFILE__, __LINE__, final := true);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> control {</span><br><span>    execute( TC_pcuif_suspend() );</span><br><span>       execute( TC_ta_ptcch_idle() );</span><br><span>@@ -1865,6 +1894,7 @@</span><br><span>       execute( TC_egprs_pkt_chan_req_one_phase() );</span><br><span>        execute( TC_egprs_pkt_chan_req_two_phase() );</span><br><span>        execute( TC_egprs_pkt_chan_req_reject_content() );</span><br><span style="color: hsl(120, 100%, 40%);">+    execute( TC_egprs_pkt_chan_req_reject_emergency() );</span><br><span> </span><br><span>     execute( TC_mo_ping_pong_with_ul_racap_egprs_only() );</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18424">change 18424</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18424"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I63d989e89e6235a631e024c2810a3a4b0de56ccf </div>
<div style="display:none"> Gerrit-Change-Number: 18424 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>