mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-15 21:01:26 +00:00
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) |
||
|---|---|---|
| .. | ||
| benchmark_rate_test.py | ||
| bitbang_test.py | ||
| CMakeLists.txt | ||
| devtest_b2xx.py | ||
| devtest_e3xx.py | ||
| devtest_e320.py | ||
| devtest_n3x0.py | ||
| devtest_x3x0.py | ||
| gpio_test.py | ||
| list_sensors_test.py | ||
| multi_usrp_test.py | ||
| python_api_test.py | ||
| README.md | ||
| run_testsuite.py | ||
| rx_samples_to_file_test.py | ||
| test_messages_test.py | ||
| test_pps_test.py | ||
| tx_bursts_test.py | ||
| tx_waveforms_test.py | ||
| uhd_test_base.py | ||
| usrp_probe.py | ||
| usrp_probe_test.py | ||
Device Tests
These are a set of tests to be run with one or more attached devices. None of these tests require special configuration; e.g., the X3x0 test will work regardless of attached daughterboards, FPGIO wiring etc.
Adding new tests
To add new tests, add new files with classes that derive from unittest.TestCase.
Most of the time, you'll want to derive from uhd_test_case or
uhd_example_test_case.
Adding new devices
To add new devices, follow these steps:
- Add an entry to the CMakeLists.txt file in this directory using the
ADD_DEVTEST()macro. - Add a
devtest_pattern.pyfile to this directory, wherepatternis the same pattern used in theADD_DEVTEST()macro. - Edit this devtest file to import all the tests you want to run. Some may require parameterization.
The devtest file is 'executed' using Python's unittest module, so it doesn't
require any actual commands. If the device needs special initialization,
commands inside this file will be executed if they are not in a
if __name__ == "__main__" conditional.