summaryrefslogtreecommitdiffstats
path: root/bts/BTS_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-25 16:59:33 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-25 16:59:33 +0100
commit93640c6e25fcec38f821201cc92499f3990bf77f (patch)
treea97558168d7cdb74cf5a7b1bfbe949be23de3e2f /bts/BTS_Tests.ttcn
parentf10153fc366a43f84bae6269b8de43a43e61e511 (diff)
bts: Add some more comments for better code grouping
Diffstat (limited to 'bts/BTS_Tests.ttcn')
-rw-r--r--bts/BTS_Tests.ttcn30
1 files changed, 28 insertions, 2 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 7d4469e..ab93c30 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -326,6 +326,10 @@ private template ConnHdlrPars t_Pars(template RslChannelNr chan_nr,
}
}
+/***********************************************************************
+ * Channel Activation / Deactivation
+ ***********************************************************************/
+
/* Stress test: Do 500 channel activations/deactivations in rapid succession */
function f_TC_chan_act_stress(charstring id) runs on ConnHdlr {
for (var integer i := 0; i < 500; i := i+1) {
@@ -437,6 +441,10 @@ testcase TC_chan_act_wrong_nr() runs on test_CT {
}
}
+/***********************************************************************
+ * RACH Handling
+ ***********************************************************************/
+
function f_TC_chan_req(charstring id) runs on ConnHdlr {
f_l1_tune(L1CTL);
@@ -453,6 +461,10 @@ testcase TC_chan_req() runs on test_CT {
vc_conn.done;
}
+/***********************************************************************
+ * Measurement Processing / Reporting
+ ***********************************************************************/
+
template LapdmAddressField ts_LapdmAddr(LapdmSapi sapi, boolean c_r) := {
spare := '0'B,
lpd := 0,
@@ -722,6 +734,10 @@ testcase TC_conn_fail_crit() runs on test_CT {
vc_conn.done;
}
+/***********************************************************************
+ * Paging
+ ***********************************************************************/
+
function tmsi_is_dummy(TMSIP_TMSI_V tmsi) return boolean {
if (tmsi == 'FFFFFFFF'O) {
return true;
@@ -730,7 +746,6 @@ function tmsi_is_dummy(TMSIP_TMSI_V tmsi) return boolean {
}
}
-
altstep as_l1_count_paging(inout integer num_paging_rcv_msgs, inout integer num_paging_rcv_ids)
runs on test_CT {
var L1ctlDlMessage dl;
@@ -977,6 +992,10 @@ testcase TC_paging_tmsi_200percent() runs on test_CT {
}
+/***********************************************************************
+ * Immediate Assignment / AGCH
+ ***********************************************************************/
+
testcase TC_imm_ass() runs on test_CT {
f_init(testcasename());
for (var integer i := 0; i < 1000; i := i+1) {
@@ -997,6 +1016,10 @@ testcase TC_bcch_info() runs on test_CT {
/* negative test: ensure ERROR REPORT on unsupported types */
}
+/***********************************************************************
+ * Low-Level Protocol Errors / ERROR REPORT
+ ***********************************************************************/
+
private function f_exp_err_rep(template RSL_Cause cause) runs on test_CT {
timer T := 5.0;
T.start;
@@ -1047,6 +1070,10 @@ testcase TC_rsl_ie_content_error() runs on test_CT {
f_exp_err_rep(RSL_ERR_IE_CONTENT);
}
+/***********************************************************************
+ * IPA CRCX/MDCX/DLCS media stream handling
+ ***********************************************************************/
+
/* Send IPA DLCX to inactive lchan */
function f_TC_ipa_dlcx_not_active(charstring id) runs on ConnHdlr {
f_rsl_transceive(ts_RSL_IPA_DLCX(g_chan_nr, 0), tr_RSL_IPA_DLCX_ACK(g_chan_nr, ?, ?),
@@ -1164,7 +1191,6 @@ testcase TC_ipa_crcx_sdcch_not_active() runs on test_CT {
* Delete Indication on AGCH overflow
* SMS Broadcast Req / Cmd / CBCH LOad Ind
* RF resource ind
-* IPA/speech related commands
* error handling
* discriminator error
** type error