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/.
Harald Welte gerrit-no-reply at lists.osmocom.orgHarald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/14095
Change subject: bts: Add TC_sms_cb_cmd_cbch_sdcch{4,8}_multi()
......................................................................
bts: Add TC_sms_cb_cmd_cbch_sdcch{4,8}_multi()
These new tests verify that multiple SMSCB commands are equeued,
and that each related message is sent exactly once.
Change-Id: Ice22fd2689a42c3b1951a02e65664102d4eaccc2
Related: OS#4011
---
M bts/BTS_Tests.ttcn
1 file changed, 39 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/95/14095/1
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 8e28b50..b833693 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -4665,7 +4665,7 @@
var L1ctlDlMessage dl;
var boolean cmd_seen_once := false;
var integer i, j;
- timer T := 5.0;
+ timer T := 5.0 * int2float(lengthof(pars.msgs));
f_cbch_compute_exp_blocks(pars);
@@ -4785,6 +4785,26 @@
omit }
}
+private const CbchTestMsgs msgs_3m_4b_norm := {
+ { RSL_CB_CMD_NORMAL, 3, '001000320f1141660c344dd3cba09a0c000000000000'O &
+ '000102030405060708090a0b0c0d0e0f101213141516'O &
+ '101112131415161718191a1b1c1d1e1f202223242526'O &
+ '201122232425262728292a2b2c2d2e2f303233343536'O,
+ omit },
+ { RSL_CB_CMD_NORMAL, 3, '002000320f1141660c344dd3cba09a0c000000000000'O &
+ '002102030405060708090a0b0c0d0e0f101213141516'O &
+ '102112131415161718191a1b1c1d1e1f202223242526'O &
+ '202122232425262728292a2b2c2d2e2f303233343536'O,
+ omit },
+ { RSL_CB_CMD_NORMAL, 3, '003000320f1141660c344dd3cba09a0c000000000000'O &
+ '003102030405060708090a0b0c0d0e0f101213141516'O &
+ '103112131415161718191a1b1c1d1e1f202223242526'O &
+ '203122232425262728292a2b2c2d2e2f303233343536'O,
+ omit }
+}
+
+
+
/* transmit single-block SMSCB COMMAND */
testcase TC_sms_cb_cmd_cbch_sdcch4_1block() runs on test_CT {
var CbchTestPars pars := {
@@ -4849,6 +4869,22 @@
f_TC_smscb(pars);
}
+/* transmit multiple commands of each 4 blocks */
+testcase TC_sms_cb_cmd_cbch_sdcch4_multi() runs on test_CT {
+ var CbchTestPars pars := {
+ use_sdcch4 := true,
+ msgs := msgs_3m_4b_norm
+ };
+ f_TC_smscb(pars);
+}
+testcase TC_sms_cb_cmd_cbch_sdcch8_multi() runs on test_CT {
+ var CbchTestPars pars := {
+ use_sdcch4 := false,
+ msgs := msgs_3m_4b_norm
+ };
+ f_TC_smscb(pars);
+}
+
/* transmit SMSCB COMMAND with SCHEDULE payload */
testcase TC_sms_cb_cmd_cbch_sdcch4_schedule() runs on test_CT {
var CbchTestPars pars := {
@@ -5008,11 +5044,13 @@
execute( TC_sms_cb_cmd_cbch_sdcch4_2block() );
execute( TC_sms_cb_cmd_cbch_sdcch4_3block() );
execute( TC_sms_cb_cmd_cbch_sdcch4_4block() );
+ execute( TC_sms_cb_cmd_cbch_sdcch4_multi() );
execute( TC_sms_cb_cmd_cbch_sdcch4_schedule() );
execute( TC_sms_cb_cmd_cbch_sdcch8_1block() );
execute( TC_sms_cb_cmd_cbch_sdcch8_2block() );
execute( TC_sms_cb_cmd_cbch_sdcch8_3block() );
execute( TC_sms_cb_cmd_cbch_sdcch8_4block() );
+ execute( TC_sms_cb_cmd_cbch_sdcch8_multi() );
execute( TC_sms_cb_cmd_cbch_sdcch8_schedule() );
--
To view, visit https://gerrit.osmocom.org/14095
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: Ice22fd2689a42c3b1951a02e65664102d4eaccc2
Gerrit-Change-Number: 14095
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190519/549fe875/attachment.htm>