Change in osmo-gsm-tester[master]: tests: dyn_ts_*: Add tests to verify dyn ts with gprs disabled

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Tue May 15 11:52:55 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/9161


Change subject: tests: dyn_ts_*: Add tests to verify dyn ts with gprs disabled
......................................................................

tests: dyn_ts_*: Add tests to verify dyn ts with gprs disabled

Change-Id: If943ae0fb4e56787df02b09dea7387cb13eb9db3
---
M suites/dyn_ts_ipa/mo_mt_call_dyn_ipa.py
A suites/dyn_ts_ipa/mo_mt_call_dyn_ipa_no_gprs.py
M suites/dyn_ts_osmo/mo_mt_call_dyn_osmo.py
A suites/dyn_ts_osmo/mo_mt_call_dyn_osmo_no_gprs.py
4 files changed, 42 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/61/9161/1

diff --git a/suites/dyn_ts_ipa/mo_mt_call_dyn_ipa.py b/suites/dyn_ts_ipa/mo_mt_call_dyn_ipa.py
index 82e357c..4fe4e46 100755
--- a/suites/dyn_ts_ipa/mo_mt_call_dyn_ipa.py
+++ b/suites/dyn_ts_ipa/mo_mt_call_dyn_ipa.py
@@ -16,8 +16,4 @@
     bts.set_trx_phy_channel(0, 6, 'TCH/F_PDCH')
     bts.set_trx_phy_channel(0, 7, 'PDCH')
 
-#FIXME: if we don't enable gprs (gprs none in BSC vty) then dyn chans are broken, see OS#3244
-# Once Fixed, add a new test with following test:
-#call_test_setup_run(bts_setup_cb=my_bts_setup, gprs_enable=False)
-
 call_test_setup_run(bts_setup_cb=my_bts_setup, gprs_enable=True)
diff --git a/suites/dyn_ts_ipa/mo_mt_call_dyn_ipa_no_gprs.py b/suites/dyn_ts_ipa/mo_mt_call_dyn_ipa_no_gprs.py
new file mode 100755
index 0000000..c1349ae
--- /dev/null
+++ b/suites/dyn_ts_ipa/mo_mt_call_dyn_ipa_no_gprs.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python3
+from osmo_gsm_tester.testenv import *
+
+import testlib
+suite.test_import_modules_register_for_cleanup(testlib)
+from testlib import call_test_setup_run
+
+def my_bts_setup(bts):
+    bts.set_num_trx(1)
+    bts.set_trx_phy_channel(0, 0, 'CCCH+SDCCH4')
+    bts.set_trx_phy_channel(0, 1, 'SDCCH8')
+    bts.set_trx_phy_channel(0, 2, 'TCH/F_PDCH')
+    bts.set_trx_phy_channel(0, 3, 'TCH/F_PDCH')
+    bts.set_trx_phy_channel(0, 4, 'TCH/F_PDCH')
+    bts.set_trx_phy_channel(0, 5, 'TCH/F_PDCH')
+    bts.set_trx_phy_channel(0, 6, 'TCH/F_PDCH')
+    bts.set_trx_phy_channel(0, 7, 'TCH/F_PDCH')
+
+# Check that dynamic timeslots work fine with gprs disabled.
+
+call_test_setup_run(bts_setup_cb=my_bts_setup, gprs_enable=False)
diff --git a/suites/dyn_ts_osmo/mo_mt_call_dyn_osmo.py b/suites/dyn_ts_osmo/mo_mt_call_dyn_osmo.py
index 1424da8..b9b7935 100755
--- a/suites/dyn_ts_osmo/mo_mt_call_dyn_osmo.py
+++ b/suites/dyn_ts_osmo/mo_mt_call_dyn_osmo.py
@@ -16,8 +16,4 @@
     bts.set_trx_phy_channel(0, 6, 'TCH/F_TCH/H_PDCH')
     bts.set_trx_phy_channel(0, 7, 'PDCH')
 
-#FIXME: if we don't enable gprs (gprs none in BSC vty) then dyn chans are broken, see OS#3244
-# Once Fixed, add a new test with following test:
-#call_test_setup_run(bts_setup_cb=my_bts_setup, gprs_enable=False)
-
 call_test_setup_run(bts_setup_cb=my_bts_setup, gprs_enable=True)
diff --git a/suites/dyn_ts_osmo/mo_mt_call_dyn_osmo_no_gprs.py b/suites/dyn_ts_osmo/mo_mt_call_dyn_osmo_no_gprs.py
new file mode 100755
index 0000000..d80d27a
--- /dev/null
+++ b/suites/dyn_ts_osmo/mo_mt_call_dyn_osmo_no_gprs.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python3
+from osmo_gsm_tester.testenv import *
+
+import testlib
+suite.test_import_modules_register_for_cleanup(testlib)
+from testlib import call_test_setup_run
+
+def my_bts_setup(bts):
+    bts.set_num_trx(1)
+    bts.set_trx_phy_channel(0, 0, 'CCCH+SDCCH4')
+    bts.set_trx_phy_channel(0, 1, 'SDCCH8')
+    bts.set_trx_phy_channel(0, 2, 'TCH/F_TCH/H_PDCH')
+    bts.set_trx_phy_channel(0, 3, 'TCH/F_TCH/H_PDCH')
+    bts.set_trx_phy_channel(0, 4, 'TCH/F_TCH/H_PDCH')
+    bts.set_trx_phy_channel(0, 5, 'TCH/F_TCH/H_PDCH')
+    bts.set_trx_phy_channel(0, 6, 'TCH/F_TCH/H_PDCH')
+    bts.set_trx_phy_channel(0, 7, 'TCH/F_TCH/H_PDCH')
+
+# Check that dynamic timeslots work fine with gprs disabled.
+
+call_test_setup_run(bts_setup_cb=my_bts_setup, gprs_enable=False)

-- 
To view, visit https://gerrit.osmocom.org/9161
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: If943ae0fb4e56787df02b09dea7387cb13eb9db3
Gerrit-Change-Number: 9161
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180515/10805fd5/attachment.htm>


More information about the gerrit-log mailing list