Skip to content

Changes

Started by Pau Espin Pedrol
Started 5 yr 9 mo ago
Took 1.5 sec on admin2-deb9build
suites/gprs/: beautify output result of ping tests

Print ping output at the end and replace the whole test stdout report
with ping execution.

Change-Id: I90001ddc6bc1145ac9d115aee762f4f3500e8dc8
Pau Espin Pedrol at
amarisoft_rf_driver_temp: fix tx time offset for ZMQ driver

Change-Id: Icee282837e62e02a17b93efba4c22756efa2a5d3
Pau Espin Pedrol at
amarisoft_enb: add handling of num_cells modifier

the num_cells modifier allows to create multiple cells in a single enb
both cells are by default configured for CA

Change-Id: Ie9f16ce06ee56002c01097f2d338278f09ea4337
Pau Espin Pedrol at
srsue.conf.tmpl: fix the configuration of UE params for carrier aggregation

the num_carriers is parsed as a string in the conf dict and therefore
needs to converted to int before matching

also changed the num_carriers to be of type UINT

Change-Id: I1386812d32e1181ba666720bbb875bf9bbce0f51
Pau Espin Pedrol at
contrib: build amarisoft: Set trx_zmq.so RPATH to point to copied dependency libsrslte_rf.so

In the ENB case it's not really required since osmo-gsm-tester makes use
of LD_LIBRARY_PATH. However, since the UE is potentially run with
capabilitites to create tunnels and alike, LD_LIBRARY_PATH cannot be
used and lteue will fail to load trx_zmq.so (because it cannot find its
dependency libsrslte_rf.so).

Change-Id: Ifcbc6ed1c4c465b4cfab4c5689cde44624095f29
Pau Espin Pedrol at
templates: Improve cs7 config in osmo-{bsc,msc}

Change-Id: I0aa0057c85e606d45e67d01b818db7549033bdbd
Pau Espin Pedrol at
amarisoftue.cfg.tmpl: fix UE bandwidth/rate config and power on automatically

Change-Id: I2d63055d0648a1758905fd277c20edaeec8f9b85
Pau Espin Pedrol at
enb: add measurement modifier to scenario files

this commit adds basic support for configuring measurements in the
eNB config. It currently support A1, A2, and A3 events.
By default UE measurements are turned off and need to be enabled by
configuring an event with:

+mod-enb-meas-event@{name},{report_type},{value},{hysterisis},{time to trigger}

For example one can update the a2 and a3 event with:

+mod-enb-meas-event@a2,rsrq,-40,2,480+mod-enb-meas-event@a3,rsrp,6,1,512

Change-Id: Ia7657be2396886840570bc41645450a268b4cfff
andre at
Move suites/ dir inside example/

example/paths.conf and documentation are updated accordingly.

Test suites should have been moved a long time ago, since the they are
user or setup-specific based on what needs to be tested.

Change-Id: I154b19979b545deba8b232b60172903f63fd9e28
suites/4g/ping.py example/suites/nitb_debug/error.py suites/gprs/iperf3.py suites/dynts/switch_tch_pdch.py suites/gprs/suite.conf suites/gprs/cs_paging_gprs_active.py example/suites/smpp/esme_connect_policy_closed.py suites/debug/suite.conf example/suites/nitb_debug/pass.py example/suites/nitb_netreg/register_default.py suites/dynts/suite.conf suites/4g/iperf3_dl.py example/suites/nitb_netreg/register.py example/suites/nitb_ussd/suite.conf example/suites/nitb_debug/fail.py suites/nitb_smpp/esme_connect_policy_closed.py example/suites/ussd/suite.conf suites/gprs/iperf3m4.py suites/nitb_debug/pass.py suites/gprs/lib/testlib.py suites/voice/suite.conf example/suites/4g/ping.py suites/sms/suite.conf example/suites/nitb_debug/suite.conf example/suites/gprs/ping_idle_ping.py example/suites/nitb_smpp/esme_ms_sms_transaction.py suites/gprs/ping.py example/suites/encryption/lib/testlib.py suites/nitb_debug/fail.py suites/voice/mo_mt_call.py example/suites/nitb_netreg_mass/suite.conf example/suites/voice/lib/testlib.py doc/manuals/chapters/config.adoc example/suites/nitb_sms/suite.conf suites/smpp/esme_connect_policy_closed.py example/suites/nitb_smpp/esme_connect_policy_acceptall.py example/suites/4g/suite.conf suites/encryption/register_a5_1_authreq.py example/suites/smpp/esme_connect_policy_acceptall.py suites/smpp/esme_ms_sms_storeforward.py example/suites/debug/interactive.py example/suites/nitb_netreg_mass/register_default_mass.py suites/4g/suite.conf example/suites/gprs/iperf3m4.py suites/nitb_smpp/esme_ms_sms_transaction.py suites/debug/interactive.py suites/nitb_sms/suite.conf suites/sms/mo_mt_sms.py suites/nitb_netreg/register.py suites/nitb_netreg_mass/suite.conf example/suites/nitb_debug/interactive.py suites/nitb_debug/fail_raise.py example/suites/voice/mo_mt_call_osmux.py suites/4g/iperf3_ul.py example/suites/nitb_netreg/suite.conf suites/nitb_smpp/esme_ms_sms_storeforward.py example/suites/nitb_sms/mo_mt_sms.py suites/nitb_netreg/register_default.py suites/nitb_netreg_mass/register_default_mass.py suites/nitb_smpp/suite.conf example/suites/smpp/suite.conf suites/encryption/register_a5_3_authreq.py example/suites/nitb_debug/fail_raise.py suites/nitb_debug/suite.conf suites/ussd/suite.conf example/suites/dynts/switch_tch_pdch.py suites/nitb_smpp/esme_connect_policy_acceptall.py suites/smpp/esme_ms_sms_transaction.py example/suites/nitb_ussd/assert_extension.py suites/smpp/esme_connect_policy_acceptall.py example/suites/gprs/cs_paging_gprs_active.py example/suites/gprs/iperf3.py suites/ussd/assert_extension.py example/paths.conf example/suites/gprs/suite.conf suites/voice/lib/testlib.py example/suites/nitb_smpp/suite.conf example/suites/encryption/register_a5_0_authopt.py example/suites/encryption/register_a5_0_authreq.py example/suites/debug/suite.conf suites/nitb_netreg/suite.conf suites/encryption/lib/testlib.py example/suites/gprs/ping.py suites/encryption/register_a5_0_authreq.py suites/nitb_ussd/suite.conf suites/voice/mo_mt_call_osmux.py example/suites/ussd/assert_extension.py suites/nitb_ussd/assert_extension.py suites/smpp/suite.conf suites/nitb_debug/interactive.py example/suites/sms/mo_mt_sms.py suites/nitb_sms/mo_mt_sms.py example/suites/sms/suite.conf example/suites/smpp/esme_ms_sms_transaction.py example/suites/4g/iperf3_dl.py suites/encryption/suite.conf suites/gprs/ping_idle_ping.py doc/manuals/chapters/install.adoc example/suites/encryption/register_a5_3_authreq.py suites/nitb_debug/error.py suites/encryption/register_a5_0_authopt.py example/suites/4g/iperf3_ul.py example/suites/encryption/register_a5_1_authreq.py example/suites/encryption/suite.conf example/suites/nitb_smpp/esme_ms_sms_storeforward.py example/suites/voice/mo_mt_call.py example/suites/dynts/suite.conf example/suites/voice/suite.conf example/suites/nitb_smpp/esme_connect_policy_closed.py example/suites/gprs/lib/testlib.py example/suites/smpp/esme_ms_sms_storeforward.py
Pau Espin Pedrol at
amarisoft_ue: fix UHD support

the Amarisoft UE seems to be only working with UHD when the bandwidth
param is provided. It seems the set_bandwidth() API is used.

Change-Id: I3f20a5a8ca80c63374f0ad500fd2794e2dc45479
andre at
srs/amarisoft{ue,enb}: Fix b200 specific rf_dev_args

Commit 12ae6d79a5b53a213f619999ef0230c1dae88bb7 switched the rf_dev_type
to be in lowercase but forgot to change these conditions.

Change-Id: I91d3877381b4e6343dc4aa0465e699341ed6648d
Pau Espin Pedrol at
utils/bin: Support passing several bin files to setcap helper scripts

Change-Id: Ifa43f895ae0796d086f35778263aaba07f2e1b7a
Pau Espin Pedrol at
amarisoft_ue: Implement data plane

Use the ifup script to set up the netns + configure the tun device
created by lteue. Use it also as a hook to know when the UE is attached.
Since tun setup is done by arch-optimized lte-avx(2) binaries, we also
need to give capabilitites to them (instead of allowing inheritance of
caps in general in the setcap script).

Change-Id: I1e228b1296eac8e4cb183c2faa735b0468abe124
Pau Espin Pedrol at
pcu_{sysmo,oc2g}: Inherit from pcu abstract class

For some reason these classes were still not inheriting from the base
class (probably because it was added after they existed) and they
started failing after recent changes which presumed they where already
inheriting.

Change-Id: I88217baf490ec45373d0743585377ed2639a8cfd
Pau Espin Pedrol at
bts_oc2g: Fix missing import remote

Change-Id: I318683b8dc6215f5bf863cfb1581e2c3bfa05621
Pau Espin Pedrol at
bts_oc2g: Fix ready_for_pcu() waiting forever

Change-Id: Id33e527591164b87d1e14b7922247b726267ad6e
Pau Espin Pedrol at
Get rid of install top directory

Some content there is out of date, or should be mvoed to utils/ with the
rest of installable stuff.

Change-Id: I17ee94b175deb88faff71e7788c482093693f8a8
Pau Espin Pedrol at
Move example/ and ttcn3/ to sysmocom/ and sysmocom/ttcn3

This content is mostly specific to sysmocom's setup (thought it can
still be re-used by other people if willing to).

symlinks in ttcn3/ pointing to example/ are redone to point to
sysmocom/.

Change-Id: I364e0859c0851b9167907a4d948b659a0f6a19fb
example/scenarios/cfg-codec-fr2.conf sysmocom/scenarios/cfg-codec-fr1.conf sysmocom/scenarios/cfg-srs-enable-pcap.conf example/scenarios/amarisoftue-rftype@.conf sysmocom/scenarios/mod-enb-meas-event@.conf sysmocom/suites/gprs/suite.conf example/scenarios/mod-bts0-egprs.conf example/scenarios/sysmo.conf sysmocom/suites/gprs/iperf3m4.py sysmocom/suites/voice/lib/testlib.py sysmocom/ttcn3/suites/ttcn3_bts_tests/suite.conf example/scenarios/trx-lms-limenet-micro.conf sysmocom/suites/nitb_smpp/esme_connect_policy_acceptall.py example/scenarios/mod-bts0-ts-tchh.conf example/scenarios/mod-bts0-chanallocdescend.conf example/scenarios/mod-bts0-trxdversion0.conf sysmocom/scenarios/band-1800.conf sysmocom/suites/sms/suite.conf example/suites/4g/iperf3_ul.py example/suites/nitb_smpp/esme_ms_sms_storeforward.py sysmocom/ttcn3/resources.conf.prod example/scenarios/mod-srsue-airplane_mode_sim@.conf example/scenarios/srsenb-rftype@.conf example/suites/nitb_ussd/assert_extension.py sysmocom/suites/gprs/lib/testlib.py ttcn3/README.txt sysmocom/scenarios/cfg-epc-qci@.conf example/suites/gprs/ping.py sysmocom/suites/debug/suite.conf sysmocom/suites/nitb_smpp/esme_ms_sms_storeforward.py sysmocom/suites/smpp/suite.conf example/scenarios/cfg-codec-fr-any.conf example/suites/sms/mo_mt_sms.py example/scenarios/mod-bts0-dynts67-ipa-compat-nanobts.conf sysmocom/scenarios/nanobts.conf example/suites/nitb_debug/error.py ttcn3/scenarios/sysmo.conf sysmocom/suites/nitb_debug/pass.py sysmocom/suites/encryption/suite.conf sysmocom/scenarios/srsue-rftype@.conf sysmocom/scenarios/mod-bts0-dynts67-osmo.conf sysmocom/suites/smpp/esme_connect_policy_acceptall.py example/scenarios/cipher-a51.conf example/scenarios/mod-bts0-dynts-osmo.conf sysmocom/suites/gprs/iperf3.py sysmocom/scenarios/cipher-a50.conf sysmocom/ttcn3/scenarios/trx.conf sysmocom/scenarios/trx-lms.conf example/scenarios/band-1800.conf example/scenarios/cfg-amarisoft-license@.conf sysmocom/scenarios/mod-enb-nprb@.conf sysmocom/scenarios/mod-bts0-dynts-ipa.conf example/suites/ussd/assert_extension.py ttcn3/resources.conf.rnd sysmocom/suites/encryption/register_a5_1_authreq.py example/suites/nitb_netreg/register_default.py sysmocom/scenarios/mfeature-gprs.conf example/suites/voice/lib/testlib.py example/scenarios/trx-sysmocell5000.conf sysmocom/ttcn3/scenarios/sysmo.conf example/scenarios/srsue-rftype@.conf example/suites/encryption/register_a5_0_authopt.py sysmocom/suites/nitb_ussd/suite.conf sysmocom/scenarios/mod-srsue-airplane_mode_sim@.conf example/scenarios/cfg-srs-enable-pcap.conf sysmocom/suites/nitb_netreg_mass/register_default_mass.py sysmocom/ttcn3/default-suites.conf example/scenarios/cfg-codec-fr3.conf example/suites/nitb_netreg/suite.conf sysmocom/README.txt sysmocom/suites/dynts/suite.conf example/suites/smpp/suite.conf sysmocom/scenarios/mod-bts0-ts-tchf.conf sysmocom/scenarios/mod-bts0-numtrx2.conf sysmocom/suites/4g/ping.py example/suites/gprs/iperf3.py example/suites/voice/suite.conf sysmocom/ttcn3/resources.conf.rnd example/suites/dynts/switch_tch_pdch.py example/suites/ussd/suite.conf sysmocom/scenarios/mod-bts0-trxdversion0.conf sysmocom/suites/nitb_debug/suite.conf example/scenarios/oc2g.conf sysmocom/ttcn3/paths.conf sysmocom/scenarios/mod-bts0-egprs.conf sysmocom/suites/encryption/register_a5_0_authopt.py sysmocom/suites/nitb_netreg/register.py sysmocom/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py sysmocom/scenarios/oc2g.conf example/scenarios/amarisoftenb-rftype@.conf sysmocom/scenarios/band-900.conf sysmocom/ttcn3/jenkins-run.sh example/suites/debug/interactive.py example/suites/dynts/suite.conf sysmocom/resources.conf.virtual sysmocom/suites/nitb_smpp/esme_connect_policy_closed.py example/scenarios/mod-bts0-dynts-ipa.conf example/suites/nitb_debug/suite.conf example/suites/nitb_netreg_mass/register_default_mass.py example/scenarios/band-1900.conf sysmocom/scenarios/trx-b200.conf example/scenarios/trx-lms.conf sysmocom/suites/ussd/assert_extension.py .gitignore example/scenarios/cfg-codec-hr3.conf example/suites/smpp/esme_ms_sms_transaction.py example/suites/sms/suite.conf example/scenarios/mod-modem-args@.conf example/suites/encryption/suite.conf example/README.txt sysmocom/ttcn3/scenarios/oc2g.conf sysmocom/scenarios/mod-bts0-ts-tchh.conf example/scenarios/mod-bts0-numtrx2.conf sysmocom/suites/encryption/register_a5_0_authreq.py sysmocom/ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl sysmocom/scenarios/cfg-amarisoft-license@.conf example/scenarios/mod-srsue-ncarriers@.conf sysmocom/scenarios/sysmo.conf sysmocom/scenarios/trx-lms-limenet-micro.conf sysmocom/suites/nitb_debug/error.py sysmocom/default-suites.conf example/suites/voice/mo_mt_call.py ttcn3/defaults.conf sysmocom/suites/nitb_smpp/esme_ms_sms_transaction.py example/resources.conf.rnd example/scenarios/band-900.conf ttcn3/jenkins-run.sh sysmocom/scenarios/cfg-codec-hr1.conf sysmocom/suites/nitb_sms/mo_mt_sms.py sysmocom/scenarios/cfg-codec-fr3.conf example/suites/voice/mo_mt_call_osmux.py ttcn3/default-suites.conf ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py sysmocom/scenarios/mod-bts0-dynts67-ipa.conf ttcn3/scenarios/oc2g.conf example/suites/nitb_netreg_mass/suite.conf ttcn3/suites/ttcn3_bts_tests/scripts/run_ttcn3_docker.sh example/suites/debug/suite.conf example/suites/gprs/iperf3m4.py sysmocom/suites/nitb_ussd/assert_extension.py sysmocom/suites/voice/suite.conf sysmocom/scenarios/cipher-a51.conf example/suites/nitb_smpp/esme_connect_policy_acceptall.py sysmocom/suites/4g/iperf3_ul.py example/resources.conf.prod example/scenarios/cfg-codec-hr1.conf sysmocom/suites/gprs/ping.py sysmocom/scenarios/mod-bts0-dynts67-ipa-compat-nanobts.conf example/suites/gprs/lib/testlib.py sysmocom/scenarios/mod-enb-txmode@.conf sysmocom/ttcn3/defaults.conf example/scenarios/mfeature-gprs.conf example/suites/gprs/ping_idle_ping.py sysmocom/suites/voice/mo_mt_call_osmux.py sysmocom/scenarios/cfg-iperf3-time@.conf example/suites/smpp/esme_connect_policy_acceptall.py sysmocom/suites/encryption/lib/testlib.py sysmocom/scenarios/cfg-codec-hr3.conf example/suites/nitb_smpp/esme_connect_policy_closed.py example/scenarios/cipher-a50.conf sysmocom/suites/gprs/cs_paging_gprs_active.py example/scenarios/mod-bts0-ts-tchf.conf sysmocom/scenarios/mod-modem-args@.conf example/suites/nitb_debug/fail_raise.py sysmocom/ttcn3/suites/ttcn3_bts_tests/scripts/run_ttcn3_docker.sh example/scenarios/cfg-iperf3-time@.conf sysmocom/scenarios/cfg-epc-type@.conf example/suites/gprs/cs_paging_gprs_active.py sysmocom/suites/nitb_netreg_mass/suite.conf example/suites/nitb_sms/suite.conf ttcn3/suites/ttcn3_bts_tests/scripts/BTS_Tests.cfg.tmpl example/scenarios/mod-enb-nprb@.conf sysmocom/suites/encryption/register_a5_3_authreq.py sysmocom/scenarios/band-1900.conf example/scenarios/trx-b200.conf sysmocom/scenarios/mod-enb-args@.conf ttcn3/scenarios/trx.conf sysmocom/scenarios/mod-enb-ncells@.conf sysmocom/suites/debug/interactive.py ttcn3/resources.conf.prod example/suites/nitb_smpp/suite.conf example/scenarios/mod-bts0-dynts67-osmo.conf example/suites/4g/iperf3_dl.py sysmocom/suites/4g/suite.conf sysmocom/defaults.conf example/scenarios/octphy.conf sysmocom/scenarios/amarisoftue-rftype@.conf sysmocom/suites/nitb_debug/interactive.py example/paths.conf example/scenarios/cfg-epc-type@.conf example/scenarios/trx-umtrx.conf sysmocom/ttcn3/README.txt sysmocom/suites/nitb_debug/fail_raise.py sysmocom/scenarios/mod-bts0-chanallocdescend.conf sysmocom/scenarios/srsenb-rftype@.conf example/default-suites.conf example/suites/nitb_debug/pass.py sysmocom/suites/smpp/esme_connect_policy_closed.py example/scenarios/cfg-codec-fr1.conf sysmocom/scenarios/mod-bts0-dynts-osmo.conf example/suites/nitb_debug/fail.py sysmocom/scenarios/amarisoftenb-rftype@.conf sysmocom/scenarios/cfg-codec-fr2.conf example/suites/nitb_ussd/suite.conf example/defaults.conf example/suites/smpp/esme_ms_sms_storeforward.py example/scenarios/mod-enb-args@.conf example/scenarios/nanobts.conf sysmocom/scenarios/octphy.conf ttcn3/suites/ttcn3_bts_tests/suite.conf sysmocom/suites/gprs/ping_idle_ping.py sysmocom/scenarios/trx-umtrx.conf example/suites/gprs/suite.conf sysmocom/suites/ussd/suite.conf sysmocom/suites/dynts/switch_tch_pdch.py sysmocom/suites/smpp/esme_ms_sms_storeforward.py example/scenarios/mod-enb-ncells@.conf sysmocom/paths.conf sysmocom/suites/nitb_sms/suite.conf sysmocom/suites/nitb_debug/fail.py example/suites/encryption/lib/testlib.py example/suites/smpp/esme_connect_policy_closed.py sysmocom/resources.conf.rnd sysmocom/scenarios/trx-sysmocell5000.conf example/suites/nitb_netreg/register.py example/suites/nitb_smpp/esme_ms_sms_transaction.py example/suites/encryption/register_a5_0_authreq.py example/suites/4g/suite.conf sysmocom/suites/sms/mo_mt_sms.py example/resources.conf.virtual sysmocom/suites/nitb_smpp/suite.conf example/suites/encryption/register_a5_3_authreq.py sysmocom/resources.conf.prod example/scenarios/mod-enb-txmode@.conf ttcn3/paths.conf sysmocom/suites/voice/mo_mt_call.py sysmocom/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py example/suites/4g/ping.py sysmocom/scenarios/mod-srsue-ncarriers@.conf sysmocom/suites/nitb_netreg/register_default.py example/suites/nitb_debug/interactive.py example/scenarios/cfg-epc-qci@.conf example/suites/encryption/register_a5_1_authreq.py ttcn3/suites/ttcn3_bts_tests/lib/testlib.py example/scenarios/mod-bts0-dynts67-ipa.conf sysmocom/suites/4g/iperf3_dl.py sysmocom/scenarios/trx.conf example/scenarios/mod-enb-meas-event@.conf sysmocom/scenarios/cfg-codec-fr-any.conf sysmocom/suites/nitb_netreg/suite.conf example/suites/nitb_sms/mo_mt_sms.py sysmocom/suites/smpp/esme_ms_sms_transaction.py example/scenarios/trx.conf
Pau Espin Pedrol at
Introduce doc/examples/ directory

It contains simple usual setups to get started with osmo-gsm-tester,
such as creating a 4G network using srsLTE or a 2G network using the
osmocom stack (+ ofono modems).

Change-Id: I55d5b1152da201799af21a77ef6c562f97bd94fc
Pau Espin Pedrol at
Create core directory to contain most of code not in object classes used by tests

Change-Id: I9aec6c55ccd71894182057d36e0025b69925d314
src/osmo_gsm_tester/ms_srs.py src/osmo_gsm_tester/osmocon.py src/osmo_gsm_tester/enb.py src/osmo_gsm_tester/core/remote.py src/osmo_gsm_tester/powersupply_sispm.py selftest/config_test.py src/osmo_gsm_tester/bts_oc2g.py src/osmo_gsm_tester/util.py src/osmo_gsm_tester/powersupply.py src/osmo_gsm_tester/pcu_osmo.py selftest/suite_test.py src/osmo_gsm_tester/epc_srs.py src/osmo_gsm_tester/core/__init__.py src/osmo_gsm_tester/pcu_oc2g.py src/osmo_gsm_tester/mgcpgw_osmo.py src/osmo_gsm_tester/core/log.py src/osmo_ms_driver/__main__.py selftest/template_test.py src/osmo_gsm_tester/pcu.py src/osmo_gsm_tester/modem.py src/osmo_gsm_tester/run_node.py src/osmo_gsm_tester/bsc_osmo.py src/osmo_gsm_tester/suite.py src/osmo_gsm_tester/esme.py src/osmo_gsm_tester/stp_osmo.py src/osmo_gsm_tester/bts_octphy.py src/osmo_ms_driver/starter.py src/osmo_gsm_tester/iperf3.py src/osmo_gsm_tester/pcap_recorder.py src/osmo_gsm_tester/pcu_sysmo.py src/osmo_gsm_tester/bts_osmo.py selftest/log_test.py src/osmo_gsm_tester/bts_osmovirtual.py src/osmo_gsm_tester/mgw_osmo.py selftest/lock_test_help.py src/osmo_gsm_tester/core/schema.py src/osmo_gsm_tester/hlr_osmo.py src/osmo_gsm_tester/core/process.py src/osmo_gsm_tester/schema.py src/osmo_gsm_tester/enb_srs.py src/osmo_gsm_tester/core/util.py src/osmo_gsm_tester/bts.py src/osmo-gsm-tester.py src/osmo_gsm_tester/nitb_osmo.py src/osmo_gsm_tester/config.py src/osmo_gsm_tester/powersupply_intellinet.py selftest/util_test.py src/osmo_gsm_tester/enb_amarisoft.py src/osmo_gsm_tester/log.py src/osmo_gsm_tester/event_loop.py selftest/trial_test.py src/osmo_gsm_tester/core/config.py src/osmo_gsm_tester/bts_sysmo.py selftest/process_test.py selftest/resource_test.py src/osmo_gsm_tester/ggsn_osmo.py src/osmo_ms_driver/simple_loop.py src/osmo_ms_driver/event_server.py src/osmo_gsm_tester/epc_amarisoft.py src/osmo_gsm_tester/osmo_ctrl.py src/osmo_gsm_tester/sgsn_osmo.py src/osmo_gsm_tester/smsc.py src/osmo_gsm_tester/bts_osmotrx.py src/osmo_gsm_tester/ms_driver.py src/osmo_gsm_tester/template.py src/osmo_gsm_tester/bts_nanobts.py src/osmo_gsm_tester/resource.py src/osmo_gsm_tester/epc.py src/osmo_gsm_tester/core/template.py src/osmo_ms_driver/test_support.py src/osmo_gsm_tester/process.py src/osmo_gsm_tester/test.py src/osmo_gsm_tester/core/event_loop.py src/osmo_gsm_tester/ms_amarisoft.py src/osmo_gsm_tester/trial.py src/osmo_gsm_tester/msc_osmo.py selftest/_prep.py src/osmo_gsm_tester/remote.py src/osmo_gsm_tester/ms.py
Pau Espin Pedrol at
Move object classes used by tests into obj/ subdir

Change-Id: I0b2963cf00acd1f9036dca2e87aa3b87a0f8066d
src/osmo_gsm_tester/obj/ms_driver.py src/osmo_gsm_tester/bts_oc2g.py src/osmo_gsm_tester/epc.py src/osmo_gsm_tester/obj/ggsn_osmo.py src/osmo_gsm_tester/ms_srs.py src/osmo_gsm_tester/obj/bts_osmo.py src/osmo_gsm_tester/smsc.py src/osmo_gsm_tester/obj/nitb_osmo.py src/osmo_gsm_tester/ms_amarisoft.py src/osmo_gsm_tester/bts_osmotrx.py src/osmo_gsm_tester/obj/iperf3.py src/osmo_gsm_tester/msc_osmo.py src/osmo_gsm_tester/run_node.py src/osmo_gsm_tester/bts_osmo.py src/osmo_gsm_tester/obj/msc_osmo.py src/osmo_gsm_tester/sms.py src/osmo_gsm_tester/osmo_ctrl.py src/osmo_gsm_tester/enb.py src/osmo_gsm_tester/iperf3.py src/osmo_gsm_tester/obj/ms_amarisoft.py src/osmo_gsm_tester/obj/pcap_recorder.py src/osmo_gsm_tester/obj/powersupply.py src/osmo_gsm_tester/obj/epc_srs.py src/osmo_gsm_tester/pcu.py src/osmo_gsm_tester/pcu_sysmo.py src/osmo_gsm_tester/enb_amarisoft.py src/osmo_gsm_tester/enb_srs.py src/osmo_gsm_tester/obj/bts_nanobts.py src/osmo_gsm_tester/powersupply_sispm.py src/osmo_gsm_tester/obj/pcu_oc2g.py src/osmo_gsm_tester/obj/esme.py src/osmo_gsm_tester/obj/osmocon.py src/osmo_gsm_tester/mgcpgw_osmo.py src/osmo_gsm_tester/obj/pcu_sysmo.py src/osmo_gsm_tester/bsc_osmo.py src/osmo_gsm_tester/obj/smsc.py src/osmo_gsm_tester/obj/enb.py src/osmo_gsm_tester/test.py src/osmo_gsm_tester/epc_amarisoft.py src/osmo_gsm_tester/suite.py src/osmo_gsm_tester/ms_driver.py src/osmo_gsm_tester/obj/run_node.py src/osmo_gsm_tester/obj/sms.py src/osmo_gsm_tester/obj/bts_osmovirtual.py src/osmo_gsm_tester/obj/sgsn_osmo.py src/osmo_gsm_tester/bts.py src/osmo_gsm_tester/obj/powersupply_intellinet.py src/osmo_gsm_tester/obj/mgcpgw_osmo.py src/osmo_gsm_tester/pcu_oc2g.py src/osmo_gsm_tester/epc_srs.py src/osmo_gsm_tester/obj/epc.py src/osmo_gsm_tester/obj/bts.py src/osmo_gsm_tester/hlr_osmo.py src/osmo_gsm_tester/obj/ms.py src/osmo_gsm_tester/bts_nanobts.py src/osmo_gsm_tester/bts_octphy.py src/osmo_gsm_tester/obj/bts_sysmo.py src/osmo_gsm_tester/obj/epc_amarisoft.py src/osmo_gsm_tester/obj/pcu_osmo.py src/osmo_gsm_tester/modem.py src/osmo_gsm_tester/pcap_recorder.py src/osmo_gsm_tester/obj/bts_osmotrx.py src/osmo_gsm_tester/obj/hlr_osmo.py src/osmo_gsm_tester/obj/bsc_osmo.py src/osmo_gsm_tester/obj/enb_amarisoft.py src/osmo_gsm_tester/obj/pcu.py src/osmo_gsm_tester/mgw_osmo.py src/osmo_gsm_tester/sgsn_osmo.py src/osmo_gsm_tester/bts_sysmo.py src/osmo_gsm_tester/obj/stp_osmo.py src/osmo_gsm_tester/obj/bts_oc2g.py src/osmo_gsm_tester/ms.py src/osmo_gsm_tester/obj/osmo_ctrl.py src/osmo_gsm_tester/resource.py src/osmo_gsm_tester/bts_osmovirtual.py src/osmo_gsm_tester/obj/modem.py src/osmo_gsm_tester/pcu_osmo.py src/osmo_gsm_tester/obj/mgw_osmo.py src/osmo_gsm_tester/powersupply_intellinet.py selftest/sms_test.py src/osmo_gsm_tester/obj/ms_osmo_mobile.py src/osmo_gsm_tester/stp_osmo.py src/osmo_gsm_tester/obj/ms_srs.py src/osmo_gsm_tester/obj/bts_octphy.py src/osmo_gsm_tester/ggsn_osmo.py src/osmo_gsm_tester/obj/enb_srs.py src/osmo_gsm_tester/osmocon.py src/osmo_gsm_tester/esme.py src/osmo_gsm_tester/nitb_osmo.py src/osmo_gsm_tester/ms_osmo_mobile.py src/osmo_gsm_tester/powersupply.py src/osmo_gsm_tester/obj/powersupply_sispm.py
Pau Espin Pedrol at
Rename modem.py to ms_ofono.py

Change-Id: I050970986b0b3fbc23b756c5b7c524cb8b7c1327
Pau Espin Pedrol at
iperf3: Avoid using --logfile arg

Some older iperf3 versions don't support the --logfile arg. Let's
instead parse the json from stdout. Old --logfile behavior is left in
code but disabled since it's a nicer (less hacky) way to get results,
because parsing from stdout means we need to avoid reading some content.

Change-Id: Ia1b7fa4dae074089878963aeddf0006aea68e31f
Pau Espin Pedrol at
enb_amarisoft: fix enb conf template name

issue has been introduced during refactor of enb class names

Change-Id: Ib3ad6451c3979440be28d8811f51ce5d1c103518
andre at
enb_srs.py: Pass filenames to main cfg file template instead of cmdline args

Change-Id: Ifec6a8a9c29b94634f6ac7ea50aae9b8e18ae3cb
Pau Espin Pedrol at
epc_srs.py: Pass filenames to main cfg file template instead of cmdline args

Change-Id: I1ac3a3cace7ec2b0f85c5d9a5f97d5007d7c65ac
Pau Espin Pedrol at
ms_srs.py: Pass filenames to main cfg file template instead of cmdline args

Change-Id: Id2a6ba17d087d2ff67fe10b1dae6434259e74366
Pau Espin Pedrol at
enb: add optional gtp_bind_addr paramter to enb class

this allows to optionally specify a the GTP bind_address for a enb object
in the resources.conf

this address is then used for binding the listening socket for gtp connections
which, in turn, allows to run the enb and epc on the same host.

when gtp_bind_addr is not specified, addr is used by default

this is especially useful if eNB and EPC run on the same host
and ZMQ is used for RF between eNB and UE. Two eNB addresses
are needed in this case, one bind address and one "remote-accessable"
address for the UEs ZMQ radio to connect to

Change-Id: I4fe38f31401428ed3e74e1d0b64960f0af122d37
andre at
powersupply: Import sublcass module only if used

This way we avoid unconditionally importing all subclass dependencies,
and make them optional based on whether the setup has devices of that
type or not.

Change-Id: I0d2f8b26364b45f0d837cc51078784d1d0fa7ea1
Pau Espin Pedrol at
check_dependencies: Import modules dynamically and find related debian packages

This way we don't need to manually add new imports here or drop unusued
ones. It also makes sure local imports in all our py files is correct.
For instance, running the script already caught an issue which is added
to this patch (osmo_ms_driver/__main__.py).

This new version of the script also allows specifying subsets of
features to skip when checking for dependencies. This way, for instance
somebody not willing to use a sispm powersupply can stil check all the
needed dependencies are fine.

This new tool will make it easier to slowly make some dependencies only
used by some object test classes optional (for instance, python-smpplib
if user doesn't want to run an ESME node).

It also allows to retrieve the required debian/manually installed
packages when run with "-p" option:
"""
Debian packages:
        libpython3.5-minimal:amd64
        python3-gi
        python3-six
        libpython3.5-stdlib:amd64
        python3-pygments
        python3-yaml
        python3-mako
        python3-numpy
        python3-markupsafe

Modules without debian package (pip or setuptools?):
        usb                  [dpkg-query: no path found matching pattern /usr/local/lib/python3.5/dist-packages/usb/_interop.py]
        pydbus               [dpkg-query: no path found matching pattern /usr/local/lib/python3.5/dist-packages/pydbus/proxy.py]
        smpplib              [dpkg-query: no path found matching pattern /usr/local/lib/python3.5/dist-packages/smpplib/command_codes.py]
        sispm                [dpkg-query: no path found matching pattern /usr/local/lib/python3.5/dist-packages/sispm/__init__.py]
"""

Change-Id: I29ddf8971837754abd930d847bd1036e8e510de6
Pau Espin Pedrol at
enb: Add cell_list attribute

It allows configuring each cell_list up to a maximum of 'num_cells'.

Change-Id: I4fd30a3e37789b76bfaddc2beba1815154daab7f
Pau Espin Pedrol at
powersupply.py: Fix import module line typo

Recent commit changed the import line so it runs only when required, but
added a typo making tests uing it fail.

Change-Id: Id3e5c16adc763a9b79cc464937c541abd15f98de
Fixes: 2b959580b9affe729e966c506656b7f47926c4bf
Pau Espin Pedrol at
srsenb_rr.conf.tmpl: Fix whitespace

Change-Id: Ic2b4d8e2468984b096a870c878fa5d032ea4130f
Pau Espin Pedrol at
enb: Implement initial RF emulation API

Two implementations are provided:
* Amarisoft Ctrl interface (websocket)
* Mini-Circuits Programmable Attenuator (HW, HTTP API) [1]

in Amarisoft ENBs, if no rfemu is configured explicitly, the Ctrl
interface one is used by default, while still being possible to use the
HW one.

[1] https://www.minicircuits.com/pdfs/RC4DAT-6G-60.pdf

Change-Id: Ie98a3fb9bcd2b87b96ecbb5b79e0f53981892a32
Pau Espin Pedrol at
AmarisoftUE: Fix setting tx/rx gain attr

Fixes: a6d6304afccbd37462acf9ad8207d6ac29f25da9
Change-Id: I344313863390a00604045dcc18e552aa789b282f
Pau Espin Pedrol at
AmarisoftENB: Support setting PCI value

Change-Id: Ibffb95f9b55e145d76ba64119a73ef9f1ed7cdef
Pau Espin Pedrol at
enb: Introduce support for neighbour cell list

Change-Id: If604f1f2643a73f8c4da6ae3e9d24cd6c7e52d06
Pau Espin Pedrol at
srsenb: Support neighbour and secondary cell lists in config file

Change-Id: I8fe0703b7d9db69658c112066404d2da1c3d1e09
Pau Espin Pedrol at
amarisoftENB: Fix running with num_cells=2

The B200 device being used in the physical setup doesn't support several
RF ports, so let's hardcode it to 0 for now.

Change-Id: Id4c31be2bd0c75f469e2293ade011c7b7ceedb1c
Pau Espin Pedrol at
jenkins-build-amarisoft: turn off other RF libs when building for zmq driver

Change-Id: Ie4819d3f454d74e14829d02fbdc62a12f2d54cd5
andre at
jenkins-build-common.sh: also pass additional build flags to CMake

Change-Id: I1c5998d31201505d0a2532f22f905ec155d6c094
andre at
amarisoft_enb: use two antenna ports for TM > 1

Change-Id: Ia241f96341780760d482d389097659b0f7b897e8
andre at
enb: refactored rf_args handling for ZMQ-based radio

this patch moves the rf_dev_args creation for both eNB types
into the eNB base class, since they are identical.

the patch also fixes the arguments for all CA and MIMO configurations

Change-Id: I8ca3ed83e65dc07927385267e5970bc4f5b120d5
andre at
ms_srs: fix ZMQ radio arguments for CA and MIMO configs

similar to the eNB patches this fixes the CA and MIMO radio
parameters. In pricinple this could also be reused for the
AmarisoftUE but since we currently don't have a means to test
it I left it for a future commit.

Change-Id: I16b00009f97d61a9ab4715e5d727024661d3d0be
andre at
srsenb_rr.conf.tmpl: extend CQI and SR subframe scheduling

this fixes an issues when allocating CQI resources for multiple carriers
or multiple users

Change-Id: I8b9345502003da2f5b6841a98b77375656e84d8c
andre at
Move object subclass instance allocation logic out of suite.py/resource.py

This way we get rid of object related content in resource.py and we can
finally move it to core/ in next commit.

Change-Id: Ia5b861115ae3ae1b90149863c4265dcc730b8cd4
Pau Espin Pedrol at
Update obj classes in obj/ to use testenv instead of suite_run

Change-Id: Idf41243a497de7bc507b9f1cd1b38640f456f815
Pau Espin Pedrol at
tests: Replace 'suite' with 'tenv'

Change-Id: I777ec59ffd83b861ddc09e85e52d7a8896264b8c
doc/examples/4g_srsLTE/suites/4g/iperf3_ul.py sysmocom/suites/voice/mo_mt_call.py sysmocom/suites/nitb_sms/mo_mt_sms.py sysmocom/suites/nitb_debug/interactive.py sysmocom/suites/encryption/register_a5_1_authreq.py sysmocom/suites/smpp/esme_connect_policy_closed.py doc/examples/4g_srsLTE/suites/4g/ping.py selftest/suite_test/test_suite/test_fail.py sysmocom/suites/smpp/esme_connect_policy_acceptall.py sysmocom/suites/4g/ping.py sysmocom/suites/nitb_ussd/assert_extension.py sysmocom/suites/encryption/register_a5_3_authreq.py sysmocom/suites/gprs/iperf3.py sysmocom/suites/smpp/esme_ms_sms_storeforward.py src/osmo_gsm_tester/testenv.py selftest/suite_test/test_suite/hello_world.py sysmocom/suites/nitb_netreg_mass/register_default_mass.py sysmocom/suites/encryption/register_a5_0_authopt.py sysmocom/suites/nitb_smpp/esme_ms_sms_storeforward.py sysmocom/ttcn3/suites/ttcn3_bts_tests/ttcn3_bts_tests.py sysmocom/suites/gprs/cs_paging_gprs_active.py selftest/suite_test/test_suite/test_error.py sysmocom/suites/nitb_netreg/register_default.py sysmocom/suites/nitb_smpp/esme_connect_policy_acceptall.py sysmocom/suites/4g/iperf3_ul.py sysmocom/suites/gprs/lib/testlib.py sysmocom/suites/nitb_netreg/register.py sysmocom/suites/dynts/switch_tch_pdch.py sysmocom/suites/gprs/ping.py sysmocom/ttcn3/suites/ttcn3_bts_tests/lib/testlib.py sysmocom/suites/nitb_smpp/esme_ms_sms_transaction.py doc/examples/4g_srsLTE/suites/4g/iperf3_dl.py sysmocom/suites/nitb_smpp/esme_connect_policy_closed.py sysmocom/suites/voice/lib/testlib.py sysmocom/suites/encryption/register_a5_0_authreq.py sysmocom/suites/sms/mo_mt_sms.py sysmocom/suites/gprs/iperf3m4.py doc/examples/2g_osmocom/suites/sms/mo_mt_sms.py sysmocom/suites/4g/iperf3_dl.py sysmocom/suites/voice/mo_mt_call_osmux.py sysmocom/suites/encryption/lib/testlib.py sysmocom/suites/smpp/esme_ms_sms_transaction.py sysmocom/suites/ussd/assert_extension.py sysmocom/suites/debug/interactive.py sysmocom/suites/gprs/ping_idle_ping.py
Pau Espin Pedrol at
testenv: deferr importing obj module class until use is required

Change-Id: Ie073256a03bb2d038ef7f715d534afb1c53bb241
Pau Espin Pedrol at
check_dependencies: allow passing any module name to skip

Change-Id: I53a384d54f32d766f70bd7e0bfbd9702939c8aa8
Pau Espin Pedrol at
ms_srs: import numpy module on first use

Change-Id: I2ce974954028bdbc7bc1561c4538b909edee2cb1
Pau Espin Pedrol at
esme: import smpplib module on first use

Change-Id: Icc92937fdada9210f788805dbc42b80014e345e8
Pau Espin Pedrol at
ms_ofono: import pydbus and GLib modules on first use

Change-Id: I754e1290eb5593c0ef168f74747f42db1b50f16c
Pau Espin Pedrol at
powersupply_sispm: import sispm and usb modules on first use

Change-Id: I6045bb739e5c69972014a9d27be3a24b7ad61c9a
Pau Espin Pedrol at
rfemu_amarisoftctrl: import websocket module on first use

Change-Id: I568af52ffb7ac57222697f5d861a532c0e2a70de
Pau Espin Pedrol at
doc: Drop redundant app-name in install section

Change-Id: I6ec3c42efd3eb958f832ff9a797ddaa3dae4a99a
Pau Espin Pedrol at
doc: install.adoc: Correctly split optional dependencies

Change-Id: Id8b5dcd15fd86c670915b928112699d831e6e7b0
Pau Espin Pedrol at
Rework README file

Drop old one in doc/ which contains lots of outadated stuff already
placed in the User Manual.
Write a new markdown README in the root directory with pointers to
places in the repo and the issue tracket, ansible setup, etc.

Change-Id: I9febe56223eaeadc9d31291dd0110a11470e3ab1
Pau Espin Pedrol at
osmo-gsm-tester.py: Fix import error when using default-suites.conf

Recent commit refactoring stuff introduced an import error only
triggered when default-suites.conf is used (no -s param).
This commit fixes the issue.

Fixes: ea8c3d4b1235ef703e54cd963bc96f6716168387
Change-Id: I1534cfba55c69ed5c1354175f8b5df9b656b7d82
Pau Espin Pedrol at