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.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20918 ) Change subject: pcu: Introduce test TC_multitrx_multims_alloc ...................................................................... pcu: Introduce test TC_multitrx_multims_alloc Related: OS#1775 Change-Id: I6b20fded6b2a1896fb7ec47c7c5dcbdcbe27f771 --- M pcu/GPRS_Components.ttcn M pcu/PCU_Tests.ttcn 2 files changed, 53 insertions(+), 9 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/18/20918/1 diff --git a/pcu/GPRS_Components.ttcn b/pcu/GPRS_Components.ttcn index 2807b92..95aabc8 100644 --- a/pcu/GPRS_Components.ttcn +++ b/pcu/GPRS_Components.ttcn @@ -147,16 +147,18 @@ /* Connection to the BTS component (one for now) */ port RAW_PCU_MSG_PT BTS; - /* Support only 1 ms for now */ - var GprsMS g_ms[1]; + /* Support only 8 ms for now */ + var GprsMS g_ms[8]; /* Value at which Countdown Procedure starts. Announced by network (GPRS Cell Options as per TS 04.60 Chapter 12.24) */ var uint4_t g_bs_cv_max := 4; } -function f_init_gprs_ms(template (value) GprsMS ms_params := t_GprsMS_def) runs on MS_BTS_IFACE_CT +function f_init_gprs_ms(integer num_ms := 1, template (value) GprsMS ms_params := t_GprsMS_def) runs on MS_BTS_IFACE_CT { - g_ms[0] := valueof(ms_params); + for (var integer i := 0; i < num_ms; i := i + 1 ) { + g_ms[i] := valueof(ms_params); + } } diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn index ea3e6ba..1679a8c 100644 --- a/pcu/PCU_Tests.ttcn +++ b/pcu/PCU_Tests.ttcn @@ -2472,6 +2472,52 @@ f_shutdown(__BFILE__, __LINE__, final := true); } +/* Verify allocation of several MS along PDCH ts of several TRX. See OS#1775, SYS#5030 */ +testcase TC_multitrx_multims_alloc() runs on RAW_PCU_Test_CT { + var PCUIF_info_ind info_ind; + var integer i; + var integer num_ms := 8; + + /* Initialize NS/BSSGP side */ + f_init_bssgp(); + /* Initialize GPRS MS side */ + f_init_gprs_ms(num_ms); + + info_ind := valueof(ts_PCUIF_INFO_default); + /* Only the 3 first TRX are enabled. The enabled ones all have same + amount of resources, hence same amount of initial resources. */ + for (i := 0; i < lengthof(info_ind.trx.v10); i := i + 1) { + info_ind.trx.v10[i].pdch_mask := '00000000'B; + } + info_ind.trx.v10[0].pdch_mask := '00000011'B; + info_ind.trx.v10[1].pdch_mask := '00001100'B; + info_ind.trx.v10[2].pdch_mask := '11000000'B; + + /* Initialize the PCU interface abstraction */ + f_init_raw(testcasename(), info_ind); + + /* Establish BSSGP connection to the PCU */ + f_bssgp_establish(); + for (i := 0; i < num_ms; i := i + 1) { + f_bssgp_client_llgmm_assign('FFFFFFFF'O, g_ms[i].tlli); + } + + /* Establish an Uplink TBF for each MS. They should be allocated on + different TRX in an uniform way. */ + for (i := 0; i < num_ms; i := i + 1) { + f_ms_establish_ul_tbf(g_ms[i]); + + var uint10_t arfcn := g_ms[i].ul_tbf.rr_imm_ass.payload.imm_ass.pkt_chan_desc.zero.arfcn; + if (arfcn != info_ind.trx.v10[i mod 3].arfcn) { + setverdict(fail, "Got assigned ARFCN ", arfcn, " vs exp ", + info_ind.trx.v10[i mod 3].arfcn); + f_shutdown(__BFILE__, __LINE__); + } + } + + f_shutdown(__BFILE__, __LINE__, final := true); +} + control { execute( TC_pcuif_suspend() ); execute( TC_ta_ptcch_idle() ); @@ -2527,11 +2573,7 @@ } execute( TC_pcuif_info_ind_subsequent() ); + execute( TC_multitrx_multims_alloc() ); } - - - - - } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20918 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: I6b20fded6b2a1896fb7ec47c7c5dcbdcbe27f771 Gerrit-Change-Number: 20918 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/20201026/75fd6b49/attachment.htm>