Change in osmo-ttcn3-hacks[master]: BTS_Tests: check if si1, si3, si13 are updated via PCUIF

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/.

dexter gerrit-no-reply at lists.osmocom.org
Mon Jan 25 16:42:20 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22431 )


Change subject: BTS_Tests: check if si1,si3,si13 are updated via PCUIF
......................................................................

BTS_Tests: check if si1,si3,si13 are updated via PCUIF

The BSC can update the system information at any time. In the case of
SI1, SI3, SI14 it is important that the changes are propergated to the
PCU as well.

Related: SYS#5103
Change-Id: I6ec543b3cb33d82c442083b52c991add71b34644
---
M bts/BTS_Tests.ttcn
M library/General_Types.ttcn
2 files changed, 54 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/31/22431/1

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index c843032..506bf99 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -7200,6 +7200,59 @@
 	vc_conn.done;
 }
 
+/* Check that if the system informatio (si1, si3, si13, required for RIM) is
+ * correctly propergated to the PCU after updating it via RSL */
+testcase TC_si_update_pcuif() runs on test_CT {
+	f_init();
+
+	var octetstring si1 := '5506198fb100000000000000000000000000007900002b'O;
+	var octetstring si3 := '49061b753000f110236ec9033c2747407900003c0b2b2b'O;
+	var octetstring si13 := '0106009000185a6fc9e08410ab2b2b2b2b2b2b2b2b2b2b'O;
+
+	/* Update system information via PCUIF info indication */
+	si_cfg.si1_present := true;
+	f_rsl_bcch_fill_raw(RSL_SYSTEM_INFO_1, si1);
+	f_rsl_bcch_fill_raw(RSL_SYSTEM_INFO_3, si3);
+	si_cfg.si13_present := true;
+	f_rsl_bcch_fill_raw(RSL_SYSTEM_INFO_13, si13);
+
+	/* See if the new system information is forwarded to the PCU */
+	timer T := 2.0;
+	T.start;
+	alt {
+	[] as_pcu_info_ind(PCU, g_pcu_conn_id, g_pcu_last_info) { repeat; }
+	[] PCU.receive {
+		/* Let through everything that we do not need. */
+		repeat;
+		}
+	[] T.timeout {}
+	}
+
+	/* Check if the system information we got matches what we just set */
+	if (g_pcu_last_info.u.info_ind.si1_is_set != 1) {
+		setverdict(fail, "SI1 not set");
+	}
+	if (g_pcu_last_info.u.info_ind.si1 != si1) {
+		setverdict(fail, "contents of SI1 do not match expected value");
+	}
+
+	if (g_pcu_last_info.u.info_ind.si3_is_set != 1) {
+		setverdict(fail, "SI3 not set");
+	}
+	if (g_pcu_last_info.u.info_ind.si3 != si3) {
+		setverdict(fail, "contents of SI3 do not match expected value");
+	}
+
+	if (g_pcu_last_info.u.info_ind.si13_is_set != 1) {
+		setverdict(fail, "SI13 not set");
+	}
+	if (g_pcu_last_info.u.info_ind.si13 != si13) {
+		setverdict(fail, "contents of SI13 do not match expected value");
+	}
+
+	Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
+}
+
 /* test generation of RLL ERR IND based on Um errors (TS 48.058 3.9) */
 /*	protocol error as per 44.006 */
 /*	link layer failure (repetition of I-frame N200 times without ACK */
diff --git a/library/General_Types.ttcn b/library/General_Types.ttcn
index 40f0770..7d1ffaa 100644
--- a/library/General_Types.ttcn
+++ b/library/General_Types.ttcn
@@ -239,6 +239,7 @@
   type octetstring OCT18 length(18) with { variant "FIELDLENGTH(18)" };
   type octetstring OCT19 length(19) with { variant "FIELDLENGTH(19)" };
   type octetstring OCT20 length(20) with { variant "FIELDLENGTH(20)" };
+  type octetstring OCT23 length(23) with { variant "FIELDLENGTH(23)" };
   type octetstring OCT22 length(22) with { variant "FIELDLENGTH(22)" };
   type octetstring OCT32 length(32) with { variant "FIELDLENGTH(32)" };
   type octetstring OCT34 length(34) with { variant "FIELDLENGTH(34)" };

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22431
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: I6ec543b3cb33d82c442083b52c991add71b34644
Gerrit-Change-Number: 22431
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210125/0f17a9e7/attachment.htm>


More information about the gerrit-log mailing list