laforge has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15680 )

Change subject: pcu: TC_t3169: Check ul block reaches SGSN before timer 
expiration
......................................................................

pcu: TC_t3169: Check ul block reaches SGSN before timer expiration

Change-Id: Ic6fd82dc5037d08278d36aed9b6e72e80da5c42f
---
M pcu/PCU_Tests_RAW.ttcn
1 file changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/pcu/PCU_Tests_RAW.ttcn b/pcu/PCU_Tests_RAW.ttcn
index f0c8b1d..0771cf9 100644
--- a/pcu/PCU_Tests_RAW.ttcn
+++ b/pcu/PCU_Tests_RAW.ttcn
@@ -974,6 +974,10 @@
        var PCUIF_Message pcu_msg;
        var octetstring data;
        var boolean ok;
+       var OCT4 tlli := '00000001'O;
+
+       /* Initialize NS/BSSGP side */
+       f_init_bssgp();

        info_ind := valueof(ts_PCUIF_INFO_default);
        /* Set timer to 1 sec (default 5) to speedup test: */
@@ -982,6 +986,10 @@
        /* Initialize the PCU interface abstraction */
        f_init_raw(testcasename(), info_ind);

+       /* Establish BSSGP connection to the PCU */
+       f_bssgp_establish();
+       f_bssgp_client_llgmm_assign('FFFFFFFF'O, tlli);
+
        /* Establish an Uplink TBF */
        ok := f_establish_tbf(rr_imm_ass);
        if (not ok) {
@@ -998,6 +1006,8 @@
        /* Send one UL block and make sure it is ACKED fine */
        f_tx_rlcmac_ul_n_blocks(ul_tbf_ass, 1);
        f_rx_rlcmac_dl_block_exp_ack_nack(dl_block);
+       /* UL block should be received in SGSN */
+       BSSGP[0].receive(tr_BSSGP_UL_UD(tlli, mp_gb_cfg.cell_id));

        /* Wait until T3169 fires (plus 1 extra sec to make sure) */
        f_sleep(int2float(info_ind.t3169) + 1.0);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15680
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: Ic6fd82dc5037d08278d36aed9b6e72e80da5c42f
Gerrit-Change-Number: 15680
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pes...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <lafo...@osmocom.org>
Gerrit-MessageType: merged

Reply via email to