This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
neels gerrit-no-reply at lists.osmocom.orgneels has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/24360 )
Change subject: handover_test: fix naming/wording: 'handover-req' should be 'handover-cmd'
......................................................................
handover_test: fix naming/wording: 'handover-req' should be 'handover-cmd'
Related: SYS#5315 OS#4940 OS#3277
Change-Id: I0c20971590e4b1a19f77ff3f15d58992eeebfbd9
---
M tests/handover/handover_test.c
M tests/handover/test_max_handovers.ho_vty
M tests/handover/test_penalty_timer.ho_vty
3 files changed, 29 insertions(+), 29 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index c16b26d..6f633cd 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -532,8 +532,8 @@
static struct gsm_lchan *new_chan_req = NULL;
static struct gsm_lchan *last_chan_req = NULL;
-static struct gsm_lchan *new_ho_req = NULL;
-static struct gsm_lchan *last_ho_req = NULL;
+static struct gsm_lchan *new_ho_cmd = NULL;
+static struct gsm_lchan *last_ho_cmd = NULL;
/* send channel activation ack */
static void send_chan_act_ack(struct gsm_lchan *lchan, int act)
@@ -701,12 +701,12 @@
switch (gh->msg_type) {
case GSM48_MT_RR_HANDO_CMD:
case GSM48_MT_RR_ASS_CMD:
- if (new_ho_req) {
- fprintf(stderr, "Test script is erratic: a handover is requested"
- " while a previous handover request is still unhandled\n");
+ if (new_ho_cmd) {
+ fprintf(stderr, "Test script is erratic: seen a Handover Command"
+ " while a previous Handover Command is still unhandled\n");
exit(1);
}
- new_ho_req = lchan;
+ new_ho_cmd = lchan;
break;
}
break;
@@ -1035,27 +1035,27 @@
send_chan_act_ack(lchan, 1);
}
-static void _expect_ho_req(struct gsm_lchan *lchan)
+static void _expect_ho_cmd(struct gsm_lchan *lchan)
{
- fprintf(stderr, "- Expecting handover/assignment request at %s\n",
+ fprintf(stderr, "- Expecting Handover/Assignment Command at %s\n",
gsm_lchan_name(lchan));
- if (!new_ho_req) {
- fprintf(stderr, "Test failed, because no handover was requested\n");
+ if (!new_ho_cmd) {
+ fprintf(stderr, "Test failed, no Handover Command\n");
exit(1);
}
- fprintf(stderr, " * Got handover/assignment request at %s\n", gsm_lchan_name(new_ho_req));
- if (new_ho_req != lchan) {
- fprintf(stderr, "Test failed, because handover/assignment was not commanded on the expected lchan\n");
+ fprintf(stderr, " * Got Handover/Assignment Command at %s\n", gsm_lchan_name(new_ho_cmd));
+ if (new_ho_cmd != lchan) {
+ fprintf(stderr, "Test failed, Handover/Assignment Command not on the expected lchan\n");
exit(1);
}
- last_ho_req = new_ho_req;
- new_ho_req = NULL;
+ last_ho_cmd = new_ho_cmd;
+ new_ho_cmd = NULL;
}
DEFUN(expect_chan, expect_chan_cmd,
"expect-chan " LCHAN_ARGS,
- "Expect a channel request from BSC to a cell for a specific lchan\n"
+ "Expect RSL Channel Activation of a specific lchan\n"
LCHAN_ARGS_DOC)
{
VTY_ECHO();
@@ -1063,13 +1063,13 @@
return CMD_SUCCESS;
}
-DEFUN(expect_ho_req, expect_ho_req_cmd,
- "expect-ho-req " LCHAN_ARGS,
- "Expect a handover of a given lchan\n"
+DEFUN(expect_handover_command, expect_handover_command_cmd,
+ "expect-ho-cmd " LCHAN_ARGS,
+ "Expect an RR Handover Command sent to a specific lchan\n"
LCHAN_ARGS_DOC)
{
VTY_ECHO();
- _expect_ho_req(parse_lchan_args(argv));
+ _expect_ho_cmd(parse_lchan_args(argv));
return CMD_SUCCESS;
}
@@ -1095,12 +1095,12 @@
fprintf(stderr, "Cannot ack handover/assignment, because no chan request\n");
exit(1);
}
- if (!last_ho_req) {
+ if (!last_ho_cmd) {
fprintf(stderr, "Cannot ack handover/assignment, because no ho request\n");
exit(1);
}
send_ho_complete(last_chan_req, true);
- lchan_release_ack(last_ho_req);
+ lchan_release_ack(last_ho_cmd);
return CMD_SUCCESS;
}
@@ -1116,7 +1116,7 @@
VTY_ECHO();
_expect_chan_activ(to);
- _expect_ho_req(from);
+ _expect_ho_cmd(from);
send_ho_detect(to);
send_ho_complete(to, true);
lchan_release_ack(from);
@@ -1132,11 +1132,11 @@
fprintf(stderr, "Cannot fail handover, because no chan request\n");
exit(1);
}
- if (!last_ho_req) {
+ if (!last_ho_cmd) {
fprintf(stderr, "Cannot fail handover, because no handover request\n");
exit(1);
}
- send_ho_complete(last_ho_req, false);
+ send_ho_complete(last_ho_cmd, false);
lchan_release_ack(last_chan_req);
return CMD_SUCCESS;
}
@@ -1208,7 +1208,7 @@
install_element(CONFIG_NODE, &congestion_check_cmd);
install_element(CONFIG_NODE, &expect_no_chan_cmd);
install_element(CONFIG_NODE, &expect_chan_cmd);
- install_element(CONFIG_NODE, &expect_ho_req_cmd);
+ install_element(CONFIG_NODE, &expect_handover_command_cmd);
install_element(CONFIG_NODE, &ho_detection_cmd);
install_element(CONFIG_NODE, &ho_complete_cmd);
install_element(CONFIG_NODE, &expect_ho_cmd);
diff --git a/tests/handover/test_max_handovers.ho_vty b/tests/handover/test_max_handovers.ho_vty
index e5d9ef5..76a9ea9 100644
--- a/tests/handover/test_max_handovers.ho_vty
+++ b/tests/handover/test_max_handovers.ho_vty
@@ -9,10 +9,10 @@
set-ts-use trx 0 0 states * TCH/F TCH/F TCH/F - - - -
meas-rep lchan 0 0 1 0 rxlev 0 rxqual 0 ta 0 neighbors 30
expect-chan lchan 1 0 1 0
-expect-ho-req lchan 0 0 1 0
+expect-ho-cmd lchan 0 0 1 0
meas-rep lchan 0 0 2 0 rxlev 0 rxqual 0 ta 0 neighbors 30
expect-chan lchan 1 0 2 0
-expect-ho-req lchan 0 0 2 0
+expect-ho-cmd lchan 0 0 2 0
meas-rep lchan 0 0 3 0 rxlev 0 rxqual 0 ta 0 neighbors 30
expect-no-chan
diff --git a/tests/handover/test_penalty_timer.ho_vty b/tests/handover/test_penalty_timer.ho_vty
index 7b0d266..7528a0f 100644
--- a/tests/handover/test_penalty_timer.ho_vty
+++ b/tests/handover/test_penalty_timer.ho_vty
@@ -7,7 +7,7 @@
set-ts-use trx 0 0 states * TCH/F - - - - - -
meas-rep lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30
expect-chan lchan 1 0 1 0
-expect-ho-req lchan 0 0 1 0
+expect-ho-cmd lchan 0 0 1 0
ho-failed
expect-ts-use trx 0 0 states * TCH/F - - - - - -
expect-ts-use trx 1 0 states * - - - - - - -
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/24360
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I0c20971590e4b1a19f77ff3f15d58992eeebfbd9
Gerrit-Change-Number: 24360
Gerrit-PatchSet: 4
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210601/427e441e/attachment.htm>