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/.
osmith gerrit-no-reply at lists.osmocom.orgosmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25332 ) Change subject: pcu: add TC_stat_pdch_avail_occ ...................................................................... pcu: add TC_stat_pdch_avail_occ Test new stats bts.N.pdch.available/occupied. Related: SYS#4878 Related: osmo-pcu I74760a68ee055510a79e80854ec7bf1521669119 Change-Id: I607b4729740159c161af824317f9fc04878eb13d --- M pcu/PCU_Tests.ttcn 1 file changed, 47 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/32/25332/1 diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn index 6f0df06..88893ec 100644 --- a/pcu/PCU_Tests.ttcn +++ b/pcu/PCU_Tests.ttcn @@ -5992,6 +5992,51 @@ f_shutdown(__BFILE__, __LINE__, final := true); } +/* Test stats for available and occupied PDCHs */ +testcase TC_stat_pdch_avail_occ() runs on RAW_PCU_Test_CT { + var PCUIF_info_ind info_ind := valueof(ts_PCUIF_INFO_default); + const BssgpBvci bvci := mp_gb_cfg.bvc[0].bvci; + + /* Initialize NS/BSSGP side */ + f_init_bssgp(); + + /* Only 1 TRX with 8 PDCH */ + f_PCUIF_PDCHMask_set(info_ind, '11111111'B, 0); + f_PCUIF_PDCHMask_set(info_ind, '00000000'B, (1 .. 7)); + + /* Allocate 17 GprsMS instances */ + f_init_gprs_ms(4); + + /* Initialize the PCU interface abstraction */ + f_init_raw(testcasename(), info_ind); + + /* Reset stats */ + f_statsd_reset(); + + /* Establish BSSGP */ + f_bssgp_establish(); + + /* 8 PDCHs available, 0 occupied */ + var StatsDExpects expect := { + { name := "TTCN3.bts.0.pdch.available", mtype := "g", min := 8, max := 8 }, + { name := "TTCN3.bts.0.pdch.occupied", mtype := "g", min := 0, max := 0 } + }; + f_statsd_expect(expect); + + /* Establish an Uplink TBF for each GprsMS instance */ + f_multi_ms_bssgp_register(); + f_multi_ms_establish_tbf(do_activate := false); + + /* 4 PDCHs occupied */ + expect := { + { name := "TTCN3.bts.0.pdch.available", mtype := "g", min := 8, max := 8 }, + { name := "TTCN3.bts.0.pdch.occupied", mtype := "g", min := 4, max := 4 } + }; + f_statsd_expect(expect); + + f_shutdown(__BFILE__, __LINE__, final := true); +} + control { execute( TC_pcuif_suspend() ); execute( TC_pcuif_suspend_active_tbf() ); @@ -6098,6 +6143,8 @@ execute( TC_rim_ran_info_req_single_rep_no_si() ); execute (TC_pdch_energy_saving() ); + + execute( TC_stat_pdch_avail_occ() ); } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/25332 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: I607b4729740159c161af824317f9fc04878eb13d Gerrit-Change-Number: 25332 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210903/27332bba/attachment.htm>