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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bts: add test TC_pcu_socket_verify_info_ind<br><br>Verify that the CellID of SI3 (TS 04.08 9.1.35) and other values are<br>passed properly to the PCU socket. A bug in OsmoBTS is currently causing<br>it to send a byte-swapped CellID, related fix is in [1].<br><br>[1] I68faf4558f0686fb2a3db24077dceaae05bf0262 (osmo-bts)<br>Related: OS#3854<br>Change-Id: I6516808f4b9e9a2301f9ccc1e55ded14e7334c33<br>---<br>M bts/BTS_Tests.ttcn<br>1 file changed, 23 insertions(+), 0 deletions(-)<br><br></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 7f0b205..15948a3 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -4866,6 +4866,28 @@</span><br><span>      Misc_Helpers.f_shutdown(__BFILE__, __LINE__);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* Verify that the cell_id of SI3 (TS 04.08 9.1.35) and other values are passed properly to the PCU socket (OS#3854) */</span><br><span style="color: hsl(120, 100%, 40%);">+testcase TC_pcu_socket_verify_info_ind() runs on test_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+   var SystemInformation si3 := valueof(ts_SI3_default);</span><br><span style="color: hsl(120, 100%, 40%);">+</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%);">+   /* Verify cell_id */</span><br><span style="color: hsl(120, 100%, 40%);">+  var uint16_t cell_id_si3 := si3.payload.si3.cell_id;</span><br><span style="color: hsl(120, 100%, 40%);">+  var uint16_t cell_id_pcu := g_pcu_last_info.u.info_ind.cell_id;</span><br><span style="color: hsl(120, 100%, 40%);">+       if (cell_id_si3 != cell_id_pcu) {</span><br><span style="color: hsl(120, 100%, 40%);">+             setverdict(fail, "Expected cell_id ", cell_id_si3, " got: ", cell_id_pcu);</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%);">+   /* Verify LAC */</span><br><span style="color: hsl(120, 100%, 40%);">+      var uint16_t lac_si3 := si3.payload.si3.lai.lac;</span><br><span style="color: hsl(120, 100%, 40%);">+      var uint16_t lac_pcu := g_pcu_last_info.u.info_ind.lac;</span><br><span style="color: hsl(120, 100%, 40%);">+       if (lac_si3 != lac_pcu) {</span><br><span style="color: hsl(120, 100%, 40%);">+             setverdict(fail, "Expected LAC ", lac_si3, " got: ", lac_pcu);</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%);">+   setverdict(pass);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span> </span><br><span> /***********************************************************************</span><br><span>  * Osmocom Style Dynamic Timeslot Support</span><br><span>@@ -6253,6 +6275,7 @@</span><br><span>            execute( TC_pcu_socket_noconnect_nosi3gprs() );</span><br><span>              execute( TC_pcu_socket_connect_si3gprs() );</span><br><span>          execute( TC_pcu_socket_disconnect_nosi3gprs() );</span><br><span style="color: hsl(120, 100%, 40%);">+              execute( TC_pcu_socket_verify_info_ind() );</span><br><span>  } else {</span><br><span>             log("PCU socket path not available, skipping PCU tests");</span><br><span>  }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15328">change 15328</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/+/15328"/><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: I6516808f4b9e9a2301f9ccc1e55ded14e7334c33 </div>
<div style="display:none"> Gerrit-Change-Number: 15328 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>