diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-05-26 13:22:59 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-05-27 10:00:06 +0000 |
commit | 928622b0920d1ded40fbba17ff5c75532139f5c8 (patch) | |
tree | a58166cdc593c5aa66b43570556fc7868ed3eeac | |
parent | 7162a61f16e97d99292cc2a81f678e58a2d2c98b (diff) |
bts: Add TC_pcu_data_req_pch() for testing PCU-originated PCH
Change-Id: I0f2c4f053ef1b8d61d565f94a548c47fe3666f16
Related: OS#4023
-rw-r--r-- | bts/BTS_Tests.ttcn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn index 2b22ac44..d9e989c5 100644 --- a/bts/BTS_Tests.ttcn +++ b/bts/BTS_Tests.ttcn @@ -3470,6 +3470,29 @@ testcase TC_pcu_data_req_agch() runs on test_CT { } } +/* Send AGCH from PCU; check it appears on Um side */ +testcase TC_pcu_data_req_pch() runs on test_CT { + timer T := 3.0; + f_init_pcu_test(); + f_init_l1ctl(); + f_l1_tune(L1CTL); + + f_TC_pcu_act_req(0, 0, 7, true); + /* three characters prefix: last 3 digits of IMSI as ASCII */ + f_pcu_data_req(0, 0, 7, 0, 0, PCU_IF_SAPI_PCH, '313233'O & c_PCU_DATA); + + T.start; + alt { + [] L1CTL.receive(tr_L1CTL_DATA_IND(t_RslChanNr_PCH_AGCH(0), ?, c_PCU_DATA)) { + setverdict(pass); + } + [] L1CTL.receive { repeat; } + [] T.timeout { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Timeout waiting for PCU-originated PCH block on Um"); + } + } +} + /* Send IMM.ASS from PCU for PCH; check it appears on Um side */ testcase TC_pcu_data_req_imm_ass_pch() runs on test_CT { var octetstring imm_ass := f_rnd_octstring(23); @@ -5076,6 +5099,7 @@ control { execute( TC_pcu_data_req_ts_inactive() ); } execute( TC_pcu_data_req_agch() ); + execute( TC_pcu_data_req_pch() ); execute( TC_pcu_data_req_imm_ass_pch() ); execute( TC_pcu_rach_content() ); execute( TC_pcu_ext_rach_content() ); |