aboutsummaryrefslogtreecommitdiffstats
path: root/pcu
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-10-07 15:26:52 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-10-07 15:28:22 +0200
commitcf47a920e5611fa983bb1570196e6ca7c8927ac5 (patch)
treed26efb8d81ede3dfcbb890f86e31c61d9f18e14b /pcu
parent596faa40dc730272cdc3878b7ef664b9cb2e8b02 (diff)
pcu: TC_t3169: Check ul block reaches SGSN before timer expiration
Diffstat (limited to 'pcu')
-rw-r--r--pcu/PCU_Tests_RAW.ttcn10
1 files changed, 10 insertions, 0 deletions
diff --git a/pcu/PCU_Tests_RAW.ttcn b/pcu/PCU_Tests_RAW.ttcn
index f0c8b1d9..0771cf98 100644
--- a/pcu/PCU_Tests_RAW.ttcn
+++ b/pcu/PCU_Tests_RAW.ttcn
@@ -974,6 +974,10 @@ testcase TC_t3169() runs on RAW_PCU_Test_CT {
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 @@ testcase TC_t3169() runs on RAW_PCU_Test_CT {
/* 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 @@ testcase TC_t3169() runs on RAW_PCU_Test_CT {
/* 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);