handover_test: add test 32: half used TCH/H on dyn TS
Shows undesired behavior of moving a TCH/H from a fully used dyn TS leading to two half-used dyn TS, rather than moving the half-used dyn TS that would lead to completely freeing a dyn TS. Change-Id: I3beaa95d12ca0a19d4d1a732f3e22558e68ee29c
This commit is contained in:
parent
e0792fd342
commit
2978e746b3
|
@ -1749,6 +1749,29 @@ static char *test_case_31[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
static char *test_case_32[] = {
|
||||
"2",
|
||||
|
||||
"Congestion check: favor moving a TCH/H that frees a half-used dyn TS completely\n"
|
||||
,
|
||||
"create-bts", "1", "c+s4", "dyn", "dyn", "dyn", "dyn", "dyn", "-", "-",
|
||||
"set-ts-use", "0", "0", "*", "PDCH", "TCH/HH", "TCH/H-", "TCH/HH", "PDCH", "-", "-",
|
||||
"meas-rep", "0","0","2","1", "30","0", "0",
|
||||
"meas-rep", "0","0","3","0", "30","0", "0",
|
||||
"meas-rep", "0","0","4","0", "30","0", "0",
|
||||
"meas-rep", "0","0","4","1", "30","0", "0",
|
||||
/* pick one to move */
|
||||
"set-min-free", "0", "TCH/H", "6",
|
||||
"congestion-check",
|
||||
"expect-chan", "0", "1",
|
||||
"ack-chan",
|
||||
/* Not so good: should move the half-used TCH/H instead of "halving" another dyn TS */
|
||||
"expect-ho", "0", "4",
|
||||
"ho-complete",
|
||||
"expect-ts-use", "0", "0", "*", "TCH/F", "TCH/HH", "TCH/H-", "TCH/H-", "PDCH", "-", "-",
|
||||
NULL
|
||||
};
|
||||
|
||||
static char **test_cases[] = {
|
||||
test_case_0,
|
||||
test_case_1,
|
||||
|
@ -1782,6 +1805,7 @@ static char **test_cases[] = {
|
|||
test_case_29,
|
||||
test_case_30,
|
||||
test_case_31,
|
||||
test_case_32,
|
||||
};
|
||||
|
||||
static const struct log_info_cat log_categories[] = {
|
||||
|
|
|
@ -242,3 +242,9 @@ 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
|
||||
|
||||
AT_SETUP([handover test 32])
|
||||
AT_KEYWORDS([handover])
|
||||
cat $abs_srcdir/handover/handover_test.ok > expout
|
||||
AT_CHECK([$abs_top_builddir/tests/handover/handover_test 32], [], [expout], [ignore])
|
||||
AT_CLEANUP
|
||||
|
|
Loading…
Reference in New Issue