Change in osmo-ttcn3-hacks[master]: BTS_Tests.ttcn: introduce TC_ho_rach() for handover RACH

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

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri May 31 14:44:26 UTC 2019


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/14291


Change subject: BTS_Tests.ttcn: introduce TC_ho_rach() for handover RACH
......................................................................

BTS_Tests.ttcn: introduce TC_ho_rach() for handover RACH

Change-Id: If2e8d9c9947823df62f4bcc9a7fcd20734ff7858
Depends on: (trxcon) Ia967820a536c99966ba2c60b63d2ea9edb093f46
---
M bts/BTS_Tests.ttcn
1 file changed, 44 insertions(+), 0 deletions(-)



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

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 322a00f..e513d45 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -1493,6 +1493,49 @@
 	Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
 }
 
+/* Test handover RACH detection on inactive channel */
+testcase TC_ho_rach() runs on test_CT {
+	f_init();
+	f_init_l1ctl();
+	f_sleep(1.0);
+	f_l1_tune(L1CTL);
+
+	var OCT1 ra := f_rnd_ra_cs();
+	var ASP_RSL_Unitdata ud;
+	var GsmFrameNumber fn;
+
+	/* Switch trxcon to a dedicated channel without waiting
+	 * for Immediate Assignment and sending Access Burst */
+	f_L1CTL_DM_EST_REQ(L1CTL, { false, mp_trx0_arfcn },
+			   valueof(ts_RslChanNr_Bm(2)), 7);
+
+	/* Send Access Burst on TS2 (TCH/F), main DCCH */
+	fn := f_L1CTL_RACH(L1CTL, oct2int(ra),
+			   chan_nr := ts_RslChanNr_Bm(2),
+			   link_id := ts_RslLinkID_DCCH(0));
+
+	/* Wait for RSL_CHAN_RQD */
+	timer T := 3.0;
+	T.start;
+	alt {
+	[] RSL_CCHAN.receive(tr_RSL_UD(tr_RSL_CHAN_RQD(ra, fn, t_RslChanNr_Bm(2)))) {
+		log("Received handover RACH on ", ts_RslChanNr_Bm(2));
+		setverdict(pass);
+		}
+	[] RSL_CCHAN.receive(tr_RSL_UD(tr_RSL_CHAN_RQD(?, ?, ?, ?))) -> value ud {
+		Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
+			log2str("RACH wan not expected on ", ud));
+		}
+	[] RSL_CCHAN.receive { repeat; }
+	[] T.timeout {
+		Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
+			log2str("Timeout waiting for CHAN RQD: FN=", fn, " RA=", ra));
+		}
+	}
+
+	Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
+}
+
 /***********************************************************************
  * Measurement Processing / Reporting
  ***********************************************************************/
@@ -5466,6 +5509,7 @@
 	execute( TC_rach_content() );
 	execute( TC_rach_count() );
 	execute( TC_rach_max_ta() );
+	execute( TC_ho_rach() );
 	execute( TC_rach_load_idle_thresh0() );
 	execute( TC_rach_load_idle_below_thresh() );
 	execute( TC_rach_load_count() );

-- 
To view, visit https://gerrit.osmocom.org/14291
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: If2e8d9c9947823df62f4bcc9a7fcd20734ff7858
Gerrit-Change-Number: 14291
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190531/2a4e0998/attachment.htm>


More information about the gerrit-log mailing list