aboutsummaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-05-04 16:06:55 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-05-04 16:42:50 +0200
commit0cb4522a92598b6aaf0140088c103ba902781f09 (patch)
tree936bb0994de81b5d688601dd3806f38098b49828 /selftest
parent51cfd8e19570f4ee7726374d739ebda776a5ae7b (diff)
put the example suite in /example, not /selftest/real_suite
Also drop the env file and tweak the README.txt Change-Id: Ieea274dfd6756498b760c18a5852398cfa396b50
Diffstat (limited to 'selftest')
-rw-r--r--selftest/real_suite/README.txt18
-rw-r--r--selftest/real_suite/default-suites.conf1
-rw-r--r--selftest/real_suite/defaults.conf26
-rw-r--r--selftest/real_suite/env4
-rw-r--r--selftest/real_suite/paths.conf3
-rw-r--r--selftest/real_suite/resources.conf80
-rw-r--r--selftest/real_suite/scenarios/octphy.conf3
-rw-r--r--selftest/real_suite/scenarios/sysmo.conf3
-rw-r--r--selftest/real_suite/scenarios/trx.conf3
-rwxr-xr-xselftest/real_suite/suites/sms/mo_mt_sms.py27
-rw-r--r--selftest/real_suite/suites/sms/suite.conf10
11 files changed, 0 insertions, 178 deletions
diff --git a/selftest/real_suite/README.txt b/selftest/real_suite/README.txt
deleted file mode 100644
index f18840a..0000000
--- a/selftest/real_suite/README.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-This a real gsm test suite configured and ready to use.
-The only thing missing is a trial dir containing binaries.
-
-If you have your trial with binary tar archives in ~/my_trial
-you can run the suite for example like this:
-
- . ./env # point your environment at all the right places
- run_once.py ~/my_trial -s sms:trx
-
-This combines the suites/sms test suite with the scenarios/trx choice of
-osmo-bts-trx and runs all tests in the 'sms' suite.
-
-A ./state dir will be created to store the current osmo-gsm-tester state. If
-you prefer not to write to this dir, set up an own configuration pointing at a
-different path (see paths.conf: 'state_dir' and the env file). When there is
-no OSMO_GSM_TESTER_CONF set (from ./env), osmo-gsm-tester will instead look for
-conf files in several locations like ~/.config/osmo-gsm-tester,
-/usr/local/etc/osmo-gsm-tester, /etc/osmo-gsm-tester
diff --git a/selftest/real_suite/default-suites.conf b/selftest/real_suite/default-suites.conf
deleted file mode 100644
index 601076a..0000000
--- a/selftest/real_suite/default-suites.conf
+++ /dev/null
@@ -1 +0,0 @@
-- sms:sysmo
diff --git a/selftest/real_suite/defaults.conf b/selftest/real_suite/defaults.conf
deleted file mode 100644
index 006ff7e..0000000
--- a/selftest/real_suite/defaults.conf
+++ /dev/null
@@ -1,26 +0,0 @@
-nitb:
- net:
- mcc: 901
- mnc: 70
- short_name: osmo-gsm-tester
- long_name: osmo-gsm-tester
- auth_policy: closed
- encryption: a5 0
-
-nitb_bts:
- location_area_code: 23
- base_station_id_code: 63
- stream_id: 255
- osmobsc_bts_type: sysmobts
- trx_list:
- - max_power_red: 0
- arfcn: 868
- timeslot_list:
- - phys_chan_config: CCCH+SDCCH4
- - phys_chan_config: SDCCH8
- - phys_chan_config: TCH/F_TCH/H_PDCH
- - phys_chan_config: TCH/F_TCH/H_PDCH
- - phys_chan_config: TCH/F_TCH/H_PDCH
- - phys_chan_config: TCH/F_TCH/H_PDCH
- - phys_chan_config: TCH/F_TCH/H_PDCH
- - phys_chan_config: TCH/F_TCH/H_PDCH
diff --git a/selftest/real_suite/env b/selftest/real_suite/env
deleted file mode 100644
index 1d9cc0a..0000000
--- a/selftest/real_suite/env
+++ /dev/null
@@ -1,4 +0,0 @@
-OSMO_GSM_TESTER_SRC="$(readlink -f ../../src)"
-export PYTHONPATH="$OSMO_GSM_TESTER_SRC"
-export PATH="$OSMO_GSM_TESTER_SRC:$PATH"
-export OSMO_GSM_TESTER_CONF="$PWD"
diff --git a/selftest/real_suite/paths.conf b/selftest/real_suite/paths.conf
deleted file mode 100644
index bb7316c..0000000
--- a/selftest/real_suite/paths.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-state_dir: './state'
-suites_dir: './suites'
-scenarios_dir: './scenarios'
diff --git a/selftest/real_suite/resources.conf b/selftest/real_suite/resources.conf
deleted file mode 100644
index bb6181f..0000000
--- a/selftest/real_suite/resources.conf
+++ /dev/null
@@ -1,80 +0,0 @@
-# all hardware and interfaces available to this osmo-gsm-tester
-
-nitb_iface:
-- addr: 10.42.42.1
-- addr: 10.42.42.2
-- addr: 10.42.42.3
-
-bts:
-- label: sysmoBTS 1002
- type: osmo-bts-sysmo
- ipa_unit_id: 1
- addr: 10.42.42.114
- band: GSM-1800
-
-- label: octBTS 3000
- type: osmo-bts-octphy
- ipa_unit_id: 5
- addr: 10.42.42.115
- band: GSM-1800
- trx_list:
- - hw_addr: 00:0c:90:32:b5:8a
- net_device: eth0.2342
-
-- label: Ettus B210
- type: osmo-bts-trx
- ipa_unit_id: 6
- addr: 10.42.42.116
- band: GSM-1800
-
-- label: nanoBTS 1900
- type: nanobts
- ipa_unit_id: 1902
- addr: 10.42.42.190
- band: GSM-1900
- trx_list:
- - hw_addr: 00:02:95:00:41:b3
-
-arfcn:
- - arfcn: 512
- band: GSM-1800
- - arfcn: 514
- band: GSM-1800
- - arfcn: 516
- band: GSM-1800
- - arfcn: 518
- band: GSM-1800
- - arfcn: 520
- band: GSM-1800
-
- - arfcn: 540
- band: GSM-1900
- - arfcn: 542
- band: GSM-1900
- - arfcn: 544
- band: GSM-1900
- - arfcn: 546
- band: GSM-1900
- - arfcn: 548
- band: GSM-1900
-
-modem:
-- label: sierra_1
- path: '/sierra_1'
- imsi: '901700000009031'
- ki: '80A37E6FDEA931EAC92FFA5F671EFEAD'
-
-- label: sierra_2
- path: '/sierra_2'
- imsi: '901700000009029'
- ki: '00969E283349D354A8239E877F2E0866'
-
-- label: gobi_0
- path: '/gobi_0'
- imsi: '901700000009030'
- ki: 'BB70807226393CDBAC8DD3439FF54252'
-
-- label: gobi_3
- path: '/sierra_3'
- imsi: '901700000009032'
- ki: '2F70DCA43C45ACB97E947FDD0C7CA30A'
diff --git a/selftest/real_suite/scenarios/octphy.conf b/selftest/real_suite/scenarios/octphy.conf
deleted file mode 100644
index 3a419e8..0000000
--- a/selftest/real_suite/scenarios/octphy.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-resources:
- bts:
- - type: osmo-bts-octphy
diff --git a/selftest/real_suite/scenarios/sysmo.conf b/selftest/real_suite/scenarios/sysmo.conf
deleted file mode 100644
index 624758b..0000000
--- a/selftest/real_suite/scenarios/sysmo.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-resources:
- bts:
- - type: osmo-bts-sysmo
diff --git a/selftest/real_suite/scenarios/trx.conf b/selftest/real_suite/scenarios/trx.conf
deleted file mode 100644
index f1d6d13..0000000
--- a/selftest/real_suite/scenarios/trx.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-resources:
- bts:
- - type: osmo-bts-trx
diff --git a/selftest/real_suite/suites/sms/mo_mt_sms.py b/selftest/real_suite/suites/sms/mo_mt_sms.py
deleted file mode 100755
index 7176197..0000000
--- a/selftest/real_suite/suites/sms/mo_mt_sms.py
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/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/selftest/real_suite/suites/sms/suite.conf b/selftest/real_suite/suites/sms/suite.conf
deleted file mode 100644
index 4a03379..0000000
--- a/selftest/real_suite/suites/sms/suite.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-resources:
- nitb_iface:
- - times: 1
- bts:
- - times: 1
- modem:
- - times: 2
-
-defaults:
- timeout: 60s