Change in osmo-ttcn3-hacks[master]: bts/BTS_Tests: derive ts_ChanDesc{H0, H1} from ts_ChanDesc

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.org
Thu May 28 09:17:57 UTC 2020


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

Change subject: bts/BTS_Tests: derive ts_ChanDesc{H0,H1} from ts_ChanDesc
......................................................................

bts/BTS_Tests: derive ts_ChanDesc{H0,H1} from ts_ChanDesc

Change-Id: Ifea1fe51e6fbfa26601136cfc8af55a5ae4e1512
Related: OS#4546
---
M bts/BTS_Tests.ttcn
1 file changed, 12 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve



diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index aefab09..f20a29b 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -3157,8 +3157,8 @@
 	ma := ''B
 }
 
-template (value) ChannelDescription ts_ChanDesc(template (value) RslChannelNr chan_nr, uint3_t tsc := 7,
-						uint12_t arfcn := 871) := {
+template (value) ChannelDescription ts_ChanDescH0(template (value) RslChannelNr chan_nr, uint3_t tsc := 7,
+						  uint12_t arfcn := 871) := {
 	chan_nr := chan_nr,
 	tsc := tsc,
 	h := false,
@@ -3166,6 +3166,15 @@
 	maio_hsn := omit
 }
 
+template (value) ChannelDescription ts_ChanDescH1(template (value) RslChannelNr chan_nr, uint3_t tsc := 7,
+						  template (value) MaioHsn maio_hsn) := {
+	chan_nr := chan_nr,
+	tsc := tsc,
+	h := true,
+	arfcn := omit,
+	maio_hsn := maio_hsn
+}
+
 private function f_fmt_ia_stats(integer num_tx, integer num_rx, integer num_del) return charstring {
 	return int2str(num_tx) & " sent, "
 		  & int2str(num_rx) & " received, "
@@ -3186,7 +3195,7 @@
 	f_l1_tune(L1CTL);
 
 	for (var integer i := 0; i < num_total; i := i+1) {
-		var ChannelDescription ch_desc := valueof(ts_ChanDesc(valueof(t_RslChanNr_SDCCH4(0, 0))));
+		var ChannelDescription ch_desc := valueof(ts_ChanDescH0(valueof(t_RslChanNr_SDCCH4(0, 0))));
 		var GsmRrMessage ia := valueof(ts_IMM_ASS(42, i, 5, ch_desc, c_MA_null));
 		var octetstring ia_enc := enc_GsmRrMessage(ia);
 		RSL_CCHAN.send(ts_ASP_RSL_UD(ts_RSL_IMM_ASSIGN(ia_enc, 0)));

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18523
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: Ifea1fe51e6fbfa26601136cfc8af55a5ae4e1512
Gerrit-Change-Number: 18523
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
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/20200528/e1d6f039/attachment.htm>


More information about the gerrit-log mailing list