Change in osmo-ttcn3-hacks[master]: BSC: add a test case for BCCH carrier power reduction mode

fixeria gerrit-no-reply at lists.osmocom.org
Fri Jul 2 13:01:28 UTC 2021


fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24810 )

Change subject: BSC: add a test case for BCCH carrier power reduction mode
......................................................................

BSC: add a test case for BCCH carrier power reduction mode

Change-Id: I084f7736cd7d09b68ed49f8ba52a14de928d4c01
Depends: I765d5e38cb0746e0458773abf3717ee9bf1cb7d1
Related: SYS#4919
---
M bsc/BSC_Tests.ttcn
1 file changed, 27 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 5f58a9e..6b079a6 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -6921,6 +6921,32 @@
 	f_shutdown_helper();
 }
 
+/* Verify activation and deactivation of the BCCH carrier power reduction mode */
+testcase TC_c0_power_red_mode() runs on test_CT {
+	f_init(1);
+
+	for (var integer red := 6; red >= 0; red := red - 2) {
+		/* Configure BCCH carrier power reduction mode via the VTY */
+		f_vty_transceive(BSCVTY, "bts 0 c0-power-reduction " & int2str(red));
+
+		/* Expect Osmocom specific BS Power Control message on the RSL */
+		var template RSL_Message tr_rsl_pdu := tr_RSL_BS_PWR_CTRL(
+			chan_nr := t_RslChanNr_BCCH(0),
+			bs_power := tr_RSL_IE_BS_Power(red / 2));
+		tr_rsl_pdu.msg_disc := tr_RSL_MsgDisc(RSL_MDISC_CCHAN, false);
+		var RSL_Message unused := f_exp_ipa_rx(0, tr_rsl_pdu);
+
+		/* Additionally verify the applied value over the CTRL interface */
+		var CtrlValue cred := f_ctrl_get_bts(IPA_CTRL, 0, "c0-power-reduction");
+		if (cred != int2str(red)) {
+			setverdict(fail, "Unexpected BCCH carrier power reduction value ",
+					 cred, " (expected ", red, ")");
+		}
+	}
+
+	f_shutdown_helper();
+}
+
 /***********************************************************************
  * MSC Pooling
  ***********************************************************************/
@@ -9341,6 +9367,7 @@
 
 	/* Power control related */
 	execute( TC_assignment_verify_ms_power_params_ie() );
+	execute( TC_c0_power_red_mode() );
 
 	/* MSC pooling */
 	/* FIXME: in SCCPlite, indicating how many MSCs should be connected does currently not work. Since

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24810
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: I084f7736cd7d09b68ed49f8ba52a14de928d4c01
Gerrit-Change-Number: 24810
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
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/20210702/3eeab36f/attachment.htm>


More information about the gerrit-log mailing list