osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40335?usp=email )
Change subject: testenv: check eclipse-titan version
......................................................................
testenv: check eclipse-titan version
The osmocom:latest repository currently has eclipse-titan 9.0.0 and we
assume that the user has at least this version installed. Add a check to
avoid subtle unexpected errors caused by using older versions.
Related: I57eecd6e0ea9e488a2110b029ddc313bd05cd1fa
Change-Id: Icace325f492ce803d6f25a30b128ee0676e16727
---
M _testenv/testenv/requirements.py
1 file changed, 27 insertions(+), 0 deletions(-)
Approvals:
fixeria: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/_testenv/testenv/requirements.py b/_testenv/testenv/requirements.py
index cd320d5..5ab61ad 100644
--- a/_testenv/testenv/requirements.py
+++ b/_testenv/testenv/requirements.py
@@ -1,8 +1,10 @@
# Copyright 2024 sysmocom - s.f.m.c. GmbH
# SPDX-License-Identifier: GPL-3.0-or-later
+from packaging.version import Version
import logging
import os.path
import shutil
+import subprocess
import sys
import testenv
import testenv.cmd
@@ -69,6 +71,30 @@
sys.exit(1)
+def check_ttcn3_compiler_version():
+ if testenv.args.podman:
+ return
+
+ ttcn3_min_version = "9.0.0"
+
+ v = subprocess.run(["ttcn3_compiler", "-v"], capture_output=True, text=True)
+ current = None
+ for line in v.stderr.split("\n"):
+ if not line.startswith("Version: "):
+ continue
+
+ current = line.split(":", 1)[1].strip()
+ if Version(current) >= Version(ttcn3_min_version):
+ return
+
+ logging.error(f"Found ttcn3_compiler version {current}, but {ttcn3_min_version} or higher is required.")
+
+ if not current:
+ logging.error("Could not parse ttcn3_compiler version.")
+ logging.error(f"Please install at least version {ttcn3_min_version} and try again.")
+ sys.exit(1)
+
+
def check_fftranscode():
cmd = [
"grep",
@@ -98,6 +124,7 @@
def check():
check_programs()
+ check_ttcn3_compiler_version()
if not testenv.args.podman:
check_fftranscode()
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40335?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Icace325f492ce803d6f25a30b128ee0676e16727
Gerrit-Change-Number: 40335
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40319?usp=email )
Change subject: epdg: add sleep to f_TC_hss_initiated_deregister_permanent_termination
......................................................................
epdg: add sleep to f_TC_hss_initiated_deregister_permanent_termination
The test sends PERMANENT_TERMINATION twice to osmo-epdg. If we don't
sleep between them, osmo-epdg is not able to terminate related FSMs
quickly enough between the first and the second termination request when
running in QEMU, which results in osmo-epdg answering with
DIAMETER_SUCESS instead of DIAMETER_ERROR_USER_UNKNOWN for the second
f_DIA_SWx_RT.
Related: OS#6796
Change-Id: I5d7021b6a9800cf1d7588f4a0ef864f5c30cf475
---
M epdg/EPDG_Tests.ttcn
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
fixeria: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/epdg/EPDG_Tests.ttcn b/epdg/EPDG_Tests.ttcn
index b551b67..2fcbcb3 100644
--- a/epdg/EPDG_Tests.ttcn
+++ b/epdg/EPDG_Tests.ttcn
@@ -1192,6 +1192,7 @@
f_initial_attach();
/* Procedure should be performed properly: */
f_DIA_SWx_RT(PERMANENT_TERMINATION, tr_AVP_ResultCode(DIAMETER_SUCCESS));
+ f_sleep(1.0); /* OS#6796 */
/* Subscriber was already removed, it should fail if requested again: */
var DIAMETER_ts29_229_ExperimentalResultcode erc := DIAMETER_ERROR_USER_UNKNOWN;
f_DIA_SWx_RT(PERMANENT_TERMINATION, tr_AVP_ExperimentalResult(vendor_id_3GPP, int2oct(enum2int(erc), 4)),
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40319?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I5d7021b6a9800cf1d7588f4a0ef864f5c30cf475
Gerrit-Change-Number: 40319
Gerrit-PatchSet: 4
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40320?usp=email )
Change subject: epdg: TC_concurrent_ues_MTC: rx CMD_ATTACHED without from vc_conn_list[i]
......................................................................
epdg: TC_concurrent_ues_MTC: rx CMD_ATTACHED without from vc_conn_list[i]
This is needed to make the test pass in QEMU. I think this makes it
accept the COORD_CMD_ATTACHED in any order instead of the order the
COORD_CMD_START were sent beforehand.
Increasing the sleep between the COORD_CMD_START also makes the test
pass in QEMU, but that increases the overall test time significantly in
TC_concurrent_ues100.
Change-Id: I4c76d12273a14df562ea906e6c8ddb348d1b0eda
---
M epdg/EPDG_Tests.ttcn
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
fixeria: Looks good to me, approved
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
diff --git a/epdg/EPDG_Tests.ttcn b/epdg/EPDG_Tests.ttcn
index 2fcbcb3..61476e2 100644
--- a/epdg/EPDG_Tests.ttcn
+++ b/epdg/EPDG_Tests.ttcn
@@ -1263,7 +1263,7 @@
}
for (var integer i := 0; i < num_ues; i := i + 1) {
- COORD.receive(COORD_CMD_READY) from vc_conn_list[i];
+ COORD.receive(COORD_CMD_READY);
}
for (var integer i := 0; i < num_ues; i := i + 1) {
@@ -1272,7 +1272,7 @@
}
for (var integer i := 0; i < num_ues; i := i + 1) {
- COORD.receive(COORD_CMD_ATTACHED) from vc_conn_list[i];
+ COORD.receive(COORD_CMD_ATTACHED);
}
log("All attached!");
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40320?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I4c76d12273a14df562ea906e6c8ddb348d1b0eda
Gerrit-Change-Number: 40320
Gerrit-PatchSet: 4
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-cbc/+/40336?usp=email )
Change subject: Fix typo osmo-bsc -> osmo-cbc
......................................................................
Fix typo osmo-bsc -> osmo-cbc
Change-Id: I3da908d250771ca13e8b3f9069fe4f781defb461
---
M debian/osmo-cbc.install
M doc/manuals/chapters/running.adoc
2 files changed, 2 insertions(+), 2 deletions(-)
Approvals:
pespin: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/debian/osmo-cbc.install b/debian/osmo-cbc.install
index 76373fd..5ce45f2 100644
--- a/debian/osmo-cbc.install
+++ b/debian/osmo-cbc.install
@@ -1,4 +1,4 @@
/etc/osmocom/osmo-cbc.cfg
lib/systemd/system/osmo-cbc.service
usr/bin/osmo-cbc
-usr/share/doc/osmo-cbc/examples/osmo-cbc/*.cfg usr/share/doc/osmo-bsc/examples
+usr/share/doc/osmo-cbc/examples/osmo-cbc/*.cfg usr/share/doc/osmo-cbc/examples
diff --git a/doc/manuals/chapters/running.adoc b/doc/manuals/chapters/running.adoc
index 5cbe873..b930de1 100644
--- a/doc/manuals/chapters/running.adoc
+++ b/doc/manuals/chapters/running.adoc
@@ -17,5 +17,5 @@
Fork the process as a daemon into background.
*-c, --config-file 'CONFIGFILE'*::
Specify the file and path name of the configuration file to be
- used. If none is specified, use `osmo-bsc.cfg` in the current
+ used. If none is specified, use `osmo-cbc.cfg` in the current
working directory.
--
To view, visit https://gerrit.osmocom.org/c/osmo-cbc/+/40336?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: I3da908d250771ca13e8b3f9069fe4f781defb461
Gerrit-Change-Number: 40336
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>