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/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15414 Change subject: bcs: Add test for Emergency broadcast of ETWS Primary Notification ...................................................................... bcs: Add test for Emergency broadcast of ETWS Primary Notification Change-Id: Ib057bd251604e9bae968e71de245b3bbf737a356 --- M bsc/BSC_Tests_CBSP.ttcn M library/CBSP_Templates.ttcn 2 files changed, 40 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/14/15414/1 diff --git a/bsc/BSC_Tests_CBSP.ttcn b/bsc/BSC_Tests_CBSP.ttcn index d128761..d409425 100644 --- a/bsc/BSC_Tests_CBSP.ttcn +++ b/bsc/BSC_Tests_CBSP.ttcn @@ -154,6 +154,35 @@ } /* send a WRITE CBS to the BSC; expect either COMPLETE or FAILURE in response*/ +function f_cbsp_write_emerg(uint16_t msg_id, uint16_t ser_no, + template (value) BSSMAP_FIELD_CellIdentificationList cell_list := ts_BSSMAP_CIL_BSS, + template (value) uint8_t emerg_ind := 1, + template (value) uint16_t warn_type := oct2int('0780'O), + template (value) uint16_t warn_per := 5, + template BSSMAP_FIELD_CellIdentificationList success_list := ?, + template CBSP_FailureListItems fail_list := omit) runs on cbsp_test_CT { + var template (value) CBSP_PDU tx; + var template CBSP_PDU rx; + var CBSP_IEs pages := {f_gen_page()}; + + tx := ts_CBSP_WRITE_EMERG(msg_id, ser_no, cell_list, emerg_ind, warn_type, warn_per); + CBSP[0].send(ts_CBSP_Send(g_cbsp_conn_id[0], tx)); + if (istemplatekind(fail_list, "omit")) { + rx := tr_CBSP_WRITE_CBS_COMPL(msg_id, ser_no, success_list, omit); + } else { + rx := tr_CBSP_WRITE_CBS_FAIL(msg_id, ser_no, fail_list, *, success_list, omit); + } + alt { + [] CBSP[0].receive(tr_CBSP_Recv(g_cbsp_conn_id[0], rx)) { + setverdict(pass); + } + [] CBSP[0].receive(tr_CBSP_Recv(g_cbsp_conn_id[0], ?)) { + setverdict(fail, "Received unexpected CBSP"); + } + } +} + +/* send a WRITE CBS to the BSC; expect either COMPLETE or FAILURE in response*/ function f_cbsp_write(uint16_t msg_id, uint16_t ser_no, template (value) BSSMAP_FIELD_CellIdentificationList cell_list := ts_BSSMAP_CIL_BSS, template (value) CBSP_Category category := CBSP_CATEG_NORMAL, @@ -477,6 +506,17 @@ f_cbsp_reset_bss(0); } +/* Write to single BTS supporting CBCH: success */ +testcase TC_cbsp_emerg_write_bts_cgi() runs on cbsp_test_CT { + var CBSP_IEs pages := {f_gen_page()}; + var template (value) BSSMAP_FIELD_CellIdentificationList cell_list; + cell_list := ts_BSSMAP_CIL_CGI({bssmap_cgi(mp_cgi_bts0)}); + f_cbsp_init_server(); + f_cbsp_write_emerg(15, 1015, cell_list); + f_sleep(5.0); +} + + control { execute( TC_cbsp_bsc_server() ); execute( TC_cbsp_bsc_client() ); diff --git a/library/CBSP_Templates.ttcn b/library/CBSP_Templates.ttcn index 2283e6f..911b905 100644 --- a/library/CBSP_Templates.ttcn +++ b/library/CBSP_Templates.ttcn @@ -283,7 +283,6 @@ template (value) BSSMAP_FIELD_CellIdentificationList cell_list, template (value) uint8_t emerg_ind, template (value) uint16_t warn_type, - template (value) uint16_t num_bcast_req, template (value) uint8_t warn_per ) := ts_CBSP(CBSP_MSGT_WRITE_REPLACE, { -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15414 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ib057bd251604e9bae968e71de245b3bbf737a356 Gerrit-Change-Number: 15414 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at gnumonks.org> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190905/88f934ad/attachment.htm>