aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-21 01:37:10 +0300
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-10-24 13:55:51 +0300
commit4e39590e523cf7ba1be1f230871647a03aa8607f (patch)
tree893b689ca3d0c76f13eb9e0cd44ab005a1126a27 /tests
parentb599a8baacceddada79c24ebea5b1a9c0e0462af (diff)
[overpower] Add VTY transcript tests for all commands
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/acch_overpower.vty70
2 files changed, 71 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0831dee5d..762561e90 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -42,6 +42,7 @@ EXTRA_DIST = \
timer.vty \
power_ctrl.vty \
interf_meas.vty \
+ acch_overpower.vty \
ctrl/osmo-bsc-neigh-test.cfg \
ctrl/osmo-bsc-apply-config-file.cfg \
ctrl/osmo-bsc-apply-config-file-invalid.cfg \
diff --git a/tests/acch_overpower.vty b/tests/acch_overpower.vty
new file mode 100644
index 000000000..0fc8a4550
--- /dev/null
+++ b/tests/acch_overpower.vty
@@ -0,0 +1,70 @@
+OsmoBSC> enable
+
+OsmoBSC# ### Default configuration (overpower disabled)
+OsmoBSC# show running-config
+... !overpower
+
+OsmoBSC# configure terminal
+OsmoBSC(config)# network
+OsmoBSC(config-net)# bts 0
+OsmoBSC(config-net-bts)# list with-flags
+...
+ . ..l overpower (dl-acch|dl-sacch|dl-facch) <1-4>
+ . ..l no overpower dl-acch
+ . ..l overpower rxqual (0|1|2|3|4|5|6|7)
+...
+
+OsmoBSC(config-net-bts)# overpower?
+ overpower Temporary ACCH overpower
+OsmoBSC(config-net-bts)# overpower ?
+ dl-acch Enable overpower for both SACCH and FACCH
+ dl-sacch Enable overpower for SACCH only
+ dl-facch Enable overpower for FACCH only
+ rxqual Set RxQual (BER) threshold (default 4)
+
+OsmoBSC(config-net-bts)# overpower dl-acch ?
+ <1-4> Overpower value in dB
+OsmoBSC(config-net-bts)# overpower dl-acch 2
+OsmoBSC(config-net-bts)# show running-config
+...
+ overpower dl-acch 2
+ overpower rxqual 4
+...
+OsmoBSC(config-net-bts)# overpower dl-sacch 3
+OsmoBSC(config-net-bts)# show running-config
+...
+ overpower dl-sacch 3
+ overpower rxqual 4
+...
+OsmoBSC(config-net-bts)# overpower dl-facch 4
+OsmoBSC(config-net-bts)# show running-config
+...
+ overpower dl-facch 4
+ overpower rxqual 4
+...
+
+OsmoBSC(config-net-bts)# overpower rxqual ?
+ 0 BER >= 0% (always on)
+ 1 BER >= 0.2%
+ 2 BER >= 0.4%
+ 3 BER >= 0.8%
+ 4 BER >= 1.6% (default)
+ 5 BER >= 3.2%
+ 6 BER >= 6.4%
+ 7 BER >= 12.8%
+OsmoBSC(config-net-bts)# overpower rxqual 0
+OsmoBSC(config-net-bts)# show running-config
+...
+ overpower dl-facch 4
+ overpower rxqual 0
+...
+OsmoBSC(config-net-bts)# overpower rxqual 7
+OsmoBSC(config-net-bts)# show running-config
+...
+ overpower dl-facch 4
+ overpower rxqual 7
+...
+
+OsmoBSC(config-net-bts)# no overpower dl-acch
+OsmoBSC(config-net-bts)# show running-config
+... !overpower