aboutsummaryrefslogtreecommitdiffstats
path: root/tests/handover
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-05-26 21:16:30 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2021-05-27 03:28:29 +0200
commitd17ba33c3d876e8bf8cfbc688b1e748924740e91 (patch)
tree8f1e37f0740633046e15e03f47251c539f5aa7f2 /tests/handover
parent844dae033b096963ca9f6ac0be0ccf85290574bc (diff)
add test_bs_power.ho_vty to show BS Power HO oscillation
Shows a bug / missing feature, to be fixed in Ifcf59964b5e2d550d79e4ba14d90962808f79dae Related: SYS#5339 Change-Id: I1cc9bc39e8695faa983819b909e0ec76f0dbc296
Diffstat (limited to 'tests/handover')
-rw-r--r--tests/handover/handover_tests.ok1
-rw-r--r--tests/handover/test_bs_power.ho_vty16
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/handover/handover_tests.ok b/tests/handover/handover_tests.ok
index bd21d0e57..4a4a9241d 100644
--- a/tests/handover/handover_tests.ok
+++ b/tests/handover/handover_tests.ok
@@ -10,6 +10,7 @@ pass test_balance_congestion.ho_vty
pass test_balance_congestion_2.ho_vty
pass test_balance_congestion_by_percentage.ho_vty
pass test_balance_congestion_tchf_tchh.ho_vty
+pass test_bs_power.ho_vty
pass test_congestion.ho_vty
pass test_congestion_favor_best_target_rxlev.ho_vty
pass test_congestion_intra_vs_inter_cell.ho_vty
diff --git a/tests/handover/test_bs_power.ho_vty b/tests/handover/test_bs_power.ho_vty
new file mode 100644
index 000000000..2c68d57a6
--- /dev/null
+++ b/tests/handover/test_bs_power.ho_vty
@@ -0,0 +1,16 @@
+# Do not oscillate handover when the BTS applies BS power reduction
+
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F PDCH
+create-bts trx-count 1 timeslots c+s4 TCH/F TCH/F TCH/F TCH/F TCH/F TCH/F PDCH
+
+set-ts-use trx 0 0 states * TCH/F - - - - - *
+
+meas-rep repeat 10 bspower 20 lchan 0 0 1 0 rxlev 20 rxqual 0 ta 0 neighbors 30
+# FAIL: there should be no handover, because the bspower reduction of 20 with an rxlev of 20 (= 40) is stronger than the
+# neighbor at 30. But since osmo-bsc fails to take the BS Power into account, it hands over to the neighbor.
+#expect-no-chan
+expect-ho from lchan 0 0 1 0 to lchan 1 0 1 0
+
+# When the neighbor then reports the stronger original cell, we get handover oscillation
+meas-rep repeat 10 bspower 0 lchan 1 0 1 0 rxlev 30 rxqual 0 ta 0 neighbors 40
+expect-ho from lchan 1 0 1 0 to lchan 0 0 1 0