aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/devtest/run_testsuite.py
Commit message (Collapse)AuthorAgeFilesLines
* devtest: reapply allow extra device arguments when running devtestsSteven Koo2021-02-121-1/+4
| | | | | | | | | | | | | | | | | | This change is substantially the same as 7b86a47, but implemented in a ninja supported way. ninja doesn't allow for arguments, so this uses an environment variable. This is compatible with both make and ninja. The only change from the calling point of view is you must set the environment variable before calling "make test_[devicetype]" instead of after as an arg. This allows running devtests for a single device instead of all connected devices or selecting a specific network interface. Set the additional device arguments with the EXTRA_DEV_ARGS variable. This can be set as an environment variable or on the command line. For example: EXTRA_DEV_ARGS=addr=192.168.30.2 make test_x3x0 Also-by: Matthew Crymble <matthew.crymble@ni.com> Signed-off-by: Steven Koo <steven.koo@ni.com>
* Revert "devtest: allow extra device arguments when running devtests"Matthew Crymble2021-02-081-4/+1
| | | | | This reverts commit 7b86a47bf7143df1cac252602e3c9ddbdd871d90. This was causing issues when building UHD with ninja
* devtest: allow extra device arguments when running devtestsMatthew Crymble2021-01-211-1/+4
| | | | | | | | | This allows running devtests for a single device instead of all connected devices or selecting a specific network interface. Set the additional device arguments with the EXTRA_DEV_ARGS variable. This can be set as an environment variable or on the command line. For example: make test_x3x0 EXTRA_DEV_ARGS=addr=192.168.30.2
* devtest: optionally generate XML report when running devtestsJoerg Hofrichter2021-01-081-1/+13
| | | | | | | If the unittests are invoked with an extra argument -x, an XML report is generated. This depends on the python module unittest-xml-reporting (aka. xmlrunner).
* tests: updated devtest runner to use standard device argsMatthew Crymble2020-05-271-2/+2
| | | | | This will allow run_testsuite.py to be called for specific devices instead of all devices for a certain type.
* Remove remaining Python 2 referencesMartin Braun2020-05-071-1/+0
| | | | | | | This changes two things in all applicable files: - Remove imports from __future__ - Change default shebangs from /usr/bin/env python to /usr/bin/env python3
* devtese: Change default Python interpreter to 3Martin Braun2019-11-081-1/+1
| | | | | | | | | | | Usually, devtest is run via make (or ninja), and will use the correct Python interpreter. When running directly on the command line, it is important to pick the right Python interpreter so it will work with the Python API. Here, we change the default interpreter from Python 2 to 3, because that's the more common version, and will be the only option for upcoming UHD 4.0 anyway.
* tests: Make the Python interpreter for devtests a parameterMartin Braun2019-04-251-5/+6
| | | | | When running 'make test_***', it now also defaults to RUNTIME_PYTHON_EXECUTABLE.
* devtest: add universal_newlines to subprocess callTrung Tran2019-01-231-0/+1
| | | | | | | | | subprocess call in python3+ return stderr and stdout object is byte object instead of text. This caused many issue with parsing the ouput in devtest. These are not an issue in python2. This change will make devtest more python3 compatible. Signed-off-by: Trung.Tran<trung.tran@ettus.com>
* devtest: Add more env vars, make Py3k compatibleMartin Braun2018-08-101-6/+15
| | | | | The testsuite now includes more environment variables for source dir, build dir, and PYTHONPATH.
* uhd: Update license headersMartin Braun2018-02-191-1/+2
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* devtest: flush stdout after print statementsAndrej Rode2016-12-091-0/+2
|
* devtest: Fix $PATH-setting codeMartin Braun2016-05-091-20/+16
| | | | | | | | | PATH was only set for the examples, but not for the initial call to uhd_find_devices. This reverts commit b7c296f58399f0ef1fee7b3ef3d7da957f551558, which tried to fix this but did so badly, and also amends it with the correct fix.
* tests: More devtests, works on E3XX nowMartin Braun2015-11-111-2/+8
| | | | | | | - devtest now gets installed - uhd_usrp_probe test - Added make test_e3xx - Minor fixes to previous devtests
* tests: Added first batch of device testsMartin Braun2015-10-071-0/+132
- Currently supported: B2xx, X3x0 - Runs some simple examples