bts: Test if BTS forwards ETWS Primary Notification to PCU
All MS/UE must be notified of ETWS Primary Notifiations.
Depending on their state, the notification goes different paths:
* CS dedicated mode: BSC sends it as L3 message over LAPDm / DCCH
* CS/PS idle mode: BTS sends paging messages on PCH
* PS TBF active: PCU send Packet Application Info
This tests the last of the three methods by checking that a ETWS Primary
Notification sent on RSL to the BTS is received by the PCU socket.
Change-Id: I2661df7f7d870a0ac1c89bb8a85df81644b00b0a
Related: OS#4047, OS#4048
Depends: osmo-bts Ic0b3f38b400a0ca7e4089061ceb6548b0695faa6
diff --git a/bts/BTS_Tests_SMSCB.ttcn b/bts/BTS_Tests_SMSCB.ttcn
index 49416c2..292205a 100644
--- a/bts/BTS_Tests_SMSCB.ttcn
+++ b/bts/BTS_Tests_SMSCB.ttcn
@@ -26,6 +26,9 @@
import from RSL_Types all;
+import from PCUIF_Types all;
+import from PCUIF_CodecPort all;
+
import from Osmocom_VTY_Functions all;
import from BTS_Tests all;
@@ -1046,6 +1049,32 @@
}
}
+/* Ensure ETWS Primary Notification is passed from RSL to PCU interface */
+testcase TC_etws_pcu() runs on test_CT {
+ timer T := 10.0;
+
+ f_init();
+ f_init_l1ctl();
+ f_l1_tune(L1CTL, ccch_mode := CCCH_MODE_COMBINED_CBCH);
+
+ RSL_CCHAN.send(ts_RSL_UD(ts_RSL_OSMO_ETWS_CMD(c_etws)));
+
+ T.start;
+ alt {
+ [] PCU.receive(t_SD_PCUIF(g_pcu_conn_id, tr_PCUIF_APP_INFO_REQ(0, 0, c_etws))) {
+ setverdict(pass);
+ }
+ [] PCU.receive(t_SD_PCUIF(g_pcu_conn_id, tr_PCUIF_APP_INFO_REQ(?, ?, ?))) {
+ setverdict(fail, "PCU socket received invalid APP INFO");
+ }
+ [] PCU.receive { repeat; }
+ [] T.timeout {
+ setverdict(fail, "PCU socket timeout receiving APP INFO (ETWS)");
+ }
+ }
+}
+
+
/* SMSCB TODO:
* multiple SMS BC CMD at the same time: Ensure all of them are sent exactly once
@@ -1083,6 +1112,7 @@
execute( TC_etws_p1ro() );
execute( TC_etws_p1ro_end() );
+ execute( TC_etws_pcu() );
}