Pau Espin Pedrol | e07e1b6 | 2018-05-07 16:25:41 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | from osmo_gsm_tester.testenv import * |
| 3 | |
Pau Espin Pedrol | 155a355 | 2018-05-09 11:24:23 +0200 | [diff] [blame] | 4 | import testlib |
| 5 | suite.test_import_modules_register_for_cleanup(testlib) |
Pau Espin Pedrol | e07e1b6 | 2018-05-07 16:25:41 +0200 | [diff] [blame] | 6 | from testlib import call_test_setup_run |
| 7 | |
| 8 | def my_bts_setup(bts): |
| 9 | bts.set_num_trx(1) |
| 10 | bts.set_trx_phy_channel(0, 0, 'CCCH+SDCCH4') |
| 11 | bts.set_trx_phy_channel(0, 1, 'SDCCH8') |
| 12 | bts.set_trx_phy_channel(0, 2, 'TCH/F_PDCH') |
| 13 | bts.set_trx_phy_channel(0, 3, 'TCH/F_PDCH') |
| 14 | bts.set_trx_phy_channel(0, 4, 'TCH/F_PDCH') |
| 15 | bts.set_trx_phy_channel(0, 5, 'TCH/F_PDCH') |
| 16 | bts.set_trx_phy_channel(0, 6, 'TCH/F_PDCH') |
| 17 | bts.set_trx_phy_channel(0, 7, 'PDCH') |
| 18 | |
| 19 | #FIXME: if we don't enable gprs (gprs none in BSC vty) then dyn chans are broken, see OS#3244 |
| 20 | # Once Fixed, add a new test with following test: |
| 21 | #call_test_setup_run(bts_setup_cb=my_bts_setup, gprs_enable=False) |
| 22 | |
| 23 | call_test_setup_run(bts_setup_cb=my_bts_setup, gprs_enable=True) |