aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-02-06 19:15:01 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-02-18 11:31:10 +0100
commit7da7a496080dc9fe10dbbbe7960998ea0ec30f0e (patch)
treee2f0e3d92c2ca73fcdf393a42e9086d650cad311
parent4f3cc9e7e47f9e22cbe0441099d872f4c57ebb5c (diff)
WIP: ttcn3: Add test to reproduce high channel loadpespin/bts-perf
-rwxr-xr-xttcn3/suites/ttcn3_bts_tests/highchanload_tchh.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/ttcn3/suites/ttcn3_bts_tests/highchanload_tchh.py b/ttcn3/suites/ttcn3_bts_tests/highchanload_tchh.py
new file mode 100755
index 0000000..6ec4767
--- /dev/null
+++ b/ttcn3/suites/ttcn3_bts_tests/highchanload_tchh.py
@@ -0,0 +1,50 @@
+#!/usr/bin/env python3
+import os
+
+from osmo_gsm_tester.testenv import *
+import testlib
+suite.test_import_modules_register_for_cleanup(testlib)
+from testlib import run_ttcn3
+
+ttcn3_test_execute="BTS_Tests_perf.TC_pespin"
+ttcn3_test_extra_module_params="BTS_Tests_perf.mp_wait_time := 11.0"
+
+hlr_dummy = suite.hlr()
+mgw_dummy = suite.mgw()
+stp_dummy = suite.stp()
+msc_dummy = suite.msc(hlr_dummy, mgw_dummy, stp_dummy)
+ggsn_dummy = suite.ggsn()
+sgsn_dummy = suite.sgsn(hlr_dummy, ggsn_dummy)
+bsc = suite.bsc(msc_dummy, mgw_dummy, stp_dummy)
+bts = suite.bts()
+osmocon = suite.osmocon()
+
+bts.set_num_trx(1)
+bts.set_trx_phy_channel(0, 0, 'CCCH+SDCCH4')
+bts.set_trx_phy_channel(0, 1, 'TCH/H')
+bts.set_trx_phy_channel(0, 2, 'TCH/H')
+bts.set_trx_phy_channel(0, 3, 'TCH/H')
+bts.set_trx_phy_channel(0, 4, 'TCH/H')
+bts.set_trx_phy_channel(0, 5, 'TCH/H')
+bts.set_trx_phy_channel(0, 6, 'TCH/H')
+bts.set_trx_phy_channel(0, 7, 'TCH/H')
+
+print('Starting CNI')
+hlr_dummy.start()
+stp_dummy.start()
+msc_dummy.start()
+mgw_dummy.start()
+
+nat_rsl_ip = suite.ip_address().get('addr')
+bsc.set_rsl_ip(nat_rsl_ip)
+bsc.bts_add(bts)
+sgsn_dummy.bts_add(bts)
+
+bsc.start()
+bts.start(keepalive=True)
+
+print('Starting osmocon')
+osmocon.start()
+
+testdir = os.path.dirname(os.path.realpath(__file__))
+run_ttcn3(suite, test, testdir, bts, osmocon, nat_rsl_ip, ttcn3_test_execute, ttcn3_test_extra_module_params)