Change in osmo-ttcn3-hacks[master]: sccp: Modify SCCP_tests to be run against sccp_demo_user in srv mode

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

pespin gerrit-no-reply at lists.osmocom.org
Fri Jan 17 16:45:48 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16920 )


Change subject: sccp: Modify SCCP_tests to be run against sccp_demo_user in srv mode
......................................................................

sccp: Modify SCCP_tests to be run against sccp_demo_user in srv mode

It's easier to handle several tests if they are the ones connecting to
the program under tests.
Forthcoming SCCP_Tests_RAW require use of this mode too.

Take the chance to tweak other values which were wrong, in order to have
CR answered correctly with a CC later on.

Related: OS#4343
Change-Id: Ibf99b1546411b9a9b4375b82f1003d93d3c1645d
---
M sccp/SCCP_Tests.cfg
M sccp/SCCP_Tests.default
M sccp/SCCP_Tests.ttcn
3 files changed, 12 insertions(+), 16 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/20/16920/1

diff --git a/sccp/SCCP_Tests.cfg b/sccp/SCCP_Tests.cfg
index 4b7e742..ab69a2d 100644
--- a/sccp/SCCP_Tests.cfg
+++ b/sccp/SCCP_Tests.cfg
@@ -16,4 +16,3 @@
 
 [EXECUTE]
 SCCP_Tests.control
-#SCCP_Tests.TC_routing_global_title_crash
diff --git a/sccp/SCCP_Tests.default b/sccp/SCCP_Tests.default
index f837664..a051517 100644
--- a/sccp/SCCP_Tests.default
+++ b/sccp/SCCP_Tests.default
@@ -1,16 +1,10 @@
 [LOGGING]
 FileMask := LOG_ALL | TTCN_MATCHING | DEBUG_ENCDEC;
 
-BSSAP.FileMask := LOG_NOTHING;
-"SCCP_Test_M3UA".FileMask := ERROR | WARNING;
-"SCCP_Test_SCCP".FileMask := ERROR | WARNING;
-"IPA-CTRL-IPA".FileMask := ERROR | WARNING;
-mtc.FileMask := ERROR | WARNING;
-
 [TESTPORT_PARAMETERS]
 *.SCCP_DEMO_USER_VTY.CTRL_MODE := "client"
-*.SCCP_DEMO_USER_VTY.CTRL_HOSTNAME := "127.0.0.1"
-*.SCCP_DEMO_USER_VTY.CTRL_PORTNUM := "2325"
+*.SCCP_DEMO_USER_VTY.CTRL_HOSTNAME := "127.0.0.2"
+*.SCCP_DEMO_USER_VTY.CTRL_PORTNUM := "2324"
 *.SCCP_DEMO_USER_VTY.CTRL_LOGIN_SKIPPED := "yes"
 *.SCCP_DEMO_USER_VTY.CTRL_DETECT_SERVER_DISCONNECTED := "yes"
 *.SCCP_DEMO_USER_VTY.CTRL_READMODE := "buffered"
@@ -20,17 +14,17 @@
 
 [MODULE_PARAMETERS]
 M3UA_Emulation.tsp_logVerbose := true;
-M3UA_Emulation.tsp_SCTP_Server_Mode := true;
-M3UA_Emulation.tsp_M3UA_Server_Mode := true;
+M3UA_Emulation.tsp_SCTP_Server_Mode := false;
+M3UA_Emulation.tsp_M3UA_Server_Mode := false;
 SCCP_Tests.sccp_cfg := {
 	{
 			sccp_service_type := "mtp3_itu",
 			sctp_addr := { 2905, "127.0.0.1", 2905, "127.0.0.2" },
-			own_pc := 185,
-			own_ssn := 254,
-			peer_pc := 23,
-			peer_ssn := 254,
-			sio := '83'O,
+			own_pc := 23,
+			own_ssn := 202, /* sscp_test_server.c: SSN_TEST_ECHO */
+			peer_pc := 1,
+			peer_ssn := 202, /* sscp_test_server.c: SSN_TEST_ECHO */
+			sio := '03'O, /* NI=Internal, SCCP */
 			rctx := 0
 	}
 };
diff --git a/sccp/SCCP_Tests.ttcn b/sccp/SCCP_Tests.ttcn
index e76e9ac..835c934 100644
--- a/sccp/SCCP_Tests.ttcn
+++ b/sccp/SCCP_Tests.ttcn
@@ -2,6 +2,9 @@
  * Author: Stefan Sperling <ssperling at sysmocom.de>
  * All Rights Reserved
  *
+ * The idea is that these tests are executed against sccp_demo_user from
+ * libosmo-sccp.git in server mode.
+ *
  * Released under the terms of GNU General Public License, Version 2 or
  * (at your option) any later version.
  *

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16920
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: Ibf99b1546411b9a9b4375b82f1003d93d3c1645d
Gerrit-Change-Number: 16920
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200117/6f529889/attachment.htm>


More information about the gerrit-log mailing list