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
This commit is contained in:
Holger Hans Peter Freyther 2018-08-29 04:29:56 +01:00
parent bdc18d97e1
commit 5b84115d22
2 changed files with 35 additions and 0 deletions

View File

@ -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()

View File

@ -0,0 +1,8 @@
resources:
ip_address:
- times: 1
bts:
- times: 1
defaults:
timeout: 40s