summaryrefslogtreecommitdiffstats
path: root/bts/BTS_Tests_SMSCB.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'bts/BTS_Tests_SMSCB.ttcn')
-rw-r--r--bts/BTS_Tests_SMSCB.ttcn30
1 files changed, 30 insertions, 0 deletions
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 GSM_RR_Types all;
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 @@ testcase TC_etws_p1ro_end() runs on test_CT {
}
}
+/* 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 @@ control {
execute( TC_etws_p1ro() );
execute( TC_etws_p1ro_end() );
+ execute( TC_etws_pcu() );
}