handover_test: add test 31: TCH/H: re-use dyn TS

Show undesired behavior of opening up another TCH/H timeslot even though
another TCH/H timeslot still has room for a second lchan. This is particularly
bad for dynamic timeslots, reducing PDCH as well as TCH/F resources.

Change-Id: If222835af92d832b848824e5466bdcaf9af8a614
This commit is contained in:
Neels Hofmeyr 2020-11-13 04:17:30 +01:00
parent 25e8f76116
commit b08ec40282
2 changed files with 19 additions and 0 deletions

View File

@ -1694,6 +1694,18 @@ static char *test_case_30[] = {
NULL
};
static char *test_case_31[] = {
"2",
"Congestion check: re-use half used TCH/H to avoid switching more dyn TS to TCH/H\n"
,
"create-bts", "1", "c+s4", "TCH/F", "TCH/F", "TCH/F", "dyn", "dyn", "dyn", "PDCH",
"set-ts-use", "0", "0", "*", "-", "-", "-", "PDCH", "TCH/H-", "PDCH", "PDCH",
"create-ms", "0", "TCH/H", "AMR",
/* bad: should re-use existing dyn TS instead of switching another one */
"expect-ts-use", "0", "0", "*", "-", "-", "-", "TCH/H-", "TCH/H-", "PDCH", "PDCH",
NULL
};
static char **test_cases[] = {
test_case_0,
@ -1727,6 +1739,7 @@ static char **test_cases[] = {
test_case_28,
test_case_29,
test_case_30,
test_case_31,
};
static const struct log_info_cat log_categories[] = {

View File

@ -236,3 +236,9 @@ AT_KEYWORDS([handover])
cat $abs_srcdir/handover/handover_test.ok > expout
AT_CHECK([$abs_top_builddir/tests/handover/handover_test 30], [], [expout], [ignore])
AT_CLEANUP
AT_SETUP([handover test 31])
AT_KEYWORDS([handover])
cat $abs_srcdir/handover/handover_test.ok > expout
AT_CHECK([$abs_top_builddir/tests/handover/handover_test 31], [], [expout], [ignore])
AT_CLEANUP