aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-11-13 04:17:30 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2020-11-16 17:02:06 +0100
commit6cf7661c23a71c4e8c38de2248807dc58af5b891 (patch)
tree23d1726d9b6186a6a850c6edd8bf1c467ade8808
parent1a6cefa49e51d42c73eea1cf867d41754ef7659e (diff)
handover_test: add test 31: TCH/H: re-use dyn TS
-rw-r--r--tests/handover/handover_test.c13
-rw-r--r--tests/testsuite.at6
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index 052a4aa50..77aa3d07b 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -1599,6 +1599,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,
@@ -1632,6 +1644,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[] = {
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 787f33d4f..bd6f56f36 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -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