aboutsummaryrefslogtreecommitdiffstats
path: root/suites
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-05-04 16:14:26 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-05-04 16:42:51 +0200
commit2831de5790d900c292abddbd3b347424fec37200 (patch)
tree84d4181ddbf1932820acf399f2fed26f079f81da /suites
parent0cb4522a92598b6aaf0140088c103ba902781f09 (diff)
move /example/suites to /suites
/suites will be the definitive GSM tests collection where everyone should contribute. Since we're using /example on our current osmo-gsm-tester setup actually as-is, change paths.conf to point at ../suites. Change-Id: I7a4d0161d3dcb3a0c723b0b96db85dd032cc2159
Diffstat (limited to 'suites')
-rwxr-xr-xsuites/sms/mo_mt_sms.py27
-rw-r--r--suites/sms/suite.conf10
2 files changed, 37 insertions, 0 deletions
diff --git a/suites/sms/mo_mt_sms.py b/suites/sms/mo_mt_sms.py
new file mode 100755
index 0000000..7176197
--- /dev/null
+++ b/suites/sms/mo_mt_sms.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python3
+from osmo_gsm_tester.test import *
+
+print('use resources...')
+nitb = suite.nitb()
+bts = suite.bts()
+ms_mo = suite.modem()
+ms_mt = suite.modem()
+
+print('start nitb and bts...')
+nitb.bts_add(bts)
+nitb.start()
+sleep(1)
+assert nitb.running()
+bts.start()
+
+nitb.subscriber_add(ms_mo)
+nitb.subscriber_add(ms_mt)
+
+ms_mo.connect(nitb)
+ms_mt.connect(nitb)
+print(ms_mo.properties())
+print(ms_mt.properties())
+wait(nitb.subscriber_attached, ms_mo, ms_mt)
+
+sms = ms_mo.sms_send(ms_mt.msisdn)
+wait(ms_mt.sms_was_received, sms)
diff --git a/suites/sms/suite.conf b/suites/sms/suite.conf
new file mode 100644
index 0000000..4a03379
--- /dev/null
+++ b/suites/sms/suite.conf
@@ -0,0 +1,10 @@
+resources:
+ nitb_iface:
+ - times: 1
+ bts:
+ - times: 1
+ modem:
+ - times: 2
+
+defaults:
+ timeout: 60s