Jenkins Builder has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33817 )
Change subject: BTS_Test_ASCI: Add UPLINK FREE / UPLINK BUSY test
......................................................................
Patch Set 1:
(1 comment)
File bts/BTS_Tests_ASCI.ttcn:
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-9764):
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33817/comment/18ef6960_666b…
PS1, Line 138: * When the UPLINK FREE message is sent, the MS is expected to receive serveral UPLINK FREE messages.
'serveral' may be misspelled - perhaps 'several'?
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33817
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: I2f70adb4a6f71eb8972feccf9dda0f77e7a942b9
Gerrit-Change-Number: 33817
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-CC: Jenkins Builder
Gerrit-Comment-Date: Wed, 19 Jul 2023 07:00:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Jenkins Builder has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816 )
Change subject: BTS_Test_ASCI: Add first ASCI test to check NCH support
......................................................................
Patch Set 1:
(1 comment)
File bts/BTS_Tests_ASCI.ttcn:
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-9762):
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816/comment/ef5e5653_b953…
PS1, Line 72: * When it stops, it is expected that NCH is not recevied anymore. */
'recevied' may be misspelled - perhaps 'received'?
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816
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: I3727c471663b731117a264f60d2f1ba5fd16928e
Gerrit-Change-Number: 33816
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-CC: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Wed, 19 Jul 2023 07:00:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816 )
Change subject: BTS_Test_ASCI: Add first ASCI test to check NCH support
......................................................................
BTS_Test_ASCI: Add first ASCI test to check NCH support
Send Notification command to start and stop notifying an ASCI call.
When it starts, it is expected that NCH is received. Also it is expected
that NCH is received again. When it stops, it is expected that NCH is
not recevied anymore.
Change-Id: I3727c471663b731117a264f60d2f1ba5fd16928e
---
M bts/BTS_Tests.ttcn
A bts/BTS_Tests_ASCI.ttcn
2 files changed, 146 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/16/33816/1
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 37d15b8..d893601 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -74,6 +74,7 @@
import from TELNETasp_PortType all;
import from BTS_Tests_LAPDm all;
+friend module BTS_Tests_ASCI;
friend module BTS_Tests_SMSCB;
friend module BTS_Tests_VAMOS;
friend module BTS_Tests_virtphy;
diff --git a/bts/BTS_Tests_ASCI.ttcn b/bts/BTS_Tests_ASCI.ttcn
new file mode 100644
index 0000000..22e965e
--- /dev/null
+++ b/bts/BTS_Tests_ASCI.ttcn
@@ -0,0 +1,131 @@
+module BTS_Tests_ASCI {
+
+/* ASCI Integration Tests for OsmoBTS
+ *
+ * (C) 2023 by sysmocom - s.f.m.c. GmbH <info(a)sysmocom.de>
+ * All Rights Reserved
+ *
+ * SPDX-License-Identifier: AGPL-3.0+
+ *
+ * Authors: Harald Welte; Andreas Eversberg
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+import from Misc_Helpers all;
+import from General_Types all;
+import from Osmocom_Types all;
+import from GSM_Types all;
+import from L1CTL_PortType all;
+import from L1CTL_Types all;
+import from LAPDm_Types all;
+import from IPA_Emulation all;
+import from GSM_RR_Types all;
+import from L3_Templates all;
+
+import from MobileL3_CommonIE_Types all;
+
+import from RSL_Emulation all;
+import from RSL_Types all;
+
+import from BTS_Tests all;
+
+
+
+/* convert from boolean value to BIT1 */
+private function bool2bit1(boolean inp) return BIT1 {
+ if (inp) {
+ return '1'B;
+ } else {
+ return '0'B;
+ }
+}
+
+/* encode a VBS/VGCS call reference into it's OCT5 representation */
+private function f_enc_gcr(integer call_ref, boolean is_group_call, boolean ack_required := false)
+return OCT5
+{
+ var DescriptiveGroupOrBroadcastCallReference_V v := {
+ binaryCodingOfGroupOrBroadcastCallReference := int2bit(call_ref, 27),
+ sF := bool2bit1(is_group_call),
+ aF := bool2bit1(ack_required),
+ callPriority := '000'B,
+ cipheringInformation := '0000'B,
+ spare := '0000'B
+ }
+ return bit2oct(encvalue(v));
+}
+
+/* Send Notification command to start and stop notifying an ASCI call.
+ * When it starts, it is expected that NCH is received by MS. Also it is expected that NCH is received again.
+ * When it stops, it is expected that NCH is not recevied anymore. */
+testcase TC_vbs_notification() runs on test_CT
+{
+ timer T := 2.0;
+
+ f_init();
+ f_init_l1ctl();
+ f_l1_tune(L1CTL);
+
+ var OCT5 gcr := f_enc_gcr(hex2int('2342'H), false, false);
+ var OCT3 chan_desc := '234266'O;
+ var octetstring notif_nch := '090620B42230000091A1330B2B2B2B2B2B2B2B2B2B2B2B'O;
+ var integer recv_count := 0;
+
+ log("Sending RSL NOTIF_CMD (start)");
+ RSL_CCHAN.send(ts_ASP_RSL_UD(ts_RSL_NOTIF_CMD_START(gcr, chan_desc)));
+
+ /* NCH must be received twice. */
+ T.start;
+ alt {
+ [] L1CTL.receive(tr_L1CTL_DATA_IND(t_RslChanNr_PCH_AGCH(0), ?, notif_nch)) {
+ log("Received matching NOTIFICATION/NCH.");
+ recv_count := recv_count + 1;
+ if (recv_count != 2) {
+ repeat;
+ }
+ T.stop;
+ }
+ [] L1CTL.receive { repeat; }
+ [] T.timeout {
+ setverdict(fail, "Timeout waiting for NCH message");
+ }
+ }
+
+ log("Sending RSL NOTIF_CMD (stop)");
+ RSL_CCHAN.send(ts_ASP_RSL_UD(ts_RSL_NOTIF_CMD_STOP(gcr)));
+
+ /* NCH must not be received. */
+ T.start;
+ alt {
+ [] L1CTL.receive(tr_L1CTL_DATA_IND(t_RslChanNr_PCH_AGCH(0), ?, notif_nch)) {
+ T.stop;
+ setverdict(fail, "Received unexpected NOTIFICATION/NCH.");
+ }
+ [] L1CTL.receive { repeat; }
+ [] T.timeout {
+ log("Not received NOTIFICATION/NCH. (as expected)");
+ setverdict(pass);
+ }
+ }
+
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
+}
+
+control {
+ execute( TC_vbs_notification() );
+
+}
+
+}
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33816
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: I3727c471663b731117a264f60d2f1ba5fd16928e
Gerrit-Change-Number: 33816
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: pespin.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/docker-playground/+/33668
to look at the new patch set (#5).
Change subject: hnbgw: adjust cfg for cnpool tests
......................................................................
hnbgw: adjust cfg for cnpool tests
Config changes matching cnpool tests added in osmo-ttcn3-hacks, see
'Related'.
Keep a copy of the old config files named "-legacy", to not break the
'latest' tests, because osmo-hnbgw 'latest' does not yet support the new
config options.
Depends: osmo-ttcn3-hacks I027a059faed3f140f8801f84338956cd004043b5
Change-Id: I94aa0b2adfc48b98cb4b1efe595c2432fc603d6c
---
M ttcn3-hnbgw-test/jenkins.sh
A ttcn3-hnbgw-test/osmo-hnbgw-legacy.cfg
M ttcn3-hnbgw-test/osmo-hnbgw.cfg
A ttcn3-hnbgw-test/osmo-stp-legacy.cfg
M ttcn3-hnbgw-test/osmo-stp.cfg
A ttcn3-hnbgw-test/with-pfcp/osmo-hnbgw-legacy.cfg
M ttcn3-hnbgw-test/with-pfcp/osmo-hnbgw.cfg
7 files changed, 400 insertions(+), 15 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/68/33668/5
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/33668
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I94aa0b2adfc48b98cb4b1efe595c2432fc603d6c
Gerrit-Change-Number: 33668
Gerrit-PatchSet: 5
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newpatchset