Neels Hofmeyr | aea2f2c | 2017-05-18 22:01:59 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | from osmo_gsm_tester.test import * |
| 3 | |
| 4 | hlr = suite.hlr() |
| 5 | bts = suite.bts() |
| 6 | mgcpgw = suite.mgcpgw(bts_ip=bts.remote_addr()) |
| 7 | msc = suite.msc(hlr, mgcpgw) |
| 8 | bsc = suite.bsc(msc) |
| 9 | ms_mo = suite.modem() |
| 10 | ms_mt = suite.modem() |
| 11 | |
| 12 | hlr.start() |
| 13 | msc.start() |
| 14 | mgcpgw.start() |
| 15 | |
| 16 | bsc.bts_add(bts) |
| 17 | bsc.start() |
| 18 | |
| 19 | bts.start() |
| 20 | |
| 21 | hlr.subscriber_add(ms_mo) |
| 22 | hlr.subscriber_add(ms_mt) |
| 23 | |
| 24 | ms_mo.connect(bsc) |
| 25 | ms_mt.connect(bsc) |
Neels Hofmeyr | b801169 | 2017-05-29 03:45:24 +0200 | [diff] [blame] | 26 | |
| 27 | ms_mo.log_info() |
| 28 | ms_mt.log_info() |
| 29 | |
| 30 | print('waiting for modems to attach...') |
Neels Hofmeyr | aea2f2c | 2017-05-18 22:01:59 +0200 | [diff] [blame] | 31 | wait(msc.subscriber_attached, ms_mo, ms_mt) |
| 32 | |
Neels Hofmeyr | b801169 | 2017-05-29 03:45:24 +0200 | [diff] [blame] | 33 | sms = ms_mo.sms_send(ms_mt) |
Neels Hofmeyr | aea2f2c | 2017-05-18 22:01:59 +0200 | [diff] [blame] | 34 | wait(ms_mt.sms_was_received, sms) |