<p>Holger Freyther has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10687">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add an initial test for the ms_driver<br><br>Some points to discuss:<br><br>* Should modems==0 be allowed to be set?<br>* I should compile/package the mobile and virtphy as well<br>* When executing suites shall we have a way to select only the<br>  virtual/non-virtual ones? A different suites directory?<br><br>Things to make configurable:<br>* IMSI and matching MSISDN ranges (start + count)<br>* Timeouts and number of MS (which should be related)<br><br>Change-Id: I5be2a6b4d3d21bf48625624b9e2cccb33765fe39<br>---<br>A suites/netreg_mass/register_default_mass.py<br>A suites/netreg_mass/suite.conf<br>2 files changed, 38 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/87/10687/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/suites/netreg_mass/register_default_mass.py b/suites/netreg_mass/register_default_mass.py</span><br><span>new file mode 100644</span><br><span>index 0000000..ede2b74</span><br><span>--- /dev/null</span><br><span>+++ b/suites/netreg_mass/register_default_mass.py</span><br><span>@@ -0,0 +1,27 @@</span><br><span style="color: hsl(120, 100%, 40%);">+#!/usr/bin/env python3</span><br><span style="color: hsl(120, 100%, 40%);">+"""</span><br><span style="color: hsl(120, 100%, 40%);">+Run a network registration with a 'massive' amount of MS</span><br><span style="color: hsl(120, 100%, 40%);">+using the ms_driver infrastructure.</span><br><span style="color: hsl(120, 100%, 40%);">+"""</span><br><span style="color: hsl(120, 100%, 40%);">+from osmo_gsm_tester.testenv import *</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+print('use resources...')</span><br><span style="color: hsl(120, 100%, 40%);">+nitb = suite.nitb()</span><br><span style="color: hsl(120, 100%, 40%);">+bts = suite.bts()</span><br><span style="color: hsl(120, 100%, 40%);">+ms_driver = suite.ms_driver()</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+print('start nitb and bts...')</span><br><span style="color: hsl(120, 100%, 40%);">+nitb.bts_add(bts)</span><br><span style="color: hsl(120, 100%, 40%);">+nitb.start()</span><br><span style="color: hsl(120, 100%, 40%);">+bts.start()</span><br><span style="color: hsl(120, 100%, 40%);">+wait(nitb.bts_is_connected, bts)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Configure all MS that the MS driver knows about.</span><br><span style="color: hsl(120, 100%, 40%);">+for ms in ms_driver.ms_subscribers():</span><br><span style="color: hsl(120, 100%, 40%);">+    nitb.subscriber_add(ms)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Run the base test.</span><br><span style="color: hsl(120, 100%, 40%);">+ms_driver.run_test()</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Print stats</span><br><span style="color: hsl(120, 100%, 40%);">+ms_driver.print_stats()</span><br><span>diff --git a/suites/netreg_mass/suite.conf b/suites/netreg_mass/suite.conf</span><br><span>new file mode 100644</span><br><span>index 0000000..a1e1a68</span><br><span>--- /dev/null</span><br><span>+++ b/suites/netreg_mass/suite.conf</span><br><span>@@ -0,0 +1,11 @@</span><br><span style="color: hsl(120, 100%, 40%);">+resources:</span><br><span style="color: hsl(120, 100%, 40%);">+  ip_address:</span><br><span style="color: hsl(120, 100%, 40%);">+  - times: 1</span><br><span style="color: hsl(120, 100%, 40%);">+  bts:</span><br><span style="color: hsl(120, 100%, 40%);">+  - times: 1</span><br><span style="color: hsl(120, 100%, 40%);">+  # TODO: Be able to set the below to 0.</span><br><span style="color: hsl(120, 100%, 40%);">+  modem:</span><br><span style="color: hsl(120, 100%, 40%);">+  - times: 1</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+defaults:</span><br><span style="color: hsl(120, 100%, 40%);">+  timeout: 40s</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10687">change 10687</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10687"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5be2a6b4d3d21bf48625624b9e2cccb33765fe39 </div>
<div style="display:none"> Gerrit-Change-Number: 10687 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Holger Freyther <holger@freyther.de> </div>