summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-09-18Add a per-test log fileHEADpespin/mastermasterPau Espin Pedrol1-0/+6
This way there's no need to go over hours of logging in the main log to find information of a failing test. Change-Id: I8cb79c7855e0bc14282d6728841e92ba22699eed
2019-09-18suite_test: suite requires the fake trial to implement get_run_dir()Pau Espin Pedrol1-5/+24
If class Test calls get_run_dir(), it will generate the run dir from Suite.get_run_dir() + append, and Suite.get_run_dir() in turn will do the same with Trial.get_run_dir(). In suite_test.py, however, we are passing a plain log.Origin object (parent of Trial), which doesn't implement this function. We need to add it since tests will start using get_run_dir() to write their own log files. Generated tmp files are deleted on success and left there on error, in order to be able to debug stuff easily. Change-Id: Ic8326659a9ced0351e1e7e57ef21ce36f777729a
2019-09-10Revert "resources.conf.prod: Use different ARFCN for sysmocell-5k"Pau Espin Pedrol2-3/+1
This reverts commit 91199a31377fe94a79376eca9232151a3f637bce. Since we now support powercycling the SC5, we don't longer need to use a different ARFCN for it. Change-Id: Ie8b49c556c90b4a97a73695a93ac4108660a217f
2019-09-10Support SC5 power cycling through powersupplyPau Espin Pedrol2-14/+102
* Add powersupply related code to bts_osmotrx.py to power cycle the board. * Each time the board is started, we need to unlock the RF (start TRX implementation). Change-Id: I8a1428c1ff90c9f5b42d7ffe86a6fc763819cba2
2019-09-10process: Introduce respawn_sync() methodPau Espin Pedrol1-0/+7
Change-Id: Ifd1f553d9bead78bf1659f6c778c1b70888ba433
2019-09-10process: respawn(): return process resultPau Espin Pedrol1-1/+1
Change-Id: Ic6b57b8d0c2993a40ba39b87f45c7a524a8ca440
2019-09-10Add testsuite to check osmo-trx with TRXDv0Pau Espin Pedrol2-0/+5
Change-Id: I8e87aa5e24d1ed0737ec50e6a0f7fd8779a3c15b
2019-09-10resources.conf.prod: Fix indentationPau Espin Pedrol1-4/+4
Change-Id: Ic124c51aac26769058f0e90dc5497d16b44be085
2019-08-14default-suites: Drop multi-trx osmo-trx-lms testsPau Espin Pedrol1-2/+0
The feature is not supported yet and it seems to be leaving osmo-trx-lms in a zombie state preventing it to exit and blocking other tests. Let's disable it until this feature is working properly under manual use. Related: OS#4151 Change-Id: Ic255481e6f1fbbf06c4576f924cf27ae80567801
2019-08-14bts-trx: Improve logging and trap SIGTERM in ssh_sigkiller.shPau Espin Pedrol1-0/+2
Trapping SIGTERM is done in order to get extra logging about that event. Related: OS#4151 Change-Id: I2c7649dee8f5ecdaa08274806ccd8948d197ffdb
2019-08-06contrib: Avoid sysmobts/oc2g toolchain ld crashes building new libosmocorePau Espin Pedrol4-4/+4
Some gcc version (< 7.3.0) on ARM generate wrong code for __thread variables that crash at runtime. It seems, due to some unknown reason, that we are not affected by this bug with toolchain from poky pyro (6.4.0). However, libosmocore as of e188b8cd98f599468fbb200c7d590de955daf761 applies some CFLAGS="-mtls-dialect=gnu2" to workaround the issue automatically. But same toolchain contains an "ld" that crashes when those flags are applied. Fortunately, libosmocore provides a way to disable the workaround, and since we are not affected by the bug, we are fine with that. If the toolchain had the TLS runtime bug, then we'd had to build with -O0. Can be probably dropped once we move to newer toolchain. Depends: libosmocore.git afce89dac1a3cdb975da72020acdba16940fd679 Related: OS#4062 Change-Id: I583354735a7671e5bba1c0f6e60c84b6ef55ac63
2019-08-05bts-trx: Drop deprecated -t parameterPau Espin Pedrol1-2/+1
Parameter was dropped a while ago in osmo-bts, since it's calculated dynamically from VTY config. So let's drop it to avoid a deprecation warning message in osmo-bts log file. Change-Id: Ia17a2528e091d4691c511732ed251e472d1270eb
2019-07-26resources.conf.prod: Use different ARFCN for sysmocell-5kPau Espin Pedrol2-0/+3
Due to a bug in sysmocell-5K's TRX implementation, it may keep polluting the air transmitting after the BTS is disconnected. This could cause interferences with other tests. Correct fix would be to RF lock it after test finishes (through ccli), but let's simply use a different ARFCN for now. Related: OS#4129 Change-Id: I6d5555aa8740b262ee92110987189c076db44f76
2019-07-25ttcn3: Increase TTCN3 IPA UP to have sysmobts tests workingPau Espin Pedrol1-0/+2
It was spotted that most TTCN3 tests run against sysmobts fail because of following error: BTS_Tests.ttcn:643 Test case TC_chan_act_react finished. Verdict: fail reason: "BTS_Tests.ttcn:399 : Timeout waiting for ASP_IPA_EVENT_UP" Looking carefully at the logs and pcap files, it was seen that usually sysmobts tries to connect around 1 second after the TTCN3 tests decides it's enough. Current timeout was default of 15 seconds. Let's set it to 30 seconds. While at it, also set mp_ipa_up_delay, as initially set to 3 seconds in osmo-ttcn3-hacks.git d95f340a01fe7e9fe59f02b6ec4f9d018feb8c75 having physical tests in mind. Change-Id: I25c0a49851865291c6251556aff139961c3d4166
2019-07-24Introduce and use osmo-bts-trx VTY cmd max_trxd_version on sysmocell-5KPau Espin Pedrol3-0/+5
Force TRXDv0 when using sysmocell-5k as a TRX, since its implementation (different than osmo-trx) doesn't support higher versions. Furthermore, it will crash upon receival of SETFORMAT string. By forcing maximum TRXD version to 0, osmo-bts-trx won't sent any SETFORMAT message since 0 is the initial version to use. Depends: osmo-bts.git I5eb1fdc002f9d7f4acf475356d8fc998dc8f6326 Related: OS#4006 Change-Id: Ic95c38d91dba354ae64c5edbfcea3fbbf34a7de3
2019-06-19tests: voice: Add voice call test with Osmux enabledPau Espin Pedrol4-52/+81
Change-Id: Ie4f360a77f6fcbc74f140a7fcb5feef2d94ac734
2019-06-19Introduce osmux support for msc,bsc,mgwPau Espin Pedrol6-1/+41
Change-Id: Ief3518e77650f2cddb48357b07fe95346e46ee1b
2019-05-08virtual: Make mass tests be able to activate themselvesHolger Hans Peter Freyther5-18/+42
We will need to enable/disable generation of lua script code depending on the subscriber and mass test. Change-Id: Ide4d788543d910356efe9f61e789b3975f7bc558
2019-05-08virtual: Make it possible to add tests to the ms driverHolger Hans Peter Freyther3-33/+82
Introduce an Executor that forwards all testcase related methods to a list of testcases. Allow to instantiate them by name and use the result to access the statistics. Change-Id: Ia65ee53987e92b24e6b8c40e1376bc74dc260180
2019-05-04virtual: Introduce a base class for test casesHolger Hans Peter Freyther3-8/+38
Introduce a base class with the intended life cycle and use it. Change-Id: I97968fb02436d5ac8248fc8020539e1af547b030
2019-05-04virtual: Move the starter code into the starter moduleHolger Hans Peter Freyther4-162/+167
There is nothing location update specific in the file. Let's move it into the starter file. Change-Id: I0cd5705eaf53a14523feacece9446331a53b3e59
2019-04-30virtual: Separate starting virtphy/mobile from the testHolger Hans Peter Freyther3-79/+114
Move the starting code out of the Update Location "test". In the mid term we can have a SMS test run in addition to waiting the Update Location tests. A mass-test testcase will have a life-cycle of: * Creation * Configure (number of subscribers, probably all subs) * Pre-Start trigger (same as configure so it can be omitted) * Post-Start (all processes run) * Query if the test has completed The next step is an actual implementation to send SMS. Change-Id: Ie15f5123775d11dd44243b2741d047ed93f318f9
2019-04-30ms_driver: Catch up with the new MS baseclassHolger Hans Peter Freyther1-2/+2
Change-Id: Id8de8b3ee76b515c49e5ea52acaa326a2283b0e1
2019-04-28virtual: Have a single result class that can store dataHolger Hans Peter Freyther4-37/+69
We want to have LU, SMS and other tests run at the same time. Begin by creating a single result where testcases can store additional data. Move the stats code into the UL test case handling and out of the suite. Change-Id: Ie99351bee1515de8cf6870467f08256a53701907
2019-04-28virtual: Unify the lua script into a single oneHolger Hans Peter Freyther3-2/+10
In the quest to support multiple testcases we will use a single script. Parts can be enabled/disabled depending on which tests we want/need to run. Change-Id: I8a093671173976eba9215c00a7aea0f6cab467c6
2019-04-28virtual: The completion ratio is success / success+failureHolger Hans Peter Freyther2-2/+2
Fix the stats code to calculate the real completion ratio. Change-Id: I1b8f32dfbe8faa4c255a8d2d9806303fc8e5933b
2019-04-24BTS_Tests.cfg.tmpl rename BTS_Tests.mp_bb_trxc_ipPhilipp Maier1-1/+1
The module parameter BTS_Tests.mp_bb_trxc_ip got renamed to +BTS_Tests.mp_bts_trxc_ip. Lets change the config template accordingly. Change-Id: I49da16361a4f770852e7046edd457ad0101306bb Related: OS#3863
2019-04-24BTS_Tests.cfg.tmpl: rename BTS_Tests.mp_bb_trxc_portPhilipp Maier1-1/+1
The module parameter BTS_Tests.mp_bb_trxc_port got renamed to BTS_Tests.mp_bts_trxc_port. Lets change the config template accordingly. Change-Id: I776a27642a5024919fe9f882a3d695246a8ce0f7 Related: OS#3863
2019-04-18resources.conf.prod: Update config to use new smart socket HW setupPau Espin Pedrol1-6/+6
Change-Id: I5cfce927569b6a2d8ca57d3394116bbcff3eee56
2019-04-12powersupply: Add support for Intellinet PDUPau Espin Pedrol3-2/+103
Based on original pdutool code from Joachim Steiger. Change-Id: Iab4f7aec1c50f47da4cd734441bb36fa09d171a3
2019-04-08Revert "modem: workaround ofono crash"Pau Espin Pedrol1-1/+0
We already updated our ofono branch to current master (after 1.28), and this fix is not longer required, as stated in ticket OS#3064. Related: OS#3064 This reverts commit f8d12196f05b20aa28b3103db26ea37ba6849362. Change-Id: I884f6d4f3df4f3b4e2ac05e4dba2ad8704697521
2019-04-05processes: Fix kill of processes run under sudoPau Espin Pedrol1-0/+11
sudo drops forwarding of signals sent by processes of the same process group, which means by default will drop signals from parent and children processes. By moving it to another group, we will later be able to kill it. Note: sudo documentation is wrong, since it states it only drops signals from children. See following link for more information: https://stackoverflow.com/questions/34337840/cant-terminate-a-sudo-process-created-with-python-in-ubuntu-15-10 Change-Id: I25990234aaa496c501ff45ad7f7fd549d6f188da
2019-04-05suites: gprs: Keep terminating all iperf3 processes if one fails to terminatePau Espin Pedrol1-1/+4
Change-Id: I0cc183529988463800e0d40c8cf3a4cea041031c
2019-04-04process: Early return during process termination if no proc runningPau Espin Pedrol3-57/+8
This avoids extra unneeded logging about killing with signal when actually no signal is being sent. Change-Id: I5b5dd78fe3301d8eef2ab93da3b37029268ae198
2019-04-04suite: Make _processes an empty list during init timePau Espin Pedrol1-13/+10
It simplifies the code because we don't need to check if it is a list or not. Change-Id: I634901a1f4ba3a6b7294666012ea679ae148ff08
2019-04-04modem: Move modem iface to its netns before using itPau Espin Pedrol3-0/+34
We used to do that once after ofono startup for all iface (modem-netns-setup.py), but then if a modem crashes the interface is re-created on the default netns, and tests fail until manual re-run of modem-netns-setup.py. This way now we always make sure the iface is moved to the expected netns before it is used. Related: OS#3881 Change-Id: I506309c424aa46684c4516a1a0217343ecbf32c6
2019-04-04util: use launch_sync API instead of manual waitPau Espin Pedrol1-12/+3
The API is available so no need to manually craft all steps in there. Change-Id: I4afedb185f6e864929155981e8a2ec2df90110c3
2019-04-03process: Prevent NetNSProcess alive forever after SIGKILLPau Espin Pedrol2-1/+42
NetNSProcess are run in the following process tree: osmo-gsm-tester -> sudo -> bash (osmo-gsm-tester_netns_exec.sh) -> tcpdump. Lots of osmo-gsm-tester_netns_exec.sh scripts with tcpdump child process were spotted in prod setup of osmo-gsm-tester. Apparently that happens because sometimes tcpdump doesn't get killed in time with SIGTERM and SIGINT, and as a result SIGKILL is sent by osmo-gsm-tester as usual termination procedure. When SIGKILL is sent, the parent sudo process is instantly killed without possibility to forward the signal to its children, leaving the bash script and tcpdump alive. In order to fix it, catch SIGKILL for this process class and send instead SIGUSR1. Then, modify the script under sudo to handle SIGUSR1 as if it was a SIGKILL towards its children to make sure child process in the netns terminates. Change-Id: I2bf389c47bbbd75f46af413e7ba897be5be386e1
2019-04-03process: add signal to NetNSProcess kill pathPau Espin Pedrol1-1/+1
This allows to easily differentiate different calls to kill in order to terminate the process when looking at the logs. Change-Id: Ida88f2674b0ed1802f20c519aa4e3cbe81e0def8
2019-03-27default-suites.conf: Add tests for OC2GPau Espin Pedrol1-0/+18
Change-Id: I5599c86565ebb6d7d6931d36fd49e57fe2020d1f
2019-03-27ttcn3: Enable tests against O2CGPau Espin Pedrol2-0/+2
Change-Id: Ie42f9144c6fa5cbee71e3f0b97d60c295f5f531e
2019-03-27Integrate osmo-{bts,pcu}-oc2gPau Espin Pedrol8-1/+334
Change-Id: I446e27039f75e63c2870d751c190a4fd76947000
2019-03-25contrib: jenkins-build-osmo-pcu-oc2g: Enable oc2gbts-phyPau Espin Pedrol1-1/+7
Depends on osmo-pcu Change-Id I7cd89a549c9463e81893ca7dd925299f728e4453. Change-Id: I1384f4adeca7583e48dd94fcb09a1b58d108f1de
2019-03-15contrib: Use proper SDK for OC2G buildsPau Espin Pedrol2-12/+12
Binaries produced by sysmobts SDK are not compatible with OC2G. Change-Id: I5adde9cf8a5f84cfc4b6fc4d4def3836444929ec
2019-03-07nitb_netreg_mass: Provide 100 subscriberszecke/testHolger Hans Peter Freyther2-2/+180
Change-Id: I386885f4179d4fc2df23cc48cd1eda850b5a990b
2019-03-07nitb_netreg_mass: Add code to declare a run successful/failureHolger Hans Peter Freyther3-7/+71
Change-Id: If26047f0635db8c7209af143fbd1da4c9b2312d1
2019-03-07nitb_netreg_mass: Allow a suite to configure num subscriberHolger Hans Peter Freyther7-65/+80
Remove hardcoded configuration and replace it with a reservation in the suite. Change-Id: Ic9fd560c2924731e4fd6eea5aaf3ad565cb4ef52
2019-03-07resource: Add a mobile resource for the virtual testHolger Hans Peter Freyther5-1/+58
Add a new resource and make a reservation in the suite. Change-Id: Ic26aa63cad62323bb85f952640672eb28af0eadc
2019-03-06resources.conf.prod: Add dev_args to select specific Lime devicePau Espin Pedrol1-0/+1
Change-Id: I6ef234edb06031644758174e93a9d3817d0acc1f
2019-03-05Log signals from VoiceCall dbus objectsPau Espin Pedrol1-8/+54
Change-Id: I0def02b9063f75ec32c8b9382bdb12d65e1fb9eb