uhd/host/tests/devtest
michael-west 4cecc1e15a tests: Add tests for module_serial field
Added test to verify existence of the module_serial field and value to
multi_usrp_test.

Signed-off-by: michael-west <michael.west@ettus.com>
2023-11-01 20:45:06 -05:00
..
benchmark_rate_test.py devtest: benchmark_rate: Add support for rx and tx only tests 2021-06-10 07:28:25 -05:00
bitbang_test.py test: x410: Add GPIO tests to X410 devtest 2022-03-23 21:09:39 -05:00
CMakeLists.txt cmake: Fix make_x410 and make_x440 targets 2023-11-01 20:45:06 -05:00
devtest_b2xx.py devtest: Add receive stability test to B2xx devtest 2021-09-28 06:24:05 -07:00
devtest_e3xx.py devtest: Add multi-spc timed command tests 2022-12-21 20:26:51 -06:00
devtest_e320.py devtest: Add multi-spc timed command tests 2022-12-21 20:26:51 -06:00
devtest_n3x0.py devtest: Add multi-spc timed command tests 2022-12-21 20:26:51 -06:00
devtest_x3x0.py devtest: Add multi-spc timed command tests 2022-12-21 20:26:51 -06:00
devtest_x410.py devtest: gpio test updates 2023-07-13 15:01:55 -05:00
devtest_x440.py devtest: disable rx_samples_to_file_test for x440 2023-07-25 09:45:11 -05:00
gpio_test.py devtest: gpio test updates 2023-07-13 15:01:55 -05:00
list_sensors_test.py devtest: Add list_sensors test 2018-02-27 10:03:37 -08:00
multi_usrp_test.py tests: Add tests for module_serial field 2023-11-01 20:45:06 -05:00
python_api_test.py devtest: correct docstrings with example being run 2023-07-25 09:45:11 -05:00
python_rx_stability_test.py devtest: Add receive stability test to B2xx devtest 2021-09-28 06:24:05 -07:00
README.md tests: Added first batch of device tests 2015-10-07 15:06:42 -07:00
recv_stability_test.py devtest: Add receive stability test 2021-09-28 06:24:05 -07:00
run_testsuite.py devtest: remove benchmark_rate test for x440 2023-07-10 09:53:30 -05:00
rx_multi_spc_timed_commands_test.py devtest: fix typo in error message 2023-08-02 09:48:30 -05:00
rx_samples_to_file_test.py devtese: Change default Python interpreter to 3 2019-11-08 08:56:20 -08:00
test_messages_test.py devtest: Add test_messages_test to X310 2019-11-26 12:21:33 -08:00
test_pps_test.py devtese: Change default Python interpreter to 3 2019-11-08 08:56:20 -08:00
tx_bursts_test.py devtest: correct docstrings with example being run 2023-07-25 09:45:11 -05:00
tx_multi_spc_timed_commands_test.py devtest: fix typo in error message 2023-08-02 09:48:30 -05:00
tx_waveforms_test.py devtest: correct docstrings with example being run 2023-07-25 09:45:11 -05:00
uhd_test_base.py tests: Make python_api_test.py always explicitly call Python 2021-06-02 21:49:39 -07:00
usrp_probe.py host: devtest: Allow getting mgmt_addr in tests 2022-03-23 21:09:39 -05:00
usrp_probe_test.py devtest: correct docstrings with example being run 2023-07-25 09:45:11 -05:00

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:

  1. Add an entry to the CMakeLists.txt file in this directory using the ADD_DEVTEST() macro.
  2. Add a devtest_pattern.py file to this directory, where pattern is the same pattern used in the ADD_DEVTEST() macro.
  3. 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.