Martin Braun
2ed94af772
uhd: Remove deprecated objects and methods
...
This removes the following symbols:
- otw_type_t
- clock_config_t
- Any functions that use those symbols
- Non-standard args from examples (e.g., --total-time is deprecated in
favour of --duration)
2019-11-26 11:49:08 -08:00
Martin Braun
21ed72b5a2
devtese: Change default Python interpreter to 3
...
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.
2019-11-08 08:56:20 -08:00
erickshepherdNI
fb71222b31
e3xx: corrected frontend name in devtest
2019-10-28 13:40:19 -07:00
Martin Braun
8081105e24
devtest: Add new test for tx_waveforms
...
This will run tx_waveforms with a few settings.
2019-05-22 14:27:02 -07:00
Martin Braun
600f655e8e
tests: Make the Python interpreter for devtests a parameter
...
When running 'make test_***', it now also defaults to
RUNTIME_PYTHON_EXECUTABLE.
2019-04-25 10:46:44 -07:00
Brent Stapleton
431deb855b
uhd: mpm: update all license header w/ "-or-later"
...
Updating all SPDX license identifiers to include "-or-later"
2019-03-08 00:43:07 +01:00
Trung Tran
3f77f6d5e0
devtest: add universal_newlines to subprocess call
...
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>
2019-01-23 11:03:39 -08:00
Trung Tran
c6618dd8d3
tests: replace has_key by using 'in'
...
python3+ dropped has_key function on dictionary. In order to make it
compatible, we need to use 'in' keyword.
Signed-off-by: Trung.Tran<trung.tran@ettus.com>
2019-01-23 11:03:39 -08:00
Brent Stapleton
494c7338d7
devtest: Fix CMake endif warning
...
When adding E320 devtests, the `endif` clause had the wrong argument,
which resulted in a CMake warning.
2019-01-03 12:11:06 -08:00
Sugandha Gupta
027040752f
devtest: x3x0: Enable rx_samples_to_file in devtest
2018-12-17 14:24:13 -08:00
Martin Braun
2e85508a87
cmake: Properly register devtest
...
If N300 or E320 is disabled, the appropriate devtests are no longer
registered.
2018-11-29 09:55:08 -08:00
Martin Braun
a69ab0c23a
cmake: Update coding style to use lowercase commands
...
Also updates our coding style file.
Ancient CMake versions required upper-case commands. Later command
names became case-insensitive. Now the preferred style is lower-case.
Run the following shell code (with GNU compliant sed):
cmake --help-command-list | grep -v "cmake version" | while read c; do
echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done > convert.sed \
&& git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \
'*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed
(Make sure the backslashes don't get mangled!)
2018-11-14 14:10:09 -08:00
Sugandha Gupta
167be53183
e320: devtest: Reduce sample rate for 1G devtest
...
The E320 default master clock rate is 16MHz, therefore we need to
reduce the 2 channel receive rate to 8MHz in order to be able to meet
the requested rate.
2018-09-26 14:10:23 -07:00
Sugandha Gupta
e16e046d43
devtest: n3x0: Enable rx_samples_to_file test
2018-09-14 16:34:51 -07:00
Sugandha Gupta
fbd51d33e9
devtest: e320: Re-enable rx_samples_to_file test
...
The test has been fixed in commit 9c7d251b32
to parse for D and S correctly
2018-09-12 12:10:39 -07:00
Sugandha Gupta
94d6a6a0a6
e320: gpio: Fix front panel GPIO readback
...
The gpio devtest passes after this fix. Enabling the test
2018-09-12 12:10:39 -07:00
Martin Braun
6849514a05
devtest: Improve error handling for shell_application
2018-08-22 18:37:12 -07:00
Martin Braun
35a74c8c80
devtest: b2xx: Fix some arguments for MIMO test
2018-08-22 18:37:12 -07:00
Martin Braun
2b15ecde2b
devtest: Fix counting of underruns/overruns
...
Our regex was borked.
2018-08-22 18:37:12 -07:00
Martin Braun
9c7d251b32
devtest: Remove parsing for DD.. and SS..
...
Detecting drops by parsing for DD and SS was a flawed method. Tools
should find those programmatically. Plus, the string 'DDC' would
interfere with the regex. Also, we're now using
UHD_LOG_FASTPATH_DISABLE.
2018-08-22 18:37:12 -07:00
Martin Braun
21d7250849
devtest: Default UHD_LOG_FASTPATH_DISABLE to 1
2018-08-22 18:37:12 -07:00
Martin Braun
19042c32b8
devtest: Clean up & refactor
...
- Move filter_* functions out of uhd_test_case
- Reduced some line lengths
2018-08-22 18:37:12 -07:00
Vidush
5b55a32c92
devtest: Integrate Python API Tester into Devtest
2018-08-10 11:42:47 -07:00
Martin Braun
318e406b6f
devtest: Add more env vars, make Py3k compatible
...
The testsuite now includes more environment variables for source dir,
build dir, and PYTHONPATH.
2018-08-10 11:42:47 -07:00
Sugandha Gupta
f25e0e41f8
e320: Enable devtest for E320
...
- All tests pass except for gpio_test
2018-08-09 17:39:14 -07:00
Vidush
dd9cc213ca
tests: Add multi_usrp_test.py
...
This is an API tester that uses the Python API to verify the correct
behaviour of multi_usrp with respect to a hardware implementation.
2018-07-24 14:10:13 -07:00
Martin Braun
09d7e9c4de
devtest: Minor Python fixes
...
- Fix some Pylint warnings
- Improve output
2018-07-17 08:50:41 -07:00
Trung N Tran
c52c0b69fc
dev_test: add N3xx devtest
2018-05-02 12:02:43 -07:00
Trung N Tran
181065f4ff
dev_test: usrp_prope.py update to find reachable mpm device
2018-05-02 12:02:43 -07:00
Martin Braun
edd624e903
examples: Update benchmark_rate (more stats, timestamps)
...
- Messages are all timestamped, enables better understanding of the
output log
- Less usage of Boost
- More stats (differentiate between RX and TX timeouts and sequence
errors)
2018-03-14 15:18:00 -07:00
Martin Braun
49734e4fdb
devtest: Add list_sensors test
2018-02-27 10:03:37 -08:00
Moritz Fischer
d52905703a
test: devtest: devtest_e3xx.py: Fix copy & paste error
...
Fix copy & paste error where "B210" type made it's way into the E3XX
test.
Fixes 88b0baeaf ("tests: More devtests, works on E3XX now")
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Martin Braun <martin.braun@ettus.com>
2018-02-26 15:39:33 -08:00
Martin Braun
ae5211d71d
uhd: Update license headers
...
All copyright is now attributed to "Ettus Research, a National
Instruments company".
SPDX headers were also updated to latest version 3.0.
2018-02-19 16:54:52 -08:00
Martin Braun
4f948e2c8b
Move all license headers to SPDX format.
2017-12-22 10:45:51 -08:00
Trung N Tran
9ec36e9538
RTS: DevTest failure work around by increasing time between test
2017-06-02 16:18:17 -07:00
Andrej Rode
d5d3e5a7cc
tests: devtest:remove wait for claimer
2017-02-08 20:10:24 -08:00
Martin Braun
d5ba9fab6a
tests: Added bitbang test, added to x3x0 devtest
2016-12-09 19:15:27 -08:00
Andrej Rode
ae9370d5b3
devtest: flush stdout after print statements
2016-12-01 12:44:41 -08:00
Andrej Rode
7fc01d5fe3
devtest: dont check number of samples in benchmark rate test and accept
...
10 underruns in SISO
2016-12-01 12:44:41 -08:00
Andrej Rode
b68412521f
devtest: test_base add wait time between uhd_usrp_probe calls
2016-11-09 17:54:52 -08:00
Martin Braun
6b7b88102a
devtest: Fix $PATH-setting code
...
PATH was only set for the examples, but not for the initial
call to uhd_find_devices.
This reverts commit b7c296f583 , which
tried to fix this but did so badly, and also amends it with the correct
fix.
2016-05-09 10:36:36 -07:00
Martin Braun
b7c296f583
devtest: Run uhd_find_devices from current build
2016-04-22 18:14:44 -07:00
Martin Braun
da00dad1c9
devtest: Fixed case where B200 test could fail due to bad params
2016-03-25 14:50:27 -07:00
Martin Braun
1381437eae
devtest: Backed out fast B2X0 rate tests so we can use the same test on USB2
2016-03-25 13:07:56 -07:00
Nicholas Corgan
f50f46b817
devtest: fixed check for specific product
2016-03-25 12:36:42 -07:00
Martin Braun
30c12d86a4
tests: devtests now check for timeouts and the sample counts
2016-03-21 14:07:42 -07:00
Martin Braun
88b0baeaf6
tests: More devtests, works on E3XX now
...
- devtest now gets installed
- uhd_usrp_probe test
- Added make test_e3xx
- Minor fixes to previous devtests
2015-11-11 10:37:26 -08:00
Martin Braun
90b88a27d2
tests: Added first batch of device tests
...
- Currently supported: B2xx, X3x0
- Runs some simple examples
2015-10-07 15:06:42 -07:00