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


Change subject: pcu: add test TC_paging_pch_timeout
......................................................................

pcu: add test TC_paging_pch_timeout

Related: SYS#4878
Change-Id: I8a8a912908f42d16dc04e2abe8ee4117f08bc672
---
M pcu/PCU_Tests.ttcn
1 file changed, 25 insertions(+), 0 deletions(-)



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

diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index f77c4c1..ada9ae3 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -3241,6 +3241,28 @@
        f_shutdown(__BFILE__, __LINE__, final := true);
 }

+testcase TC_paging_pch_timeout() runs on RAW_PCU_Test_CT {
+       /* Initialize the PCU interface abstraction */
+       f_init_raw(testcasename());
+
+       /* Set T3113 to 1s to shorten the test duration */
+       f_vty_config2(PCUVTY, {"pcu"}, "timer T3113 1");
+
+       /* Reset stats and send paging PS request */
+       f_tc_paging_ps_from_sgsn(mp_gb_cfg.bvc[0].bvci);
+
+       /* Verify that counter increases when T3113 times out (MS did not start
+        * TBF to respond to paging). */
+       f_sleep(1.2);
+       var StatsDExpects expect := {
+               { name := "TTCN3.bts.0.pch.requests.timeout", mtype := "c", min 
:= 1, max := 1 }
+       };
+       f_statsd_expect(expect);
+
+       f_vty_config2(PCUVTY, {"pcu"}, "timer T3113 default");
+       f_shutdown(__BFILE__, __LINE__, final := true);
+}
+
 /* Verify osmo-pcu handles DL UNIT_DATA from SGSN with IMSI IE correctly. See 
OS#4729 */
 testcase TC_bssgp_dl_unitdata_with_valid_imsi() runs on RAW_PCU_Test_CT {
        var RlcmacDlBlock dl_block;
@@ -5968,6 +5990,9 @@
        execute( TC_paging_ps_from_sgsn_sign_ptmsi() );
        execute( TC_paging_ps_from_sgsn_sign() );
        execute( TC_paging_ps_from_sgsn_ptp() );
+       if (mp_osmo_pcu_newer_than_0_9_0) {
+               execute( TC_paging_pch_timeout() );
+       }
        execute( TC_paging_cs_multi_ms_imsi_tmsi() );
        execute( TC_paging_cs_multi_ms_imsi() );
        execute( TC_paging_cs_multi_ms_tmsi() );

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25160
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: I8a8a912908f42d16dc04e2abe8ee4117f08bc672
Gerrit-Change-Number: 25160
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osm...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to