This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Vadim Yanitskiy gerrit-no-reply at lists.osmocom.orgVadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/11210 Change subject: BTS_Tests.ttcn: extend f_unitdata_mo() with tolerance parameters ...................................................................... BTS_Tests.ttcn: extend f_unitdata_mo() with tolerance parameters The ability to control which kinds of RSL messages are permitted in a given use case (and which are not) makes f_unitdata_mo() function much more flexible. Let's introduce two new parameters, one of which would make its 'alt' statement tolerant to SACCH messages (Measurement Reports), and another to other kinds of RSL messages. Please note that the original behaviour of f_unitdata_mo() went untouched, so it's still tolerant to any other messages. Change-Id: I15782ec93d68a0dc54b2ed7a84cb70d780ba0ce1 --- M bts/BTS_Tests.ttcn 1 file changed, 18 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/10/11210/1 diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index 809a403..b078956 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -3731,7 +3731,12 @@ } /* Send UI frame from MS and expect it to arrive as RLL UNITDATA IND on Abis */ -function f_unitdata_mo(RslLinkId link_id, octetstring l3) runs on ConnHdlr { +function f_unitdata_mo( + RslLinkId link_id, + octetstring l3, + boolean exp_sacch := true, /* Should tolerate SACCH messages? */ + boolean exp_any := true /* Should tolerate any other RSL messages? */ +) runs on ConnHdlr { timer T := 3.0; f_tx_lapdm(ts_LAPDm_UI(link_id.sapi, cr_MO_CMD, l3), link_id); T.start; @@ -3740,11 +3745,22 @@ [] RSL.receive(tr_RSL_UNITDATA_IND(g_chan_nr, link_id, l3)) { setverdict(pass); } + /* Expect (or not expect) SACCH messages (Measurement Reports) */ + [exp_sacch] RSL.receive(tr_RSL_UNITDATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) { repeat; } + [not exp_sacch] RSL.receive(tr_RSL_UNITDATA_IND(g_chan_nr, tr_RslLinkID_SACCH(?))) { + setverdict(fail, "Unexpected (SACCH) UNIT_DATA_IND message!"); + mtc.stop; + } + /* Expect (or not expect) other kinds of messages */ + [exp_any] RSL.receive { repeat; } + [not exp_any] RSL.receive { + setverdict(fail, "Unexpected RSL message!"); + mtc.stop; + } [] T.timeout { setverdict(fail, "Timeout waiting for UNIT_DATA_IND"); mtc.stop; } - [] RSL.receive { repeat; } } } -- To view, visit https://gerrit.osmocom.org/11210 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I15782ec93d68a0dc54b2ed7a84cb70d780ba0ce1 Gerrit-Change-Number: 11210 Gerrit-PatchSet: 1 Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181003/ac189599/attachment.htm>