Change in osmo-ttcn3-hacks[master]: fr: Implement per-UE guard timeout

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
Wed Feb 3 19:00:43 UTC 2021


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

Change subject: fr: Implement per-UE guard timeout
......................................................................

fr: Implement per-UE guard timeout

Change-Id: Ie52b1923ca81f7717be446891df1bfdb67ed7ed7
---
M fr/FR_Tests.ttcn
1 file changed, 13 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/fr/FR_Tests.ttcn b/fr/FR_Tests.ttcn
index 973f262..5777856 100644
--- a/fr/FR_Tests.ttcn
+++ b/fr/FR_Tests.ttcn
@@ -89,15 +89,25 @@
 
 type record UE_Pars {
 	hexstring imsi,
-	OCT4 tlli
+	OCT4 tlli,
+	float tguard
 };
 
 type function void_fn(charstring id) runs on UE_CT;
 
+private altstep as_ue_tguard() runs on UE_CT {
+[] g_Tguard.timeout {
+	setverdict(fail, "Tguard timeout after ", g_pars.tguard);
+	self.stop;
+	}
+}
+
 function f_handler_init(void_fn fn, charstring id, UE_Pars pars) runs on UE_CT {
 	g_pars := pars;
 	llc := f_llc_create(false);
 	f_bssgp_client_register(g_pars.imsi, g_pars.tlli);
+	g_Tguard.start(g_pars.tguard);
+	activate(as_ue_tguard());
 
 	fn.apply(id);
 	f_bssgp_client_unregister(g_pars.imsi);
@@ -126,7 +136,8 @@
 	var UE_CT ue_comp;
 	var UE_Pars ue_pars := {
 		imsi := f_gen_imsi(imsi_suffix),
-		tlli := f_gprs_tlli_random()
+		tlli := f_gprs_tlli_random(),
+		tguard := t_guard
 	};
 
 	ue_comp := UE_CT.create(id);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22660
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: Ie52b1923ca81f7717be446891df1bfdb67ed7ed7
Gerrit-Change-Number: 22660
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210203/3143041e/attachment.htm>


More information about the gerrit-log mailing list