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


Change subject: BTS_Tests: add new testcase TC_pcu_data_req_imm_ass_agch
......................................................................

BTS_Tests: add new testcase TC_pcu_data_req_imm_ass_agch

In PCUIF v.11 we support getting confirmations for IMMEDIATE ASSIGNMENT
messages that are sent through the AGCH.

Related: OS#5927
Change-Id: Iec00d8144dfb2cd8bcee9093c96a3cc98aea6458
---
M bts/BTS_Tests.ttcn
1 file changed, 40 insertions(+), 1 deletion(-)



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

diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 0e4eee7..73b4803 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -5792,7 +5792,7 @@
        f_l1_tune(L1CTL);

        f_TC_pcu_act_req(0, 0, 7, true);
-       f_pcu_data_req(0, 0, 0, 0, 0, PCU_IF_SAPI_AGCH, c_PCU_DATA);
+       f_PCUIF_tx_mac_block_agch(PCU, g_pcu_conn_id, c_PCU_DATA, wait_for_cnf 
:= false, tlli := 'ffffffff'O);

        T.start;
        alt {
@@ -5864,6 +5864,31 @@
        }
 }

+/* Send IMM.ASS from PCU for AGCH; check it appears on Um side */
+testcase TC_pcu_data_req_imm_ass_agch() runs on test_CT {
+       var octetstring req_ref := f_rnd_octstring(3);
+       var octetstring tlli := f_rnd_octstring(4);
+       var octetstring imm_ass := '2d063f300fc364'O & req_ref & '0000dc'O & 
tlli & '00232b2b2b2b'O;
+       f_init_with_pcuif();
+       f_init_l1ctl();
+       f_l1_tune(L1CTL);
+
+       var uint32_t fn := f_PCUIF_tx_mac_block_agch(PCU, g_pcu_conn_id, 
imm_ass);
+
+       timer T := 0.5;
+       T.start;
+       alt {
+       [] L1CTL.receive(tr_L1CTL_DATA_IND(t_RslChanNr_PCH_AGCH(0), ?, 
imm_ass)) {
+               /* TODO: verify paging group */
+               setverdict(pass);
+               }
+       [] L1CTL.receive { repeat; }
+       [] T.timeout {
+               Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Timeout 
waiting for PCU-originated AGCH block on Um");
+               }
+       }
+}
+
 /* Send RACH from Um side, expect it to show up on PCU socket */
 testcase TC_pcu_rach_content() runs on test_CT {
        f_init_with_pcuif();
@@ -9074,6 +9099,7 @@
                execute( TC_pcu_data_req_agch() );
                execute( TC_pcu_data_req_pch() );
                execute( TC_pcu_data_req_imm_ass_pch() );
+               execute( TC_pcu_data_req_imm_ass_agch() );
                execute( TC_pcu_rach_content() );
                execute( TC_pcu_ext_rach_content() );
                execute( TC_pcu_data_ind_lqual_cb() );

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34067
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: Iec00d8144dfb2cd8bcee9093c96a3cc98aea6458
Gerrit-Change-Number: 34067
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>
Gerrit-MessageType: newchange

Reply via email to