summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-03-02 00:03:44 +0100
committerHarald Welte <laforge@gnumonks.org>2019-03-02 00:04:52 +0100
commit16e92f41699f95a349c6541e5ff4f03bf1f586c3 (patch)
tree63323517239daf020611a698f365456ccf594004
parenta321981987089099d8a556cfc5aa3a94014cdf64 (diff)
PCU: Add simple test for PCUIF RACH Indication
-rw-r--r--pcu/PCU_Tests_RAW_SNS.ttcn20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcu/PCU_Tests_RAW_SNS.ttcn b/pcu/PCU_Tests_RAW_SNS.ttcn
index 5a370d9..26d8011 100644
--- a/pcu/PCU_Tests_RAW_SNS.ttcn
+++ b/pcu/PCU_Tests_RAW_SNS.ttcn
@@ -247,6 +247,24 @@ testcase TC_sns_chg_weight() runs on RAW_Test_CT {
setverdict(pass);
}
+import from PCUIF_Types all;
+import from PCUIF_CodecPort all;
+
+private function f_pcuif_tx(template (value) PCUIF_Message msg) runs on RAW_PCU_CT {
+ PCU.send(t_SD_PCUIF(g_pcu_conn_id, msg));
+}
+
+testcase TC_pcuif_rach() runs on RAW_Test_CT {
+ f_sns_bringup_1c1u();
+
+ f_pcuif_tx(ts_PCUIF_RACH_IND(bts_nr:=0, ra:=23, is_11bit:=0, burst_type:=BURST_TYPE_0,
+ fn:=42, arfcn:=871, qta:=0));
+ PCU.receive(t_SD_PCUIF(g_pcu_conn_id,
+ tr_PCUIF_DATA_REQ(bts_nr:=0, trx_nr:=0, ts_nr:=0, block_nr:=?, fn:=?,
+ sapi:=PCU_IF_SAPI_AGCH, data:=?)));
+ setverdict(pass);
+}
+
control {
@@ -259,6 +277,8 @@ control {
execute( TC_sns_add() );
execute( TC_sns_del() );
execute( TC_sns_chg_weight() );
+
+ execute( TC_pcuif_rach() );
}
}