<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22825">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">GBProxy_Tests: fix TC_rim_info_pcu2pcu<br><br>The testcase TC_rim_info_pcu2pcu calls a function f_TC_rim_info_pcu2pcu()<br>which uses the templates from Osmocom_Gb_Types.ttcn not as intended. This<br>eventually lets the altstep in f_rim_pcu2pcu() run into timeout since<br>the templates never match.<br><br>Change-Id: I281dc53bb5dd7be86edc9db185618252ff1b9a21<br>Related: SYS#5103<br>---<br>M gbproxy/GBProxy_Tests.ttcn<br>1 file changed, 22 insertions(+), 10 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/25/22825/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn</span><br><span>index 0f3b4cb..af9646c 100644</span><br><span>--- a/gbproxy/GBProxy_Tests.ttcn</span><br><span>+++ b/gbproxy/GBProxy_Tests.ttcn</span><br><span>@@ -3122,22 +3122,34 @@</span><br><span> {</span><br><span>     var BssgpCellId cell_id_src := g_pcu[src_pcu_idx].cfg.bvc[src_bvc_idx].cell_id;</span><br><span>      var BssgpCellId cell_id_dst := g_pcu[dst_pcu_idx].cfg.bvc[dst_bvc_idx].cell_id;</span><br><span style="color: hsl(0, 100%, 40%);">- var template (value) RIM_Routing_Information ri_pcu_src;</span><br><span style="color: hsl(0, 100%, 40%);">-        var template (value) RIM_Routing_Information ri_pcu_dst;</span><br><span style="color: hsl(0, 100%, 40%);">-        var template (value) RAN_Information_RIM_Container cont;</span><br><span style="color: hsl(120, 100%, 40%);">+      var template (value) RIM_Routing_Information ri_pcu_src_tx;</span><br><span style="color: hsl(120, 100%, 40%);">+   var template (value) RIM_Routing_Information ri_pcu_dst_tx;</span><br><span style="color: hsl(120, 100%, 40%);">+   var template RIM_Routing_Information ri_pcu_src_rx;</span><br><span style="color: hsl(120, 100%, 40%);">+   var template RIM_Routing_Information ri_pcu_dst_rx;</span><br><span style="color: hsl(120, 100%, 40%);">+   var template (value) RAN_Information_RIM_Container cont_tx;</span><br><span style="color: hsl(120, 100%, 40%);">+   var template RAN_Information_RIM_Container cont_rx;</span><br><span> </span><br><span>      log("Testing RIM PCU2PCU from PCU[", src_pcu_idx, "][", src_bvc_idx, "] to PCU[",</span><br><span>          dst_pcu_idx, "][", dst_bvc_idx, "]");</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-       ri_pcu_src := ts_RIM_Routing_Information(RIM_ADDR_GERAN_CELL_ID,</span><br><span style="color: hsl(120, 100%, 40%);">+      ri_pcu_src_tx := ts_RIM_Routing_Information(RIM_ADDR_GERAN_CELL_ID,</span><br><span>                                           t_RIM_Routing_Address_cid(cell_id_src));</span><br><span style="color: hsl(0, 100%, 40%);">-       ri_pcu_dst := ts_RIM_Routing_Information(RIM_ADDR_GERAN_CELL_ID,</span><br><span style="color: hsl(120, 100%, 40%);">+      ri_pcu_dst_tx := ts_RIM_Routing_Information(RIM_ADDR_GERAN_CELL_ID,</span><br><span>                                           t_RIM_Routing_Address_cid(cell_id_dst));</span><br><span style="color: hsl(0, 100%, 40%);">-       cont := ts_RAN_Information_RIM_Container(ts_RIM_Application_Identity(RIM_APP_ID_NACC),</span><br><span style="color: hsl(0, 100%, 40%);">-                                           ts_RIM_Sequence_Number(0),</span><br><span style="color: hsl(0, 100%, 40%);">-                                              ts_RIM_PDU_Indications(false, RIM_PDU_TYPE_STOP));</span><br><span style="color: hsl(0, 100%, 40%);">-     f_rim_pcu2pcu(ts_PDU_BSSGP_RAN_INFORMATION(dst := ri_pcu_dst, src := ri_pcu_src, cont := cont),</span><br><span style="color: hsl(0, 100%, 40%);">-                 tr_PDU_BSSGP_RAN_INFORMATION(dst := ri_pcu_dst, src := ri_pcu_src, cont := cont),</span><br><span style="color: hsl(120, 100%, 40%);">+     ri_pcu_src_rx := tr_RIM_Routing_Information(RIM_ADDR_GERAN_CELL_ID,</span><br><span style="color: hsl(120, 100%, 40%);">+                                            t_RIM_Routing_Address_cid(cell_id_src));</span><br><span style="color: hsl(120, 100%, 40%);">+     ri_pcu_dst_rx := tr_RIM_Routing_Information(RIM_ADDR_GERAN_CELL_ID,</span><br><span style="color: hsl(120, 100%, 40%);">+                                            t_RIM_Routing_Address_cid(cell_id_dst));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   cont_tx := ts_RAN_Information_RIM_Container(ts_RIM_Application_Identity(RIM_APP_ID_NACC),</span><br><span style="color: hsl(120, 100%, 40%);">+                                                 ts_RIM_Sequence_Number(0),</span><br><span style="color: hsl(120, 100%, 40%);">+                                                    ts_RIM_PDU_Indications(false, RIM_PDU_TYPE_STOP));</span><br><span style="color: hsl(120, 100%, 40%);">+        cont_rx := tr_RAN_Information_RIM_Container(tr_RIM_Application_Identity(RIM_APP_ID_NACC),</span><br><span style="color: hsl(120, 100%, 40%);">+                                                 tr_RIM_Sequence_Number(0),</span><br><span style="color: hsl(120, 100%, 40%);">+                                                    tr_RIM_PDU_Indications(false, RIM_PDU_TYPE_STOP));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      f_rim_pcu2pcu(ts_PDU_BSSGP_RAN_INFORMATION(dst := ri_pcu_dst_tx, src := ri_pcu_src_tx, cont := cont_tx),</span><br><span style="color: hsl(120, 100%, 40%);">+                      tr_PDU_BSSGP_RAN_INFORMATION(dst := ri_pcu_dst_rx, src := ri_pcu_src_rx, cont := cont_rx),</span><br><span>                   src_pcu_idx, dst_pcu_idx);</span><br><span> }</span><br><span> testcase TC_rim_info_pcu2pcu() runs on GlobalTest_CT</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22825">change 22825</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/+/22825"/><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: I281dc53bb5dd7be86edc9db185618252ff1b9a21 </div>
<div style="display:none"> Gerrit-Change-Number: 22825 </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>