aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
Commit message (Collapse)AuthorAgeFilesLines
* utils: log: Fix includes for UHD_HEX()Martin Braun2019-06-121-0/+1
| | | | Using UHD_HEX() requires <iomanip>, which is now part of log.hpp.
* tests: Fix mock_ctrl_iface for 32-bit MSVCMartin Braun2019-05-231-2/+2
| | | | | Widening and narrowing of bitwidths causes errors on this platform without explicit casts.
* cmake: tests: Add macro for non-API based unit testsMartin Braun2019-05-221-49/+59
| | | | | | All unit tests which require extra sources (i.e., can't just interact with the UHD API) have been manually added to the CMakeLists.txt in a clumsy fashion. This macro cleans that up a little.
* devtest: Add new test for tx_waveformsMartin Braun2019-05-226-0/+121
| | | | This will run tx_waveforms with a few settings.
* log: Fix ANSI colour codesMartin Braun2019-05-071-0/+1
| | | | | | The colour codes used for console logging were incorrectly defined. Some colours would simply not rendered this way (e.g., red), others had the boldness flag wrong.
* prop_tree: add pop() functionBrent Stapleton2019-05-021-0/+8
| | | | | Adding pop function to property tree, which will remove and return a property from the property tree. This also includes unit tests.
* prop_tree: formatting property tree filesBrent Stapleton2019-05-021-0/+1
| | | | | | | | | | | | - Ran clang-format - Fixed typos - Updated copyright headers clang-format -i --style=file \ host/include/uhd/property_tree.hpp \ host/include/uhd/property_tree.ipp clang-format -i --style=file \ host/lib/property_tree.cpp host/tests/property_test.cpp
* tests: Make the Python interpreter for devtests a parameterMartin Braun2019-04-252-6/+8
| | | | | When running 'make test_***', it now also defaults to RUNTIME_PYTHON_EXECUTABLE.
* uhdlib: Add dpdk_zero_copy.hppAlex Williams2019-04-101-1/+1
| | | | | dpdk_zero_copy.hpp was referenced in multiple places using relative paths. Let's throw it in uhdlib for easy access.
* utils: Add scope_exit objectMartin Braun2019-04-012-0/+46
| | | | | | | This is a utility for RAII-style operations. An object that will run code when a scope is left. Also includes unit tests.
* uhd: Remove cal containersMartin Braun2019-03-202-196/+0
| | | | | They are currently unused, and may need reimplementation. For the time being, they can go out of the codebase.
* uhd: mpm: update all license header w/ "-or-later"Brent Stapleton2019-03-082-2/+2
| | | | Updating all SPDX license identifiers to include "-or-later"
* types: sid: Remove duplicate operator=()Martin Braun2019-02-281-0/+3
| | | | | This fixes a warning about multiple operators. Doesn't change any functionality.
* cmake: fix variable usageMichael Dickens2019-01-301-2/+1
|
* tests: Fix up dpdk_test to use current APIsAlex Williams2019-01-251-64/+47
| | | | | | | | | This will now avoid replicating code that is already in the config files. Also included is a minor fix to prevent threads from hanging when blocking mode is used. A flow control-only packet is now sent when RX times out.
* mpmd,transport,prefs: Add xport_mgr for dpdk_zero_copyAlex Williams2019-01-252-41/+43
| | | | | | | | | | | | | | | | | | | | | | | Add configuration sections to the UHD config file for NIC entries. Keys are based on MAC addresses, and the entries beneath the section describe which CPU and I/O thread to use for the NIC and its IPv4 address. Make ring sizes configurable for uhd-dpdk. Ring size is now an argument for packet buffers. Note that the maximum number of available buffers is still determined at init! Add ability to receive broadcasts to uhd-dpdk. This is controllable by a boolean in the sockarg during socket creation. dpdk_zero_copy will filter broadcast packets out. Add dpdk_simple transport (to mirror udp_simple). This transport allows receiving from broadcast addresses, but it only permits one outstanding buffer at a time. Fix IP checksum handling in UHD-DPDK. TX checksums were not being calculated in the NIC, and in RX, the check for IP checksums allowed values of zero (reported as none). Now packets with bad IP checksums will be dropped.
* devtest: add universal_newlines to subprocess callTrung Tran2019-01-233-2/+4
| | | | | | | | | 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>
* tests: replace has_key by using 'in'Trung Tran2019-01-235-8/+8
| | | | | | | 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>
* math: Replace boost::*::{lcm,gcd}() with portable versionsMartin Braun2019-01-181-3/+7
| | | | | | Boost changed the lcm() and gcd() functions in Boost 1.67. This creates portable UHD versions to be used instead. They use various Boost versions under the hood conditionally.
* math: Remove uhd::math::log2, replace with std::log2Martin Braun2019-01-181-6/+3
| | | | | Now that we're C++11, we can assume the existence of said symbol and need no more portability hacks.
* uhd: mpm: apply clang-format to all filesBrent Stapleton2019-01-1654-2319/+2313
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applying formatting changes to all .cpp and .hpp files in the following directories: ``` find host/examples/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/tests/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/utils/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find mpm/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Also formatted host/include/, except Cpp03 was used as a the language standard instead of Cpp11. ``` sed -i 's/ Cpp11/ Cpp03/g' .clang-format find host/include/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Formatting style was designated by the .clang-format file.
* formatting: remove vim hints in headersBrent Stapleton2019-01-161-1/+0
| | | | | Remove trailing vim hints in header files. This functionality will be replaced by clang-format.
* tests: Add arguments to dpdk_test to control core mappingAlex Williams2019-01-151-40/+100
|
* tests: Add unit test for DPDK transportAlex Williams2019-01-152-0/+353
| | | | | | | | | This commit adds a loopback benchmark for a PC with 2 DPDK-compatible NIC ports that are connected together via a cable. It sends messages with embedded sequence numbers (outgoing and last-seen) for maintaining a flow control window of packets in flight. It tracks the number of bytes sent/received and reports the time the test took and average throughput.
* tests: Add benchmark of streaming code pathsCiro Nishiguchi2019-01-106-22/+542
| | | | | Add a benchmark of packet handlers and device3 flow control. Benchmarks use mock transport objects.
* tests: Add #include <thread> in system time testMartin Braun2019-01-081-0/+1
| | | | Some versions of MSVC report issues without it.
* tests: Fix compiler warning about unused timestampMartin Braun2019-01-071-2/+2
|
* devtest: Fix CMake `endif` warningBrent Stapleton2019-01-031-1/+1
| | | | When adding E320 devtests, the `endif` clause had the wrong argument, which resulted in a CMake warning.
* devtest: x3x0: Enable rx_samples_to_file in devtestSugandha Gupta2018-12-171-1/+1
|
* cmake: Properly register devtestMartin Braun2018-11-291-1/+3
| | | | | If N300 or E320 is disabled, the appropriate devtests are no longer registered.
* tests: Retrofit sph test to use new mock transportCiro Nishiguchi2018-11-165-201/+293
|
* cmake: Update coding style to use lowercase commandsMartin Braun2018-11-143-56/+56
| | | | | | | | | | | | | | | | | 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!)
* tests: device3_test: add graph impl testTrung Tran2018-10-317-59/+295
|
* Test: Add unit test for eeprom_utilsmichael-west2018-10-252-0/+61
|
* e320: devtest: Reduce sample rate for 1G devtestSugandha Gupta2018-09-261-1/+1
| | | | | | 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.
* devtest: n3x0: Enable rx_samples_to_file testSugandha Gupta2018-09-141-1/+1
|
* devtest: e320: Re-enable rx_samples_to_file testSugandha Gupta2018-09-121-1/+1
| | | | | The test has been fixed in commit 9c7d251b32eb476e11f8fce13a797c4de9abc796 to parse for D and S correctly
* e320: gpio: Fix front panel GPIO readbackSugandha Gupta2018-09-121-1/+1
| | | | The gpio devtest passes after this fix. Enabling the test
* devtest: Improve error handling for shell_applicationMartin Braun2018-08-221-11/+17
|
* devtest: b2xx: Fix some arguments for MIMO testMartin Braun2018-08-221-5/+14
|
* devtest: Fix counting of underruns/overrunsMartin Braun2018-08-221-2/+2
| | | | Our regex was borked.
* devtest: Remove parsing for DD.. and SS..Martin Braun2018-08-224-16/+14
| | | | | | | 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.
* devtest: Default UHD_LOG_FASTPATH_DISABLE to 1Martin Braun2018-08-221-1/+11
|
* devtest: Clean up & refactorMartin Braun2018-08-222-35/+55
| | | | | - Move filter_* functions out of uhd_test_case - Reduced some line lengths
* devtest: Integrate Python API Tester into DevtestVidush2018-08-104-2/+63
|
* devtest: Add more env vars, make Py3k compatibleMartin Braun2018-08-102-8/+18
| | | | | The testsuite now includes more environment variables for source dir, build dir, and PYTHONPATH.
* e320: Enable devtest for E320Sugandha Gupta2018-08-092-0/+58
| | | | - All tests pass except for gpio_test
* tests: Add multi_usrp_test.pyVidush2018-07-241-0/+624
| | | | | This is an API tester that uses the Python API to verify the correct behaviour of multi_usrp with respect to a hardware implementation.
* devtest: Minor Python fixesMartin Braun2018-07-171-18/+30
| | | | | - Fix some Pylint warnings - Improve output
* soft_register: Remove compiler warning, add unit testMartin Braun2018-07-112-1/+35
|