Attention is currently required from: pespin.
fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41132?usp=email )
Change subject: RAN_{Emulation,Adapter}: Split transport type from transport client/server mode
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41132?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ib2e7d029bd7eb59cc6f3b3a28bc417f00d3fed9c
Gerrit-Change-Number: 41132
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 08 Oct 2025 10:55:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: osmith.
fixeria has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41206?usp=email )
Change subject: testenv: add a --fast argument
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
Patchset:
PS1:
Nice! When running tests locally, I usually do `exit 0` in these scripts because the packet capture never worked for me. Now I can use this or simply set `TESTENV_FAST=1` in my env.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41206?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ief3488293e5c5c1a1c98244f80ffd56eadb040c5
Gerrit-Change-Number: 41206
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 08 Oct 2025 08:31:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41206?usp=email )
Change subject: testenv: add a --fast argument
......................................................................
testenv: add a --fast argument
The ttcn3-{tcpdump,dumpcap}-*.sh scripts can easily spend 5s or more for
each test with:
* Waiting until the pcap gets created.
* Waiting until pcap size does not increase anymore after the test.
* Saving the talloc report.
Add --fast to skip all this, to allow running a whole testsuite
significantly faster locally to check for regressions. Developers can
then still run failing tests again without --fast to get the pcap and
talloc reports.
Change-Id: Ief3488293e5c5c1a1c98244f80ffd56eadb040c5
---
M _testenv/testenv/__init__.py
M _testenv/testenv/testsuite.py
M ttcn3-dumpcap-start.sh
M ttcn3-dumpcap-stop.sh
M ttcn3-tcpdump-start.sh
M ttcn3-tcpdump-stop.sh
6 files changed, 35 insertions(+), 12 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/06/41206/1
diff --git a/_testenv/testenv/__init__.py b/_testenv/testenv/__init__.py
index c9e63b4..44259c2 100644
--- a/_testenv/testenv/__init__.py
+++ b/_testenv/testenv/__init__.py
@@ -112,6 +112,12 @@
"--titan-version",
help="which eclipse-titan version to use",
)
+ group.add_argument(
+ "-f",
+ "--fast",
+ action="store_true",
+ help="skip recording pcaps (+ sleep before/after) and talloc reports",
+ )
group = sub_run.add_argument_group("source/binary options", "All components are built from source by default.")
group.add_argument(
diff --git a/_testenv/testenv/testsuite.py b/_testenv/testenv/testsuite.py
index 0007c57..97a340e 100644
--- a/_testenv/testenv/testsuite.py
+++ b/_testenv/testenv/testsuite.py
@@ -151,6 +151,9 @@
env["OSMO_SUT_HOST"] = host
env["OSMO_SUT_PORT"] = port
+ if testenv.args.fast:
+ env["TESTENV_FAST"] = "1"
+
env = testenv.cmd.generate_env(env, testenv.args.podman)
cmd = [start_testsuite, suite, section_data["config"]]
diff --git a/ttcn3-dumpcap-start.sh b/ttcn3-dumpcap-start.sh
index ddd4eb4..0141419 100755
--- a/ttcn3-dumpcap-start.sh
+++ b/ttcn3-dumpcap-start.sh
@@ -18,6 +18,10 @@
echo "------ $TESTCASE ------"
date
+if [ "$TESTENV_FAST" = 1 ]; then
+ exit 0
+fi
+
if [ "z$TTCN3_PCAP_PATH" = "z" ]; then
TTCN3_PCAP_PATH=/tmp
fi
diff --git a/ttcn3-dumpcap-stop.sh b/ttcn3-dumpcap-stop.sh
index 1ac8e7b..8c5d347 100755
--- a/ttcn3-dumpcap-stop.sh
+++ b/ttcn3-dumpcap-stop.sh
@@ -15,6 +15,10 @@
printf "\033[1;31m------ $TESTCASE $VERDICT ------\033[0m\n\n"
fi
+if [ "$TESTENV_FAST" = 1 ]; then
+ exit 0
+fi
+
if [ "z$TTCN3_PCAP_PATH" = "z" ]; then
TTCN3_PCAP_PATH=/tmp
fi
diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh
index 2c2f8c5..652a428 100755
--- a/ttcn3-tcpdump-start.sh
+++ b/ttcn3-tcpdump-start.sh
@@ -11,7 +11,14 @@
GSMTAP_PORT=4729
TESTCASE=$1
+echo "$TESTCASE" > "$TTCN3_PCAP_PATH/.current_test"
+echo "------ $TESTCASE ------"
+date
+
+if [ "$TESTENV_FAST" = 1 ]; then
+ exit 0
+fi
SUDOSTR=""
if ! [ "$(id -u)" = "0" ]; then
@@ -20,9 +27,6 @@
# and this script will hang indefinitely
fi
-echo "------ $TESTCASE ------"
-date
-
if [ "z$TTCN3_PCAP_PATH" = "z" ]; then
TTCN3_PCAP_PATH=/tmp
fi
@@ -111,5 +115,3 @@
fi
done
kill $PID
-
-echo "$TESTCASE" > "$TTCN3_PCAP_PATH/.current_test"
diff --git a/ttcn3-tcpdump-stop.sh b/ttcn3-tcpdump-stop.sh
index 65aeb2a..41d29ec 100755
--- a/ttcn3-tcpdump-stop.sh
+++ b/ttcn3-tcpdump-stop.sh
@@ -8,13 +8,6 @@
TESTCASE=$1
VERDICT="$2"
-SUDOSTR=""
-if ! [ "$(id -u)" = "0" ]; then
- SUDOSTR="sudo -n"
- # Otherwise, if sudo /usr/bin/kill, sudo /usr/bin/tcpdump cannot be run without a password prompt,
- # and this script will hang indefinitely
-fi
-
date
if [ x"$VERDICT" = x"pass" ]; then
@@ -23,6 +16,17 @@
printf "\033[1;31m------ $TESTCASE $VERDICT ------\033[0m\n\n"
fi
+if [ "$TESTENV_FAST" = 1 ]; then
+ exit 0
+fi
+
+SUDOSTR=""
+if ! [ "$(id -u)" = "0" ]; then
+ SUDOSTR="sudo -n"
+ # Otherwise, if sudo /usr/bin/kill, sudo /usr/bin/tcpdump cannot be run without a password prompt,
+ # and this script will hang indefinitely
+fi
+
if [ "z$TTCN3_PCAP_PATH" = "z" ]; then
TTCN3_PCAP_PATH=/tmp
fi
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41206?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ief3488293e5c5c1a1c98244f80ffd56eadb040c5
Gerrit-Change-Number: 41206
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41119?usp=email )
Change subject: smdpp: es9p testsuite
......................................................................
smdpp: es9p testsuite
Implemented parts conform to sgp 23 v1.13-v1.15
Certs are from https://www.gsma.com/solutions-and-impact/technologies/esim/wp-content/uplo…
the invalid ones are generated using smdpp/generate_all_test_certificates.py
Change-Id: I3ba163d9155a3b019214dbccc3c8031dfd7deb6b
---
M .checkpatch.conf
M Makefile
A smdpp/.clang-format
A smdpp/InvalidTestCases/CERT_EUICC_ECDSA_NIST_EXPIRED.der
A smdpp/InvalidTestCases/CERT_EUICC_ECDSA_NIST_INVALID.der
A smdpp/InvalidTestCases/CERT_EUICC_ECDSA_NIST_INVALID_EID.der
A smdpp/InvalidTestCases/CERT_EUICC_ECDSA_NIST_INVALID_EID.pem
A smdpp/InvalidTestCases/CERT_EUICC_ECDSA_NIST_UNMATCHED_EID.der
A smdpp/InvalidTestCases/CERT_EUICC_ECDSA_NIST_UNMATCHED_EID.pem
A smdpp/InvalidTestCases/CERT_EUM_ECDSA_NIST_EXPIRED.der
A smdpp/InvalidTestCases/CERT_EUM_ECDSA_NIST_INVALID.der
A smdpp/InvalidTestCases/CERT_EUM_ECDSA_NIST_UNKNOWN_CI.der
A smdpp/InvalidTestCases/CERT_UNKNOWN_CI_ECDSA_NIST.der
A smdpp/bsp_crypto.cpp
A smdpp/bsp_crypto.h
A smdpp/gen_links.sh
A smdpp/generate_all_test_certificates.py
A smdpp/helpers.h
A smdpp/logger.h
A smdpp/package.yml
A smdpp/regen_makefile.sh
A smdpp/rsp_client.cpp
A smdpp/sgp26/CertificateIssuer/CERT_CI_ECDSA_BRP.der
A smdpp/sgp26/CertificateIssuer/CERT_CI_ECDSA_BRP.pem
A smdpp/sgp26/CertificateIssuer/CERT_CI_ECDSA_NIST.der
A smdpp/sgp26/CertificateIssuer/CERT_CI_ECDSA_NIST.pem
A smdpp/sgp26/CertificateIssuer/CI-csr.cnf
A smdpp/sgp26/CertificateIssuer/SK_CI_ECDSA_BRP.pem
A smdpp/sgp26/CertificateIssuer/SK_CI_ECDSA_NIST.pem
A smdpp/sgp26/DPauth/CERT_S_SM_DP2auth_ECDSA_BRP.der
A smdpp/sgp26/DPauth/CERT_S_SM_DP2auth_ECDSA_NIST.der
A smdpp/sgp26/DPauth/CERT_S_SM_DPauth_ECDSA_BRP.der
A smdpp/sgp26/DPauth/CERT_S_SM_DPauth_ECDSA_NIST.der
A smdpp/sgp26/DPauth/PK_S_SM_DP2auth_ECDSA_BRP.pem
A smdpp/sgp26/DPauth/PK_S_SM_DP2auth_ECDSA_NIST.pem
A smdpp/sgp26/DPauth/PK_S_SM_DPauth_ECDSA_BRP.pem
A smdpp/sgp26/DPauth/PK_S_SM_DPauth_ECDSA_NIST.pem
A smdpp/sgp26/DPauth/SK_S_SM_DP2auth_ECDSA_BRP.pem
A smdpp/sgp26/DPauth/SK_S_SM_DP2auth_ECDSA_NIST.pem
A smdpp/sgp26/DPauth/SK_S_SM_DPauth_ECDSA_BRP.pem
A smdpp/sgp26/DPauth/SK_S_SM_DPauth_ECDSA_NIST.pem
A smdpp/sgp26/DPpb/CERT_S_SM_DP2pb_ECDSA_BRP.der
A smdpp/sgp26/DPpb/CERT_S_SM_DP2pb_ECDSA_NIST.der
A smdpp/sgp26/DPpb/CERT_S_SM_DPpb_ECDSA_BRP.der
A smdpp/sgp26/DPpb/CERT_S_SM_DPpb_ECDSA_NIST.der
A smdpp/sgp26/DPpb/PK_S_SM_DP2pb_ECDSA_BRP.pem
A smdpp/sgp26/DPpb/PK_S_SM_DP2pb_ECDSA_NIST.pem
A smdpp/sgp26/DPpb/PK_S_SM_DPpb_ECDSA_BRP.pem
A smdpp/sgp26/DPpb/PK_S_SM_DPpb_ECDSA_NIST.pem
A smdpp/sgp26/DPpb/SK_S_SM_DP2pb_ECDSA_BRP.pem
A smdpp/sgp26/DPpb/SK_S_SM_DP2pb_ECDSA_NIST.pem
A smdpp/sgp26/DPpb/SK_S_SM_DPpb_ECDSA_BRP.pem
A smdpp/sgp26/DPpb/SK_S_SM_DPpb_ECDSA_NIST.pem
A smdpp/sgp26/DPtls/CERT_S_SM_DP2_TLS.csr.cnf
A smdpp/sgp26/DPtls/CERT_S_SM_DP2_TLS.der
A smdpp/sgp26/DPtls/CERT_S_SM_DP2_TLS.ext.cnf
A smdpp/sgp26/DPtls/CERT_S_SM_DP4_TLS.csr.cnf
A smdpp/sgp26/DPtls/CERT_S_SM_DP4_TLS.der
A smdpp/sgp26/DPtls/CERT_S_SM_DP4_TLS.ext.cnf
A smdpp/sgp26/DPtls/CERT_S_SM_DP8_TLS.csr.cnf
A smdpp/sgp26/DPtls/CERT_S_SM_DP8_TLS.der
A smdpp/sgp26/DPtls/CERT_S_SM_DP8_TLS.ext.cnf
A smdpp/sgp26/DPtls/CERT_S_SM_DP_TLS.csr.cnf
A smdpp/sgp26/DPtls/CERT_S_SM_DP_TLS.ext.cnf
A smdpp/sgp26/DPtls/CERT_S_SM_DP_TLS_BRP.der
A smdpp/sgp26/DPtls/CERT_S_SM_DP_TLS_NIST.der
A smdpp/sgp26/DPtls/PK_S_SM_DP2_TLS_NIST.pem
A smdpp/sgp26/DPtls/PK_S_SM_DP4_TLS.pem
A smdpp/sgp26/DPtls/PK_S_SM_DP8_TLS.pem
A smdpp/sgp26/DPtls/PK_S_SM_DP_TLS_BRP.pem
A smdpp/sgp26/DPtls/PK_S_SM_DP_TLS_NIST.pem
A smdpp/sgp26/DPtls/SK_S_SM_DP2_TLS_NIST.pem
A smdpp/sgp26/DPtls/SK_S_SM_DP4_TLS.pem
A smdpp/sgp26/DPtls/SK_S_SM_DP8_TLS.pem
A smdpp/sgp26/DPtls/SK_S_SM_DP_TLS_BRP.pem
A smdpp/sgp26/DPtls/SK_S_SM_DP_TLS_NIST.pem
A smdpp/sgp26/EUM/CERT_EUM_ECDSA_BRP.der
A smdpp/sgp26/EUM/CERT_EUM_ECDSA_NIST.der
A smdpp/sgp26/EUM/EUM-csr.cnf
A smdpp/sgp26/EUM/EUM-ext.cnf
A smdpp/sgp26/EUM/PK_EUM_ECDSA_BRP.pem
A smdpp/sgp26/EUM/PK_EUM_ECDSA_NIST.pem
A smdpp/sgp26/EUM/SK_EUM_ECDSA_BRP.pem
A smdpp/sgp26/EUM/SK_EUM_ECDSA_NIST.pem
A smdpp/sgp26/eUICC/CERT_EUICC_ECDSA_BRP.der
A smdpp/sgp26/eUICC/CERT_EUICC_ECDSA_NIST.der
A smdpp/sgp26/eUICC/PK_EUICC_ECDSA_BRP.pem
A smdpp/sgp26/eUICC/PK_EUICC_ECDSA_NIST.pem
A smdpp/sgp26/eUICC/SK_EUICC_ECDSA_BRP.pem
A smdpp/sgp26/eUICC/SK_EUICC_ECDSA_NIST.pem
A smdpp/sgp26/eUICC/eUICC-csr.cnf
A smdpp/sgp26/eUICC/eUICC-ext.cnf
A smdpp/smdpp_Tests.cfg
A smdpp/smdpp_Tests.default
A smdpp/smdpp_Tests.ttcn
A smdpp/smdpp_Tests_Functions.cc
96 files changed, 10,896 insertions(+), 1 deletion(-)
Approvals:
dexter: Looks good to me, approved; Verified
Jenkins Builder: Verified
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41119?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: I3ba163d9155a3b019214dbccc3c8031dfd7deb6b
Gerrit-Change-Number: 41119
Gerrit-PatchSet: 7
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Attention is currently required from: Hoernchen.
osmith has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41122?usp=email )
Change subject: smdpp: proper headers for native code
......................................................................
Patch Set 7:
(1 comment)
Patchset:
PS7:
merging, as discussed yesterday with Harald and Philipp and today in chat with Eric
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/41122?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I9dcb3249fc712e2ddb2c7cf48d4fc54425848bc6
Gerrit-Change-Number: 41122
Gerrit-PatchSet: 7
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 08 Oct 2025 07:20:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No