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/.
neels gerrit-no-reply at lists.osmocom.orgneels has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25393 ) Change subject: bsc: add TC_ctrl_trx_rf_locked ...................................................................... bsc: add TC_ctrl_trx_rf_locked Related: OS#5542 Depends: Ie46fd730797b64fb185d705c3507e36f5f23ef4b (osmo-bsc) Change-Id: I2bb5096732f75a7341c7e83951e63c5a2038b469 --- M bsc/BSC_Tests.ttcn 1 file changed, 69 insertions(+), 0 deletions(-) Approvals: laforge: Looks good to me, approved pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 965a448..7cffac9 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -10088,6 +10088,73 @@ f_shutdown_helper(); } +/* GET and SET the bts.N.trx.M.rf_locked CTRL variable */ +testcase TC_ctrl_trx_rf_locked() runs on test_CT { + var MSC_ConnHdlr vc_conn; + + f_init(nr_bts := 2, handler_mode := true, nr_msc := 1); + f_sleep(1.0); + + /* BTS 0, 1, 2 are OML unlocked, only BTS 0, 1 are actually connected to RSL. */ + f_ctrl_get_exp(IPA_CTRL, "rf_states", + "0,0,operational,unlocked,on,rsl-up;" & + "1,0,operational,unlocked,on,rsl-up;" & + "2,0,operational,unlocked,on,rsl-down;" & + "3,0,inoperational,locked,on,rsl-down;"); + + f_logp(BSCVTY, "TC_ctrl_trx_rf_locked: lock BTS 1 TRX 0"); + f_ctrl_set(IPA_CTRL, "bts.1.trx.0.rf_locked", "1"); + /* give it a moment to settle the FSM status */ + f_sleep(1.0); + + /* Now BTS 1 TRX 0 should reflect "locked". Note the RF policy stays "on", because this is still handled + * globally in osmo-bsc. Probably after sending "rf_locked 1" for a TRX, that TRX should reflect an RF policy + * of "off"? But that's for a future patch if at all. */ + f_ctrl_get_exp(IPA_CTRL, "rf_states", + "0,0,operational,unlocked,on,rsl-up;" & + "1,0,operational,locked,on,rsl-up;" & + "2,0,operational,unlocked,on,rsl-down;" & + "3,0,inoperational,locked,on,rsl-down;"); + + f_logp(BSCVTY, "TC_ctrl_trx_rf_locked: lock the already locked TRX, nothing should change"); + f_ctrl_set(IPA_CTRL, "bts.1.trx.0.rf_locked", "1"); + f_sleep(1.0); + f_ctrl_get_exp(IPA_CTRL, "rf_states", + "0,0,operational,unlocked,on,rsl-up;" & + "1,0,operational,locked,on,rsl-up;" & + "2,0,operational,unlocked,on,rsl-down;" & + "3,0,inoperational,locked,on,rsl-down;"); + + f_logp(BSCVTY, "TC_ctrl_trx_rf_locked: unlock BTS 1 TRX 0"); + f_ctrl_set(IPA_CTRL, "bts.1.trx.0.rf_locked", "0"); + f_sleep(1.0); + f_ctrl_get_exp(IPA_CTRL, "rf_states", + "0,0,operational,unlocked,on,rsl-up;" & + "1,0,operational,unlocked,on,rsl-up;" & + "2,0,operational,unlocked,on,rsl-down;" & + "3,0,inoperational,locked,on,rsl-down;"); + + f_logp(BSCVTY, "TC_ctrl_trx_rf_locked: unlock an already unlocked TRX, nothing should change"); + f_ctrl_set(IPA_CTRL, "bts.0.trx.0.rf_locked", "0"); + f_sleep(1.0); + f_ctrl_get_exp(IPA_CTRL, "rf_states", + "0,0,operational,unlocked,on,rsl-up;" & + "1,0,operational,unlocked,on,rsl-up;" & + "2,0,operational,unlocked,on,rsl-down;" & + "3,0,inoperational,locked,on,rsl-down;"); + + f_logp(BSCVTY, "TC_ctrl_trx_rf_locked: unlock an inoperational TRX"); + f_ctrl_set(IPA_CTRL, "bts.3.trx.0.rf_locked", "0"); + f_sleep(1.0); + f_ctrl_get_exp(IPA_CTRL, "rf_states", + "0,0,operational,unlocked,on,rsl-up;" & + "1,0,operational,unlocked,on,rsl-up;" & + "2,0,operational,unlocked,on,rsl-down;" & + "3,0,inoperational,locked,on,rsl-down;"); + + f_shutdown_helper(); +} + control { /* CTRL interface testing */ execute( TC_ctrl_msc_connection_status() ); @@ -10389,6 +10456,8 @@ execute( TC_imm_ass_pre_ts_ack() ); execute( TC_imm_ass_pre_chan_ack_dyn_ts() ); execute( TC_imm_ass_pre_ts_ack_dyn_ts() ); + + execute( TC_ctrl_trx_rf_locked() ); } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25393 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: I2bb5096732f75a7341c7e83951e63c5a2038b469 Gerrit-Change-Number: 25393 Gerrit-PatchSet: 3 Gerrit-Owner: neels <nhofmeyr at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210914/fb652e50/attachment.htm>