Holger Freyther has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/10687 )

Change subject: suites: Add an initial test for the ms_driver
......................................................................

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
---
A suites/nitb_netreg_mass/register_default_mass.py
A suites/nitb_netreg_mass/suite.conf
2 files changed, 35 insertions(+), 0 deletions(-)

Approvals:
  Holger Freyther: Looks good to me, approved
  Jenkins Builder: Verified



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

--
To view, visit https://gerrit.osmocom.org/10687
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I5be2a6b4d3d21bf48625624b9e2cccb33765fe39
Gerrit-Change-Number: 10687
Gerrit-PatchSet: 12
Gerrit-Owner: Holger Freyther <[email protected]>
Gerrit-Reviewer: Holger Freyther <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>

Reply via email to