summaryrefslogtreecommitdiffstats
path: root/msc/MSC_Tests.ttcn
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-01-07 21:56:55 +0100
committerlaforge <laforge@osmocom.org>2020-01-10 16:03:27 +0000
commit1c9754dc0deeb55677ba676d509adabb9c6ba807 (patch)
tree719d2a8d635335de32735b5453c715d351843965 /msc/MSC_Tests.ttcn
parentf3906e63f8f31db7e6be8480070cdbc89761c571 (diff)
MSC: add test cases for concurrent MO/MT SS/USSD transactions
Both test cases make use of the existing functions: - TC_multi_lu_and_mo_ussd: f_tc_lu_and_mo_ussd_single_request(), - TC_multi_lu_and_mt_ussd: f_tc_lu_and_mt_ussd_notification(), starting several (*) BSC_ConnHdlr components in parallel. (*) The maximum amount is limited by 16 - this is as much as both GSUP and SCTP emulation components can handle. Change-Id: I2fb1c5d285163d5245d92fa24c197a5027ecbe6f Related: OS#2931
Diffstat (limited to 'msc/MSC_Tests.ttcn')
-rw-r--r--msc/MSC_Tests.ttcn41
1 files changed, 41 insertions, 0 deletions
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index f7df81a..177c2f8 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -3695,6 +3695,44 @@ testcase TC_proc_ss_abort() runs on MTC_CT {
}
+/* Verify multiple concurrent MO SS/USSD transactions
+ * (one subscriber - one transaction) */
+testcase TC_multi_lu_and_mo_ussd() runs on MTC_CT {
+ var BSC_ConnHdlr vc_conn[16];
+ var integer i;
+
+ f_init();
+
+ for (i := 0; i < sizeof(vc_conn); i := i + 1) {
+ vc_conn[i] := f_start_handler(refers(f_tc_lu_and_mo_ussd_single_request), 210 + i);
+ }
+
+ for (i := 0; i < sizeof(vc_conn); i := i + 1) {
+ vc_conn[i].done;
+ }
+}
+
+/* Verify multiple concurrent MT SS/USSD transactions
+ * (one subscriber - one transaction) */
+testcase TC_multi_lu_and_mt_ussd() runs on MTC_CT {
+ var BSC_ConnHdlr vc_conn[16];
+ var integer i;
+ var OCT4 sid;
+
+ f_init();
+
+ for (i := 0; i < sizeof(vc_conn); i := i + 1) {
+ sid := '200001'O & int2oct(i, 1); /* All transactions must use different session ID */
+ vc_conn[i] := f_start_handler_with_pars(refers(f_tc_lu_and_mt_ussd_notification),
+ f_init_pars(226 + i, gsup_sid := sid));
+ }
+
+ for (i := 0; i < sizeof(vc_conn); i := i + 1) {
+ vc_conn[i].done;
+ }
+}
+
+
/* A5/1 only permitted on network side; attempt an invalid CIPHER MODE COMPLETE with A5/3 which MSC should reject. */
private function f_tc_cipher_complete_with_invalid_cipher(charstring id, BSC_ConnHdlrPars pars) runs on BSC_ConnHdlr {
pars.net.expect_auth := true;
@@ -5845,6 +5883,9 @@ control {
execute( TC_proc_ss_paging_fail() );
execute( TC_proc_ss_abort() );
+ execute( TC_multi_lu_and_mo_ussd() );
+ execute( TC_multi_lu_and_mt_ussd() );
+
execute( TC_cipher_complete_with_invalid_cipher() );
execute( TC_cipher_complete_1_without_cipher() );
execute( TC_cipher_complete_3_without_cipher() );