<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22661">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">fr: Make TC_foo() actually terminate<br><br>Rather than running in an endless loop (useful for manual tets),<br>terminate each UE_CT after sending 50 packets.  Also adjust the ramping<br>and timeouts in a way that it manages to terminate ahead of the guard<br>timeout.<br><br>Change-Id: I7f40f5c59d399d528072986d067b5014fbd085c4<br>---<br>M fr/FR_Tests.ttcn<br>1 file changed, 7 insertions(+), 3 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/61/22661/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/fr/FR_Tests.ttcn b/fr/FR_Tests.ttcn</span><br><span>index 5777856..23c8e26 100644</span><br><span>--- a/fr/FR_Tests.ttcn</span><br><span>+++ b/fr/FR_Tests.ttcn</span><br><span>@@ -122,7 +122,7 @@</span><br><span>   }</span><br><span> </span><br><span>        log ("Entering main loop");</span><br><span style="color: hsl(0, 100%, 40%);">-   while (true) {</span><br><span style="color: hsl(120, 100%, 40%);">+        for (var integer num_pkts := 0; num_pkts < 50; num_pkts := num_pkts + 1) {</span><br><span>                var integer ran_index := 0;</span><br><span>          //BSSGP[ran_index].send(ts_BSSGP_UL_UD(g_pars.tlli, g_pars.bssgp_cell_id[ran_index], llc_enc));</span><br><span>              BSSGP[ran_index].send(ts_LLC_UI(f_rnd_octstring(512), '0000'B, '1'B, 0))</span><br><span>@@ -130,7 +130,7 @@</span><br><span>       }</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-function f_start_ue(void_fn fn, charstring id, GbInstance gb, integer imsi_suffix, BSSGP_BVC_CT bvc_comp, float t_guard := 30.0)</span><br><span style="color: hsl(120, 100%, 40%);">+function f_start_ue(void_fn fn, charstring id, GbInstance gb, integer imsi_suffix, BSSGP_BVC_CT bvc_comp, float t_guard := 40.0)</span><br><span> runs on test_CT return UE_CT</span><br><span> {</span><br><span>    var UE_CT ue_comp;</span><br><span>@@ -176,7 +176,11 @@</span><br><span>                            ue := f_start_ue(refers(f_ul_ud), id, g_gb[i], i*10000+j*100+k, bvc_comp);</span><br><span>                           ues := ues & { ue };</span><br><span>                             /* a bit of staggering to ensure the timers above don't run all at the same time */</span><br><span style="color: hsl(0, 100%, 40%);">-                         f_sleep(0.05);</span><br><span style="color: hsl(120, 100%, 40%);">+                                f_sleep(0.005);</span><br><span style="color: hsl(120, 100%, 40%);">+                               /* FIXME: as the BSSGP emulation is already running, we must not</span><br><span style="color: hsl(120, 100%, 40%);">+                               * take too long to start the UE components.  If we do, the</span><br><span style="color: hsl(120, 100%, 40%);">+                            * BVC_S_UNBLOCKED notification will arrive before the components</span><br><span style="color: hsl(120, 100%, 40%);">+                              * all are running, meaning we never get that one :( */</span><br><span>                      }</span><br><span>            }</span><br><span>    }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22661">change 22661</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/+/22661"/><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: I7f40f5c59d399d528072986d067b5014fbd085c4 </div>
<div style="display:none"> Gerrit-Change-Number: 22661 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>