lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

September 2026

  • 1 participants
  • 1894 discussions
[XS] Change in osmo-sgsn[master]: mm_state_gb_fsm: Allow Idle -> Ready transition for RA Update
by pespin 17 Sep '26

17 Sep '26
Attention is currently required from: lynxis lazus. pespin has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/39564?usp=email ) Change subject: mm_state_gb_fsm: Allow Idle -> Ready transition for RA Update ...................................................................... Patch Set 18: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/39564?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-sgsn Gerrit-Branch: master Gerrit-Change-Id: Ic26d237976f51a061ac394cee1daef20db048517 Gerrit-Change-Number: 39564 Gerrit-PatchSet: 18 Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-CC: daniel <dwillmann(a)sysmocom.de> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Thu, 17 Sep 2026 09:58:03 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in onomondo-ipa[master]: Add support for polling multiple eIMs
by dexter 17 Sep '26

17 Sep '26
Attention is currently required from: jolly. dexter has posted comments on this change by jolly. ( https://gerrit.osmocom.org/c/onomondo-ipa/+/43653?usp=email ) Change subject: Add support for polling multiple eIMs ...................................................................... Patch Set 2: Code-Review+1 (1 comment) File src/ipa/main.c: https://gerrit.osmocom.org/c/onomondo-ipa/+/43653/comment/21491ed7_4a07c505… : PS2, Line 151: static struct ipa_context *ctx = NULL; I would suggest to move this to the top of the module and to add a comment. (I don't know if this is a coding style thing, but I always prefer to declare variables at the beginning of a module or function, it is then much easier to see what states a module or function has.) -- To view, visit https://gerrit.osmocom.org/c/onomondo-ipa/+/43653?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: onomondo-ipa Gerrit-Branch: master Gerrit-Change-Id: Ifcad584dd04dc83c59124ce32e60254a72537d02 Gerrit-Change-Number: 43653 Gerrit-PatchSet: 2 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Comment-Date: Thu, 17 Sep 2026 09:14:21 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in onomondo-ipa[master]: Add index to ipa_es10b_get_eim_cfg_data_filter
by dexter 17 Sep '26

17 Sep '26
Attention is currently required from: jolly. dexter has posted comments on this change by jolly. ( https://gerrit.osmocom.org/c/onomondo-ipa/+/43652?usp=email ) Change subject: Add index to ipa_es10b_get_eim_cfg_data_filter ...................................................................... Patch Set 2: Code-Review+1 (3 comments) File src/ipa/libipa/es10b_get_eim_cfg_data.c: https://gerrit.osmocom.org/c/onomondo-ipa/+/43652/comment/299b7784_ef11d15a… : PS2, Line 297: maybe set *eim_cfg_data_item = NULL; for good measure? https://gerrit.osmocom.org/c/onomondo-ipa/+/43652/comment/c5cc518c_54431b77… : PS2, Line 309: /* In case no eim_id is specified, just pick the item from the list that is specified by index */ Maybe rephrase the comment a bit? In case no eim_id is specified, pick the eim_cfg_data_item by its index and exit. https://gerrit.osmocom.org/c/onomondo-ipa/+/43652/comment/fe053812_c7f2f967… : PS2, Line 317: Maybe add a comment? Otherwise find the eim_cfg_data_item by the specified eim_id and exit. -- To view, visit https://gerrit.osmocom.org/c/onomondo-ipa/+/43652?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: onomondo-ipa Gerrit-Branch: master Gerrit-Change-Id: I7a3cbbf8cd765f6da955434d897d9ffbe847f525 Gerrit-Change-Number: 43652 Gerrit-PatchSet: 2 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Comment-Date: Thu, 17 Sep 2026 09:05:19 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[XL] Change in osmo-ttcn3-hacks[master]: smf: Initial HTTP2/SBI support
by fixeria 17 Sep '26

17 Sep '26
Attention is currently required from: fixeria, pespin. fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43651?usp=email ) Change subject: smf: Initial HTTP2/SBI support ...................................................................... Patch Set 2: (1 comment) File library/HTTP2_Functions.ttcn: https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43651/comment/b19e0223_d8d1… : PS2, Line 51: //var charstring regexpString := "([A-Za-z][A-Za-z0-9-]*):\s*(.+?)\s*"; > Hm, I've played around with this for half an hour or so and I think regex in titan is just a bit bro […] Could it be that TITAN is supporting a different dialect of regexp (there are several of them)? Worth checking TITAN's documentation. -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43651?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: I377b748d8da6e9e53a96a85f1c730505793ecea8 Gerrit-Change-Number: 43651 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: fixeria <axilirator(a)gmail.com> Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-CC: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <axilirator(a)gmail.com> Gerrit-Comment-Date: Thu, 17 Sep 2026 08:50:16 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: osmith <osmith(a)sysmocom.de> Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XL] Change in osmo-ttcn3-hacks[master]: smf: Initial HTTP2/SBI support
by osmith 17 Sep '26

17 Sep '26
Attention is currently required from: fixeria, pespin. osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43651?usp=email ) Change subject: smf: Initial HTTP2/SBI support ...................................................................... Patch Set 2: (1 comment) File library/HTTP2_Functions.ttcn: https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43651/comment/2c653fc5_040c… : PS2, Line 51: //var charstring regexpString := "([A-Za-z][A-Za-z0-9-]*):\s*(.+?)\s*"; > @osmith@sysmocom.de @axilirator@gmail. […] Hm, I've played around with this for half an hour or so and I think regex in titan is just a bit broken... your regex should match "Content-Type", "a". If you remove the ? (lazy -> match as few characters as possible) then it should work as intended ("Content-Type", "application/octetstream"). This is the result I get when running the regex in python and e.g. https://regexr.com/. With titan the strings are indeed just empty. So I recommend keeping the string split code without regex that you already have and reporting this upstream. -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43651?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: I377b748d8da6e9e53a96a85f1c730505793ecea8 Gerrit-Change-Number: 43651 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: fixeria <axilirator(a)gmail.com> Gerrit-CC: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <axilirator(a)gmail.com> Gerrit-Comment-Date: Thu, 17 Sep 2026 08:22:54 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: IPAd: Add test to verify IPAd polling from two eIMs
by dexter 17 Sep '26

17 Sep '26
Attention is currently required from: jolly. dexter has posted comments on this change by jolly. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43657?usp=email ) Change subject: IPAd: Add test to verify IPAd polling from two eIMs ...................................................................... Patch Set 1: (3 comments) File ipad/IPAd_Tests.ttcn: https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43657/comment/0f951843_a91e… : PS1, Line 805: var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); Is the eim_fqdn variable still needed? I don't see where it is used here... https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43657/comment/63396b9b_9da7… : PS1, Line 807: f_package_euicc_data_req(id, "myEIM_1"); in case you decide to follow the array approach, you could pull the eimId strings form the array in pars. https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43657/comment/92907483_0902… : PS1, Line 813: f_eim_init(); The f_eim_init function is called by f_es10x_init. Now it is called again here and it is not immediately obvious for someone who reads this where f_eim_init is called the first time. Maybe we should not call f_eim_init from f_es10x_init and put the call after f_es10x_init where it is needed. The downside of this is that we have do do it in each test then. I also wonder if it sis possible to put all those boilerplate calls into the f_init_handler handler function. But as far as I can see the boilerplate code is not exactly the same in all tests. So some logic is needed. But then, the f_eim_init() call is again orphaned. What a pity... Then let's keep it where it is, but addressing the boilerplate problem would be worthwhile I think. In any case this is definitely be a topic for a follow up patch. -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43657?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: I87d62196f7e0b96070d162faf8f382ebba3fa017 Gerrit-Change-Number: 43657 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: dexter <pmaier(a)sysmocom.de> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Comment-Date: Thu, 17 Sep 2026 08:19:34 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: IPAd: Check for memory leaks after each test
by jolly 17 Sep '26

17 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43622?usp=email ) ( 1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: IPAd: Check for memory leaks after each test ...................................................................... IPAd: Check for memory leaks after each test After each test, use grep to verify that no pending allocation is left after the last free() function call. The built-in memory leak detection will print the current memory useage to stdout. The last debug message must have an allocation count of 0 bytes. Related: SYS#8199 Change-Id: Ifd5390ac230b48614585d2820b9133daebd8c321 --- M ipad/IPAd_Tests.ttcn A ipad/checkleak.sh M ipad/testenv.cfg 3 files changed, 15 insertions(+), 2 deletions(-) Approvals: Jenkins Builder: Verified dexter: Looks good to me, approved laforge: Looks good to me, but someone else must approve diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index 4001b68..226c70b 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -470,7 +470,7 @@ f_sleep(1.0); map(self:PIPE, system:PIPE); f_PIPEasp_exec_async_start(PIPE, "sh", "rm -f nvstate.bin ; " & - "onomondo-ipa -C example_ca/pki/issued/alttest.cabundle " & + "stdbuf -oL -eL onomondo-ipa -C example_ca/pki/issued/alttest.cabundle " & parameters & " 2>&1 | tee -i /tmp/single_log >> onomondo-ipa.log"); @@ -483,8 +483,18 @@ /* Stop IPAd, if still running. */ private function f_stop_ipad(charstring parameters := "") runs on IPAd_ConnHdlr { + /* Wait for IPAd to terminate, so that the log is complete. */ + f_sleep(1.0); + map(self:PIPE, system:PIPE); + + /* Expect that the last line Terminate iPAd in case it freezes. */ + log("Finally checking for memory leaks..."); + f_PIPEasp_exec_sync(PIPE, "sh checkleak.sh", 0); + + /* Terminate iPAd in case it freezes. */ f_PIPEasp_exec_async_stop(PIPE, "onomondo-ipa"); + unmap(self:PIPE, system:PIPE); } diff --git a/ipad/checkleak.sh b/ipad/checkleak.sh new file mode 100755 index 0000000..2a9b7d7 --- /dev/null +++ b/ipad/checkleak.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +grep "====> free" onomondo-ipa.log | tail -n 1 | grep " 0 bytes total" diff --git a/ipad/testenv.cfg b/ipad/testenv.cfg index dfec811..98a2fee 100644 --- a/ipad/testenv.cfg +++ b/ipad/testenv.cfg @@ -1,7 +1,7 @@ [testsuite] program=IPAd_Tests config=IPAd_Tests.cfg -copy=example_ca +copy=example_ca checkleak.sh [pcscd] prepare=require_vsmartcard_vpcd.sh -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43622?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: Ifd5390ac230b48614585d2820b9133daebd8c321 Gerrit-Change-Number: 43622 Gerrit-PatchSet: 2 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: IPAd: Cleanly process TC_set_device_capabilities
by jolly 17 Sep '26

17 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43621?usp=email ) ( 1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: IPAd: Cleanly process TC_set_device_capabilities ...................................................................... IPAd: Cleanly process TC_set_device_capabilities Process the test and make IPAd terminate cleanly. This is required to check if all memory was freed and there is no memory leak. Related: SYS#8199 Change-Id: I426b2d0d00790577468599fedd65377a4e4bfeed --- M ipad/IPAd_Tests.ttcn 1 file changed, 10 insertions(+), 0 deletions(-) Approvals: laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified dexter: Looks good to me, approved diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index c543ef8..4001b68 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -982,7 +982,17 @@ private function f_TC_set_device_capabilities(charstring id) runs on IPAd_ConnHdlr { f_exec_ipad("-D 0xF1"); f_es10x_init(dev_capa := 'F1'O); + f_http_register(); + + /* IPAd will poll for eIM package. */ + f_terminate_poll_cycle(); + + /* Wait some time until the the last HTTP response is actually delivered */ + f_sleep(2.0); + + f_es10x_close(); f_stop_ipad(); + setverdict(pass); } testcase TC_set_device_capabilities() runs on MTC_CT { -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43621?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: I426b2d0d00790577468599fedd65377a4e4bfeed Gerrit-Change-Number: 43621 Gerrit-PatchSet: 2 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
[M] Change in osmo-ttcn3-hacks[master]: IPAd: Add test case for multple eIM packages
by jolly 17 Sep '26

17 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43620?usp=email ) Change subject: IPAd: Add test case for multple eIM packages ...................................................................... IPAd: Add test case for multple eIM packages IPAd will cycle through the main loop until there is no eIM package available. The IPAd process keeps running. Provide multiple eIM packes to see if they do not conflict with each other. At the end there must be no memory leak, but this is checked in a later patch. To re-use code from other tests, move the package processing of other tests to extra functions. These functions are called in this test multiple times. Related: SYS#8199 Change-Id: I74bba77cc391ed243729e99a5aeaefb9dbde2922 --- M ipad/IPAd_Tests.ttcn 1 file changed, 106 insertions(+), 37 deletions(-) Approvals: dexter: Looks good to me, approved laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index 8f3af56..c543ef8 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -43,7 +43,8 @@ integer mp_esipa_port := 4430; boolean mp_esipa_disable_ssl := false; boolean mp_use_vpcd := true; - float mp_restart_guardtime := 2.0 + float mp_restart_guardtime := 2.0; + integer mp_tc_multi_package_rounds := 5; } /* Altstep to handle card power up/down and ATR transmission */ @@ -502,15 +503,11 @@ /* A testcase to try out an indirect profile download, * See also: GSMA SGP.32, section 3.2.3.2: Indirect Profile Download */ -private function f_TC_proc_indirect_prfle_dwnld(charstring id) runs on IPAd_ConnHdlr { +private function f_package_indirect_prfle_dwnld(charstring id) runs on IPAd_ConnHdlr { var integer i; var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); var BoundProfilePackage boundProfilePackage; - f_exec_ipad(); - f_es10x_init(); - f_http_register(); - /* Prepare indirect profile download by responding with a download trigger request */ f_esipa_transceive(valueof(ts_getEimPackageResponse_dnlTrigReq(ts_profileDownloadTriggerRequest(eimTransactionId := '42'O))), tr_getEimPackageRequest); @@ -567,6 +564,13 @@ /* IPAd will poll for notifications. */ f_respond_empty_notifications(); +} +private function f_TC_proc_indirect_prfle_dwnld(charstring id) runs on IPAd_ConnHdlr { + f_exec_ipad(); + f_es10x_init(); + f_http_register(); + + f_package_indirect_prfle_dwnld(id); /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); @@ -592,14 +596,10 @@ /* A testcase to try out an the Generic eUICC Package Download and Execution Procedure, * See also: GSMA SGP.32, section 3.3.1: Generic eUICC Package Download and Execution */ -private function f_TC_proc_euicc_pkg_dwnld_exec(charstring id) runs on IPAd_ConnHdlr { +private function f_package_euicc_pkg_dwnld_exec(charstring id) runs on IPAd_ConnHdlr { template (value) EuiccPackageSigned euiccPackageSigned := ts_euiccPackageSigned(eimTransactionId := '42'O); template (present) EuiccPackageRequest euiccPackageRequest := ts_euiccPackageRequest(euiccPackageSigned); - f_exec_ipad(); - f_es10x_init(); - f_http_register(); - /* Step #1-#2 */ f_esipa_transceive(valueof(ts_getEimPackageResponse_euiccPkgReq(euiccPackageRequest)), tr_getEimPackageRequest); @@ -626,6 +626,13 @@ /* IPAd will poll for notifications. */ f_respond_empty_notifications(); +} +private function f_TC_proc_euicc_pkg_dwnld_exec(charstring id) runs on IPAd_ConnHdlr { + f_exec_ipad(); + f_es10x_init(); + f_http_register(); + + f_package_euicc_pkg_dwnld_exec(id); /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); @@ -652,11 +659,7 @@ /* A testcase to try out an the Generic eUICC Package Download and Execution Procedure, * but this time we force a rollback meneuver */ -private function f_TC_proc_euicc_pkg_dwnld_exec_rollback(charstring id) runs on IPAd_ConnHdlr { - f_exec_ipad(); - f_es10x_init(); - f_http_register(); - +private function f_package_euicc_pkg_dwnld_exec_rollback(charstring id) runs on IPAd_ConnHdlr { /* Step #1-#2 */ f_esipa_transceive(valueof(ts_getEimPackageResponse_euiccPkgReq), tr_getEimPackageRequest); @@ -702,6 +705,13 @@ /* IPAd will poll for notifications. */ f_respond_empty_notifications(); +} +private function f_TC_proc_euicc_pkg_dwnld_exec_rollback(charstring id) runs on IPAd_ConnHdlr { + f_exec_ipad(); + f_es10x_init(); + f_http_register(); + + f_package_euicc_pkg_dwnld_exec_rollback(id); /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); @@ -727,13 +737,9 @@ /* A testcase to try out an IpaEuiccDataRequest */ -private function f_TC_proc_euicc_data_req(charstring id) runs on IPAd_ConnHdlr { +private function f_package_euicc_data_req(charstring id) runs on IPAd_ConnHdlr { var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); - f_exec_ipad(); - f_es10x_init(); - f_http_register(); - /* IPAd requests a package, we tell it to execute an ipaEuiccDataRequest */ f_esipa_transceive(valueof(ts_getEimPackageResponse_euiccDataReq(ts_ipaEuiccDataRequest(eimTransactionId := '42'O))), tr_getEimPackageRequest); @@ -753,6 +759,13 @@ /* IPAd will poll for notifications. */ f_respond_empty_notifications(); +} +private function f_TC_proc_euicc_data_req(charstring id) runs on IPAd_ConnHdlr { + f_exec_ipad(); + f_es10x_init(); + f_http_register(); + + f_package_euicc_data_req(id); /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); @@ -983,17 +996,12 @@ } /* A testcase to test the forwarding of a PSMO and the expected otherSignedNotification */ -private function f_TC_euiccPackageRequest_PSMO(charstring id) runs on IPAd_ConnHdlr { +private function f_package_euiccPackageRequest_PSMO(charstring id) runs on IPAd_ConnHdlr { template (value) EuiccPackage euiccPackage := ts_euiccPackage_setFallbackAttribute; template (value) EuiccPackageSigned euiccPackageSigned := ts_euiccPackageSigned(euiccPackage); template (value) EuiccPackageRequest euiccPackageRequest := ts_euiccPackageRequest(euiccPackageSigned); template (value) OtherSignedNotification otherSignedNotification := ts_otherSignedNotification(euiccCertificate := ts_cert_eum_nist, eumCertificate := ts_cert_eum_nist); - - f_exec_ipad(); - f_es10x_init(); - f_http_register(); - /* IPAd requests a package, we tell it to execute an euiccPackageRequest */ f_esipa_transceive(valueof(ts_getEimPackageResponse_euiccPkgReq(euiccPackageRequest)), tr_getEimPackageRequest); @@ -1010,6 +1018,13 @@ /* IPAd will poll for notifications. */ f_respond_empty_notifications(); +} +private function f_TC_euiccPackageRequest_PSMO(charstring id) runs on IPAd_ConnHdlr { + f_exec_ipad(); + f_es10x_init(); + f_http_register(); + + f_package_euiccPackageRequest_PSMO(id); /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); @@ -1033,13 +1048,9 @@ } /* A testcase to trigger an indirect profile download. This download will fail because the eUICC indicates so. */ -private function f_TC_proc_indirect_prfle_dwnld_cancel_euicc(charstring id) runs on IPAd_ConnHdlr { +private function f_package_indirect_prfle_dwnld_cancel_euicc(charstring id) runs on IPAd_ConnHdlr { var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); - f_exec_ipad(); - f_es10x_init(); - f_http_register(); - /* Prepare indirect profile download by responding with a download trigger request */ f_esipa_transceive(valueof(ts_getEimPackageResponse_dnlTrigReq(ts_profileDownloadTriggerRequest(eimTransactionId := '42'O))), tr_getEimPackageRequest); @@ -1065,6 +1076,13 @@ /* IPAd will poll for notifications. */ f_respond_empty_notifications(); +} +private function f_TC_proc_indirect_prfle_dwnld_cancel_euicc(charstring id) runs on IPAd_ConnHdlr { + f_exec_ipad(); + f_es10x_init(); + f_http_register(); + + f_package_indirect_prfle_dwnld_cancel_euicc(id); /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); @@ -1088,13 +1106,9 @@ } /* A testcase to trigger an indirect profile download. This download will fail because the eIM indicates so. */ -private function f_TC_proc_indirect_prfle_dwnld_cancel_eim(charstring id) runs on IPAd_ConnHdlr { +private function f_package_indirect_prfle_dwnld_cancel_eim(charstring id) runs on IPAd_ConnHdlr { var charstring eim_fqdn := mp_esipa_ip & ":" & int2str(mp_esipa_port); - f_exec_ipad(); - f_es10x_init(); - f_http_register(); - /* Prepare indirect profile download by responding with a download trigger request */ f_esipa_transceive(valueof(ts_getEimPackageResponse_dnlTrigReq(ts_profileDownloadTriggerRequest(eimTransactionId := '42'O))), tr_getEimPackageRequest); @@ -1123,6 +1137,13 @@ /* IPAd will poll for notifications. */ f_respond_empty_notifications(); +} +private function f_TC_proc_indirect_prfle_dwnld_cancel_eim(charstring id) runs on IPAd_ConnHdlr { + f_exec_ipad(); + f_es10x_init(); + f_http_register(); + + f_package_indirect_prfle_dwnld_cancel_eim(id); /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); @@ -1145,6 +1166,53 @@ setverdict(pass); } +/* Test multiple packages at once. */ +private function f_TC_multi_packages(charstring id) runs on IPAd_ConnHdlr { + var integer i; + + f_exec_ipad(); + f_es10x_init(); + f_http_register(); + + for (i := 0; i < mp_tc_multi_package_rounds; i := i + 1) { + log("Test round ", i, " of ", mp_tc_multi_package_rounds); + log("Testing indirect_prfle_dwnld..."); + f_package_indirect_prfle_dwnld(id); + log("Testing euicc_pkg_dwnld_exec..."); + f_package_euicc_pkg_dwnld_exec(id); + log("Testing euicc_pkg_dwnld_exec_rollback..."); + f_package_euicc_pkg_dwnld_exec_rollback(id); + log("Testing euicc_data_req..."); + f_package_euicc_data_req(id); + log("Testing euiccPackageRequest_PSMO..."); + f_package_euiccPackageRequest_PSMO(id); + log("Testing indirect_prfle_dwnld_cancel_euicc..."); + f_package_indirect_prfle_dwnld_cancel_euicc(id); + log("Testing indirect_prfle_dwnld_cancel_eim..."); + f_package_indirect_prfle_dwnld_cancel_eim(id); + } + + /* IPAd will poll for eIM package. */ + f_terminate_poll_cycle(); + + /* Wait some time until the the last HTTP response is actually delivered */ + f_sleep(2.0); + + f_es10x_close(); + f_stop_ipad(); + + setverdict(pass); +} +testcase TC_multi_packages() runs on MTC_CT { + var charstring id := testcasename(); + var IPAd_ConnHdlrPars pars := f_init_pars(); + var IPAd_ConnHdlr vc_conn; + f_init(id, t_guard := 60.0 * int2float(mp_tc_multi_package_rounds)); + vc_conn := f_start_handler(refers(f_TC_multi_packages), pars); + vc_conn.done; + setverdict(pass); +} + control { execute ( TC_proc_indirect_prfle_dwnld() ); execute ( TC_proc_euicc_pkg_dwnld_exec() ); @@ -1161,6 +1229,7 @@ execute ( TC_euiccPackageRequest_PSMO() ); execute ( TC_proc_indirect_prfle_dwnld_cancel_euicc() ); execute ( TC_proc_indirect_prfle_dwnld_cancel_eim() ); + execute ( TC_multi_packages() ); } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43620?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: I74bba77cc391ed243729e99a5aeaefb9dbde2922 Gerrit-Change-Number: 43620 Gerrit-PatchSet: 2 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: IPAd: Split f_terminate_poll_cycle()
by jolly 17 Sep '26

17 Sep '26
jolly has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43619?usp=email ) ( 1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: IPAd: Split f_terminate_poll_cycle() ...................................................................... IPAd: Split f_terminate_poll_cycle() Remove the handling of notification list polling from f_terminate_poll_cycle() and put it into an extra function. The notification list is polled by IPAd after every eIM package processing. This allows to send multiple eIM packages (and process notification list polling) before terminating the poll cycle at the end. Later tests will use this to check for memory leaks. Related: SYS#8199 Change-Id: I4e278f74ce3bb9bbd666f13c2a72ed90eba34af7 --- M ipad/IPAd_Tests.ttcn 1 file changed, 34 insertions(+), 10 deletions(-) Approvals: laforge: Looks good to me, but someone else must approve dexter: Looks good to me, approved Jenkins Builder: Verified diff --git a/ipad/IPAd_Tests.ttcn b/ipad/IPAd_Tests.ttcn index 75e7be7..8f3af56 100644 --- a/ipad/IPAd_Tests.ttcn +++ b/ipad/IPAd_Tests.ttcn @@ -450,12 +450,15 @@ f_esipa_transceive(valueof(ts_authenticateClientResponseEsipa_dpe), tr_authenticateClientRequestEsipa); } -/* After processing notifications and eIM packages, IPAd will poll again. - * Respond with empty notification list and with no eIM package. */ -private function f_terminate_poll_cycle() runs on IPAd_ConnHdlr { +/* Respond with empty notification list. */ +private function f_respond_empty_notifications() runs on IPAd_ConnHdlr { /* Expect the IPAd to query the eUICC for pending notifications, we respond with an empty list */ f_vpcd_transceive(enc_RetrieveNotificationsListResponse(valueof(ts_retrieveNotificationsListResponse_empty)), 'BF2B00'O); +} +/* After processing notifications and eIM packages, IPAd will poll again. + * Respond with no eIM package. */ +private function f_terminate_poll_cycle() runs on IPAd_ConnHdlr { /* IPAd requests a package, we tell it that there is no package available */ f_esipa_transceive(valueof(ts_getEimPackageResponse_noEimPackageAvailable), tr_getEimPackageRequest); } @@ -562,7 +565,10 @@ /* Receive RemoveNotificationFromList from iPAD->eUICC */ f_vpcd_transceive(enc_NotificationSentResponse(valueof(ts_notificationSentResponse))); - /* IPAd will poll again. */ + /* IPAd will poll for notifications. */ + f_respond_empty_notifications(); + + /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); /* Wait some time until the the last HTTP response is actually delivered */ @@ -618,7 +624,10 @@ f_vpcd_transceive(enc_NotificationSentResponse(valueof(ts_notificationSentResponse))); f_vpcd_transceive(enc_NotificationSentResponse(valueof(ts_notificationSentResponse))); - /* IPAd will poll again. */ + /* IPAd will poll for notifications. */ + f_respond_empty_notifications(); + + /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); /* Wait some time until the the last HTTP response is actually delivered */ @@ -691,7 +700,10 @@ f_vpcd_transceive(enc_NotificationSentResponse(valueof(ts_notificationSentResponse))); f_vpcd_transceive(enc_NotificationSentResponse(valueof(ts_notificationSentResponse))); - /* IPAd will poll again. */ + /* IPAd will poll for notifications. */ + f_respond_empty_notifications(); + + /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); /* Wait some time until the the last HTTP response is actually delivered */ @@ -739,7 +751,10 @@ f_esipa_transceive(valueof(ts_provideEimPackageResultResponse_eimAck(eimAcknowledgements := {1,2,3,4})), tr_provideEimPackageResult(*, tr_eimPackageResult_euiccDataResp(eimTransactionId := '42'O))); - /* IPAd will poll again. */ + /* IPAd will poll for notifications. */ + f_respond_empty_notifications(); + + /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); /* Wait some time until the the last HTTP response is actually delivered */ @@ -993,7 +1008,10 @@ f_esipa_transceive(valueof(ts_provideEimPackageResultResponse_eimAck()), ?); f_vpcd_transceive(enc_NotificationSentResponse(valueof(ts_notificationSentResponse))); - /* IPAd will poll again. */ + /* IPAd will poll for notifications. */ + f_respond_empty_notifications(); + + /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); /* Wait some time until the the last HTTP response is actually delivered */ @@ -1045,7 +1063,10 @@ f_esipa_transceive(valueof(ts_cancelSessionResponseEsipa), tr_cancelSessionRequestEsipa(cancelSessionResponse := tr_SGP32_cancelSessionResponse)); - /* IPAd will poll again. */ + /* IPAd will poll for notifications. */ + f_respond_empty_notifications(); + + /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); /* Wait some time until the the last HTTP response is actually delivered */ @@ -1100,7 +1121,10 @@ f_esipa_transceive(valueof(ts_cancelSessionResponseEsipa), tr_cancelSessionRequestEsipa(cancelSessionResponse := tr_SGP32_cancelSessionResponse)); - /* IPAd will poll again. */ + /* IPAd will poll for notifications. */ + f_respond_empty_notifications(); + + /* IPAd will poll for eIM package. */ f_terminate_poll_cycle(); /* Wait some time until the the last HTTP response is actually delivered */ -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43619?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: I4e278f74ce3bb9bbd666f13c2a72ed90eba34af7 Gerrit-Change-Number: 43619 Gerrit-PatchSet: 2 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de> Gerrit-Reviewer: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • ...
  • 190
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.