aboutsummaryrefslogtreecommitdiffstats
path: root/suites
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2018-08-29 04:29:56 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2018-11-24 12:46:42 +0000
commit5b84115d22014bd23e9360cc0dc80a677638a5e5 (patch)
tree27f4e0bf61b0d01304457e27be9af7e474271640 /suites
parentbdc18d97e14a12dea1f0a6e1d63ff32573714c4a (diff)
suites: Add an initial test for the ms_driver
Things to make configurable: * IMSI and matching MSISDN ranges (start + count) * Timeouts and number of MS (which should be related) Change-Id: I5be2a6b4d3d21bf48625624b9e2cccb33765fe39
Diffstat (limited to 'suites')
-rw-r--r--suites/nitb_netreg_mass/register_default_mass.py27
-rw-r--r--suites/nitb_netreg_mass/suite.conf8
2 files changed, 35 insertions, 0 deletions
diff --git a/suites/nitb_netreg_mass/register_default_mass.py b/suites/nitb_netreg_mass/register_default_mass.py
new file mode 100644
index 0000000..ede2b74
--- /dev/null
+++ b/suites/nitb_netreg_mass/register_default_mass.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python3
+"""
+Run a network registration with a 'massive' amount of MS
+using the ms_driver infrastructure.
+"""
+from osmo_gsm_tester.testenv import *
+
+print('use resources...')
+nitb = suite.nitb()
+bts = suite.bts()
+ms_driver = suite.ms_driver()
+
+print('start nitb and bts...')
+nitb.bts_add(bts)
+nitb.start()
+bts.start()
+wait(nitb.bts_is_connected, bts)
+
+# Configure all MS that the MS driver knows about.
+for ms in ms_driver.ms_subscribers():
+ nitb.subscriber_add(ms)
+
+# Run the base test.
+ms_driver.run_test()
+
+# Print stats
+ms_driver.print_stats()
diff --git a/suites/nitb_netreg_mass/suite.conf b/suites/nitb_netreg_mass/suite.conf
new file mode 100644
index 0000000..bfb23cd
--- /dev/null
+++ b/suites/nitb_netreg_mass/suite.conf
@@ -0,0 +1,8 @@
+resources:
+ ip_address:
+ - times: 1
+ bts:
+ - times: 1
+
+defaults:
+ timeout: 40s