summaryrefslogtreecommitdiffstats
path: root/bts/BTS_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-13 17:02:14 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-13 17:03:46 +0100
commitd378a256c79b4a06fa8773eee4dc33521e97e8a6 (patch)
tree3e8f19bf9b249ee95de03faa036643ca62701966 /bts/BTS_Tests.ttcn
parent99ca30ce2e602e15fff939cb7076ba594fae7631 (diff)
bts: Verify the PCU protocol interface version
Diffstat (limited to 'bts/BTS_Tests.ttcn')
-rw-r--r--bts/BTS_Tests.ttcn11
1 files changed, 6 insertions, 5 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 5e0b3fb..15d5f6d 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -234,9 +234,12 @@ private function f_init_vty(charstring id) runs on test_CT {
/* PCU socket may at any time receive a new INFO.ind */
private altstep as_pcu_info_ind() runs on test_CT {
var PCUIF_send_data sd;
- [] PCU.receive(t_SD_PCUIF_MSGT(g_pcu_conn_id, PCU_IF_MSG_INFO_IND)) -> value sd {
+ [] PCU.receive(t_SD_PCUIF(g_pcu_conn_id, tr_PCUIF_INFO_IND(0, ?))) -> value sd {
g_pcu_last_info := sd.data;
- repeat;
+ }
+ [] PCU.receive(t_SD_PCUIF(g_pcu_conn_id, tr_PCUIF_INFO_IND(?, ?, ?))) -> value sd {
+ setverdict(fail, "Invalid PCU Version/BTS Number received");
+ self.stop;
}
}
@@ -252,9 +255,7 @@ private function f_init_pcu(charstring id) runs on test_CT {
T.start;
alt {
- [] PCU.receive(t_SD_PCUIF_MSGT(g_pcu_conn_id, PCU_IF_MSG_INFO_IND)) -> value sd {
- g_pcu_last_info := sd.data;
- }
+ [] as_pcu_info_ind();
[] T.timeout {
setverdict(fail, "Timeout waiting for PCU INFO_IND");
self.stop;