<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22431">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BTS_Tests: check if si1,si3,si13 are updated via PCUIF<br><br>The BSC can update the system information at any time. In the case of<br>SI1, SI3, SI14 it is important that the changes are propergated to the<br>PCU as well.<br><br>Related: SYS#5103<br>Change-Id: I6ec543b3cb33d82c442083b52c991add71b34644<br>---<br>M bts/BTS_Tests.ttcn<br>M library/General_Types.ttcn<br>2 files changed, 54 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/31/22431/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn</span><br><span>index c843032..506bf99 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -7200,6 +7200,59 @@</span><br><span>         vc_conn.done;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Check that if the system informatio (si1, si3, si13, required for RIM) is</span><br><span style="color: hsl(120, 100%, 40%);">+ * correctly propergated to the PCU after updating it via RSL */</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_si_update_pcuif() runs on test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+       f_init();</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   var octetstring si1 := '5506198fb100000000000000000000000000007900002b'O;</span><br><span style="color: hsl(120, 100%, 40%);">+     var octetstring si3 := '49061b753000f110236ec9033c2747407900003c0b2b2b'O;</span><br><span style="color: hsl(120, 100%, 40%);">+     var octetstring si13 := '0106009000185a6fc9e08410ab2b2b2b2b2b2b2b2b2b2b'O;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  /* Update system information via PCUIF info indication */</span><br><span style="color: hsl(120, 100%, 40%);">+     si_cfg.si1_present := true;</span><br><span style="color: hsl(120, 100%, 40%);">+   f_rsl_bcch_fill_raw(RSL_SYSTEM_INFO_1, si1);</span><br><span style="color: hsl(120, 100%, 40%);">+  f_rsl_bcch_fill_raw(RSL_SYSTEM_INFO_3, si3);</span><br><span style="color: hsl(120, 100%, 40%);">+  si_cfg.si13_present := true;</span><br><span style="color: hsl(120, 100%, 40%);">+  f_rsl_bcch_fill_raw(RSL_SYSTEM_INFO_13, si13);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      /* See if the new system information is forwarded to the PCU */</span><br><span style="color: hsl(120, 100%, 40%);">+       timer T := 2.0;</span><br><span style="color: hsl(120, 100%, 40%);">+       T.start;</span><br><span style="color: hsl(120, 100%, 40%);">+      alt {</span><br><span style="color: hsl(120, 100%, 40%);">+ [] as_pcu_info_ind(PCU, g_pcu_conn_id, g_pcu_last_info) { repeat; }</span><br><span style="color: hsl(120, 100%, 40%);">+   [] PCU.receive {</span><br><span style="color: hsl(120, 100%, 40%);">+              /* Let through everything that we do not need. */</span><br><span style="color: hsl(120, 100%, 40%);">+             repeat;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span style="color: hsl(120, 100%, 40%);">+     [] T.timeout {}</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%);">+   /* Check if the system information we got matches what we just set */</span><br><span style="color: hsl(120, 100%, 40%);">+ if (g_pcu_last_info.u.info_ind.si1_is_set != 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+             setverdict(fail, "SI1 not set");</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+     if (g_pcu_last_info.u.info_ind.si1 != si1) {</span><br><span style="color: hsl(120, 100%, 40%);">+          setverdict(fail, "contents of SI1 do not match expected value");</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%);">+   if (g_pcu_last_info.u.info_ind.si3_is_set != 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+             setverdict(fail, "SI3 not set");</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+     if (g_pcu_last_info.u.info_ind.si3 != si3) {</span><br><span style="color: hsl(120, 100%, 40%);">+          setverdict(fail, "contents of SI3 do not match expected value");</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%);">+   if (g_pcu_last_info.u.info_ind.si13_is_set != 1) {</span><br><span style="color: hsl(120, 100%, 40%);">+            setverdict(fail, "SI13 not set");</span><br><span style="color: hsl(120, 100%, 40%);">+   }</span><br><span style="color: hsl(120, 100%, 40%);">+     if (g_pcu_last_info.u.info_ind.si13 != si13) {</span><br><span style="color: hsl(120, 100%, 40%);">+                setverdict(fail, "contents of SI13 do not match expected value");</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%);">+   Misc_Helpers.f_shutdown(__BFILE__, __LINE__);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* test generation of RLL ERR IND based on Um errors (TS 48.058 3.9) */</span><br><span> /*     protocol error as per 44.006 */</span><br><span> /*   link layer failure (repetition of I-frame N200 times without ACK */</span><br><span>diff --git a/library/General_Types.ttcn b/library/General_Types.ttcn</span><br><span>index 40f0770..7d1ffaa 100644</span><br><span>--- a/library/General_Types.ttcn</span><br><span>+++ b/library/General_Types.ttcn</span><br><span>@@ -239,6 +239,7 @@</span><br><span>   type octetstring OCT18 length(18) with { variant "FIELDLENGTH(18)" };</span><br><span>   type octetstring OCT19 length(19) with { variant "FIELDLENGTH(19)" };</span><br><span>   type octetstring OCT20 length(20) with { variant "FIELDLENGTH(20)" };</span><br><span style="color: hsl(120, 100%, 40%);">+  type octetstring OCT23 length(23) with { variant "FIELDLENGTH(23)" };</span><br><span>   type octetstring OCT22 length(22) with { variant "FIELDLENGTH(22)" };</span><br><span>   type octetstring OCT32 length(32) with { variant "FIELDLENGTH(32)" };</span><br><span>   type octetstring OCT34 length(34) with { variant "FIELDLENGTH(34)" };</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22431">change 22431</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/+/22431"/><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: I6ec543b3cb33d82c442083b52c991add71b34644 </div>
<div style="display:none"> Gerrit-Change-Number: 22431 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>