fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19324 )
Change subject: PCU_Tests: verify handling of frequency hopping parameters ...................................................................... PCU_Tests: verify handling of frequency hopping parameters Change-Id: I1beda9224998848f9243237413e5ae3e0ddab8a5 Related: SYS#4868, OS#4547 --- M pcu/PCU_Tests.ttcn 1 file changed, 52 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/24/19324/1 diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn index 9fc5ab6..794780c 100644 --- a/pcu/PCU_Tests.ttcn +++ b/pcu/PCU_Tests.ttcn @@ -2069,6 +2069,52 @@ f_shutdown(__BFILE__, __LINE__, final := true); } +/* Make sure that Immediate (UL TBF) Assignment contains hopping parameters */ +testcase TC_pcuif_fh_imm_ass_ul() runs on RAW_PCU_Test_CT { + var template PCUIF_info_ind info_ind := ts_PCUIF_INFO_default; + var uint8_t ra8 := bit2int(chan_req_def); + + info_ind.trx.v10[0].ts[7] := ts_PCUIF_InfoTrxTsH1(hsn := 0, maio := 0); + info_ind.trx.v10[0].ts[7].ma := oct2bit(f_pad_oct('F0'O, 8, '00'O)); + + /* Initialize the PCU interface abstraction */ + f_init_raw(testcasename(), info_ind); + + BTS.send(ts_PCUIF_RACH_IND(bts_nr := 0, trx_nr := 0, ts_nr := 0, + ra := ra8, is_11bit := 0, + burst_type := BURST_TYPE_0, + fn := 1337, arfcn := 871)); + + var template PacketChannelDescription ch_desc := { + channel_Type_spare := ?, + tn := 7, tsc := 7, + presence := '1'B, + zero := omit, + one := { + maio := 0, + hsn := 0 + } + }; + + var template MobileAllocation ma := { + len := 1, + ma := '11110000'B + }; + + var GsmRrMessage rr_msg := f_pcuif_rx_imm_ass(); + if (not match(rr_msg, tr_IMM_TBF_ASS(dl := false, ra := ra8, fn := 1337, + ch_desc := ch_desc, ma := ma))) { + setverdict(fail, "Immediate Assignment does not match"); + } + + f_shutdown(__BFILE__, __LINE__, final := true); +} + +/* Make sure that Immediate (DL TBF) Assignment contains hopping parameters */ +testcase TC_pcuif_fh_imm_ass_dl() runs on RAW_PCU_Test_CT { + /* TODO */ +} + control { execute( TC_pcuif_suspend() ); execute( TC_ta_ptcch_idle() ); @@ -2109,6 +2155,12 @@ execute( TC_egprs_pkt_chan_req_reject_exhaustion() ); execute( TC_mo_ping_pong_with_ul_racap_egprs_only() ); + + /* Frequency hopping specific test cases */ + if (PCUIF_Types.mp_pcuif_version >= 10) { + execute( TC_pcuif_fh_imm_ass_ul() ); + execute( TC_pcuif_fh_imm_ass_dl() ); + } } -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19324 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: I1beda9224998848f9243237413e5ae3e0ddab8a5 Gerrit-Change-Number: 19324 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanits...@sysmocom.de> Gerrit-MessageType: newchange