pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38676?usp=email )

Change subject: hnbgw: Add test TC_ps_rab_assignment_concurrent
......................................................................

hnbgw: Add test TC_ps_rab_assignment_concurrent

Related: SYS#6602
Change-Id: I053950373cec93ed8dbdfd6b8a71ffe31de3806f
---
M hnbgw/HNBGW_Tests.ttcn
M hnbgw/expected-results.xml
2 files changed, 32 insertions(+), 1 deletion(-)

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




diff --git a/hnbgw/HNBGW_Tests.ttcn b/hnbgw/HNBGW_Tests.ttcn
index 91bbb11..9bd4f40 100644
--- a/hnbgw/HNBGW_Tests.ttcn
+++ b/hnbgw/HNBGW_Tests.ttcn
@@ -662,6 +662,14 @@
        return vc_conn;
 }

+/* wait for all ConnHdlr in the given list to be .done() */
+private function f_ConnHdlrList_all_done(in ConnHdlrList vc_conns)
+runs on test_CT {
+       for (var integer i := 0; i < lengthof(vc_conns); i := i + 1) {
+               vc_conns[i].done;
+       }
+}
+
 /***********************************************************************
  * HNBAP Testing
  ***********************************************************************/
@@ -1506,6 +1514,27 @@
        f_shutdown_helper();
 }

+/* Same as TC_ps_rab_assignment, but 16 subscribers in parallel.
+ * Currently 16 is the maximum we can create due to array sizes of 
RAN_Emulation.ttcn.
+ */
+testcase TC_ps_rab_assignment_concurrent() runs on test_CT {
+       var ConnHdlrList vc_conn_list := {};
+       g_num_hnbs := 1;
+       f_init();
+       f_sleep(1.0);
+       const integer num_conns := 16;
+
+       for (var integer i := 0; i < num_conns; i := i + 1) {
+               var ConnHdlr vc_conn;
+               var TestHdlrParams pars := f_TestHdlrParams(i, ps_domain := 
true);
+               vc_conn := 
f_start_handler_with_pars(refers(f_tc_ps_rab_assignment), pars);
+               vc_conn_list := vc_conn_list & { vc_conn };
+       }
+
+       f_ConnHdlrList_all_done(vc_conn_list);
+       f_shutdown_helper();
+}
+
 /* Default list of counters for a 'cn' entity to test the cnpool feature. */
 const CounterNameVals counternames_cnpool := {
        { "cnpool:subscr:new", 0 },
@@ -2395,6 +2424,7 @@
        execute(TC_cs_iu_release_req_rua_disconnect());
        execute(TC_ps_iu_release_req_rua_disconnect());
        execute(TC_ps_rab_assignment());
+       execute(TC_ps_rab_assignment_concurrent());

        execute( TC_mscpool_L3Compl_on_1_cnlink() );
        execute( TC_mscpool_L3Complete_by_imsi_round_robin() );
diff --git a/hnbgw/expected-results.xml b/hnbgw/expected-results.xml
index 70e29e6..338bf4e 100644
--- a/hnbgw/expected-results.xml
+++ b/hnbgw/expected-results.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<testsuite name='Titan' tests='54' failures='0' errors='0' skipped='0' 
inconc='0' time='MASKED'>
+<testsuite name='Titan' tests='55' failures='0' errors='0' skipped='0' 
inconc='0' time='MASKED'>
   <testcase classname='HNBGW_Tests' name='TC_hnb_register' time='MASKED'/>
   <testcase classname='HNBGW_Tests' name='TC_hnb_register_duplicate' 
time='MASKED'/>
   <testcase classname='HNBGW_Tests' 
name='TC_hnb_register_duplicate_reuse_sctp_assoc' time='MASKED'/>
@@ -27,6 +27,7 @@
   <testcase classname='HNBGW_Tests' name='TC_cs_iu_release_req_rua_disconnect' 
time='MASKED'/>
   <testcase classname='HNBGW_Tests' name='TC_ps_iu_release_req_rua_disconnect' 
time='MASKED'/>
   <testcase classname='HNBGW_Tests' name='TC_ps_rab_assignment' time='MASKED'/>
+  <testcase classname='HNBGW_Tests' name='TC_ps_rab_assignment_concurrent' 
time='MASKED'/>
   <testcase classname='HNBGW_Tests' name='TC_mscpool_L3Compl_on_1_cnlink' 
time='MASKED'/>
   <testcase classname='HNBGW_Tests' 
name='TC_mscpool_L3Complete_by_imsi_round_robin' time='MASKED'/>
   <testcase classname='HNBGW_Tests' 
name='TC_mscpool_LU_by_tmsi_null_nri_0_round_robin' time='MASKED'/>

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38676?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: I053950373cec93ed8dbdfd6b8a71ffe31de3806f
Gerrit-Change-Number: 38676
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to