diff options
author | Harald Welte <laforge@osmocom.org> | 2021-02-03 17:46:38 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-02-03 19:28:05 +0100 |
commit | 02cdc7cf2cde6b1f4499f1dc26a74b1a8e3f7a66 (patch) | |
tree | 42883e3743521aec14baa5cbf091b0f03b0173c3 /fr | |
parent | 5e78788c4e9b870ce434e318d7cfd77b82212fa3 (diff) |
fr: Add component id in logs; add 15s timeout waiting for BVC-UNBLOCK
Change-Id: If62d54517ee9af828d6fa56d83073260ceced1e8
Diffstat (limited to 'fr')
-rw-r--r-- | fr/FR_Tests.ttcn | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/fr/FR_Tests.ttcn b/fr/FR_Tests.ttcn index 23c8e261..2bac1f8e 100644 --- a/fr/FR_Tests.ttcn +++ b/fr/FR_Tests.ttcn @@ -115,19 +115,28 @@ function f_handler_init(void_fn fn, charstring id, UE_Pars pars) runs on UE_CT { function f_ul_ud(charstring id) runs on UE_CT { - log("Waiting for BVC-UNBLOCK"); + log(id, " Waiting for BVC-UNBLOCK"); + timer T := 15.0; + T.start; alt { [] BSSGP[0].receive(BssgpStatusIndication:{*,?,BVC_S_UNBLOCKED}) { } [] BSSGP[0].receive { repeat; } + [] T.timeout { + setverdict(fail, id, " Timeout waiting for BVC-UNBLOCK"); + self.stop; + } } - log ("Entering main loop"); + log (id, " Entering main loop"); for (var integer num_pkts := 0; num_pkts < 50; num_pkts := num_pkts + 1) { var integer ran_index := 0; //BSSGP[ran_index].send(ts_BSSGP_UL_UD(g_pars.tlli, g_pars.bssgp_cell_id[ran_index], llc_enc)); BSSGP[ran_index].send(ts_LLC_UI(f_rnd_octstring(512), '0000'B, '1'B, 0)) f_sleep(0.5); + /* 512 bytes + 32 bytes HDR every 0.5s (1088/s) means about 8704/s per UE */ + /* at 100 UE that ends up about 870 kBps */ } + log (id, "Leaving main loop"); } function f_start_ue(void_fn fn, charstring id, GbInstance gb, integer imsi_suffix, BSSGP_BVC_CT bvc_comp, float t_guard := 40.0) |