summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-11-20 13:12:22 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-11-20 13:12:24 +0100
commitf5ca013c6a6d574f00050f4b420ec8fd5f996e8a (patch)
tree9246832ffedef2bcda23bec520ddf3f23fad9889
parent20bc3e25a7fdd38895b88d7c7919812619d47de2 (diff)
bts: Disable PCU related tests if PCU socket not configuredpespin/ttcn3
With some real HW setups, there's no PCU (osmo-pcu) available locally, for instance when using a sysmobts, or when using a nanoBTS. There's no need to waste time and generate extra output by running this tests in this case. Change-Id: I773c7ec52dd8532bf160e92ffefc8d936ca55de2
-rw-r--r--bts/BTS_Tests.ttcn38
1 files changed, 21 insertions, 17 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index cde9562..753d89b 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -4186,23 +4186,27 @@ control {
execute( TC_ipa_crcx_mdcx_mdcx_dlcx_not_active() );
execute( TC_ipa_crcx_sdcch_not_active() );
- execute( TC_pcu_act_req() );
- execute( TC_pcu_act_req_wrong_ts() );
- execute( TC_pcu_act_req_wrong_bts() );
- execute( TC_pcu_act_req_wrong_trx() );
- execute( TC_pcu_deact_req() );
- execute( TC_pcu_deact_req_wrong_ts() );
- execute( TC_pcu_ver_si13() );
- execute( TC_pcu_data_req_wrong_bts() );
- execute( TC_pcu_data_req_wrong_trx() );
- execute( TC_pcu_data_req_wrong_ts() );
- execute( TC_pcu_data_req_ts_inactive() );
- execute( TC_pcu_data_req_pdtch() );
- execute( TC_pcu_data_req_ptcch() );
- execute( TC_pcu_data_req_agch() );
- execute( TC_pcu_data_req_imm_ass_pch() );
- execute( TC_pcu_rach_content() );
- execute( TC_pcu_paging_from_rsl() );
+ if (mp_pcu_socket != "") {
+ execute( TC_pcu_act_req() );
+ execute( TC_pcu_act_req_wrong_ts() );
+ execute( TC_pcu_act_req_wrong_bts() );
+ execute( TC_pcu_act_req_wrong_trx() );
+ execute( TC_pcu_deact_req() );
+ execute( TC_pcu_deact_req_wrong_ts() );
+ execute( TC_pcu_ver_si13() );
+ execute( TC_pcu_data_req_wrong_bts() );
+ execute( TC_pcu_data_req_wrong_trx() );
+ execute( TC_pcu_data_req_wrong_ts() );
+ execute( TC_pcu_data_req_ts_inactive() );
+ execute( TC_pcu_data_req_pdtch() );
+ execute( TC_pcu_data_req_ptcch() );
+ execute( TC_pcu_data_req_agch() );
+ execute( TC_pcu_data_req_imm_ass_pch() );
+ execute( TC_pcu_rach_content() );
+ execute( TC_pcu_paging_from_rsl() );
+ } else {
+ log("PCU socket path not available, skipping PCU tests");
+ }
execute( TC_dyn_osmo_pdch_act_deact() );
execute( TC_dyn_osmo_pdch_unsol_deact() );