Change in osmo-ttcn3-hacks[master]: ns2: introduce module parameter SnsRole

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/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Sun Sep 5 19:45:16 UTC 2021


lynxis lazus has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25138 )

Change subject: ns2: introduce module parameter SnsRole
......................................................................

ns2: introduce module parameter SnsRole

Allow the .cfg to define which tests should be run.
The new SGSN role SNS tests have their own configurations for
TTCN3 and osmo-nsdummy.

Change-Id: If8162f256428e2e1f353ffbf42a7c0cd24bcecd9
---
M ns/NS_Tests.ttcn
1 file changed, 17 insertions(+), 9 deletions(-)

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



diff --git a/ns/NS_Tests.ttcn b/ns/NS_Tests.ttcn
index d42ef8c..0cef341 100644
--- a/ns/NS_Tests.ttcn
+++ b/ns/NS_Tests.ttcn
@@ -24,7 +24,13 @@
 import from Osmocom_VTY_Functions all;
 import from TELNETasp_PortType all;
 
+type enumerated SnsRole {
+	SNS_ROLE_BSS			('00'H),
+	SNS_ROLE_SGSN			('01'H)
+};
+
 modulepar {
+	SnsRole mp_sns_role := SNS_ROLE_BSS;
 	OsmoNsDialect mp_dialect := NS2_DIALECT_IPACCESS;
 	NSConfiguration mp_nsconfig := {
 		nsei := 96,
@@ -736,15 +742,17 @@
 	}
 
 	if (mp_dialect == NS2_DIALECT_SNS) {
-		/* BSS test cases */
-		execute( TC_sns_bss_config_success() );
-		execute( TC_sns_bss_change_weight() );
-		execute( TC_sns_bss_change_weight_timeout() );
-		execute( TC_sns_bss_add() );
-		execute( TC_sns_bss_del() );
-		execute( TC_sns_bss_add_change_del() );
-		execute( TC_sns_bss_all_signalling_nsvcs_failed() );
-		execute( TC_sns_rx_size_force_unconf() );
+		if (mp_sns_role == SNS_ROLE_BSS) {
+			/* BSS test cases */
+			execute( TC_sns_bss_config_success() );
+			execute( TC_sns_bss_change_weight() );
+			execute( TC_sns_bss_change_weight_timeout() );
+			execute( TC_sns_bss_add() );
+			execute( TC_sns_bss_del() );
+			execute( TC_sns_bss_add_change_del() );
+			execute( TC_sns_bss_all_signalling_nsvcs_failed() );
+			execute( TC_sns_rx_size_force_unconf() );
+		}
 	}
 }
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25138
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: If8162f256428e2e1f353ffbf42a7c0cd24bcecd9
Gerrit-Change-Number: 25138
Gerrit-PatchSet: 3
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210905/7827f9bd/attachment.htm>


More information about the gerrit-log mailing list