diff options
| author | Ashish Chaudhari <ashish@ettus.com> | 2015-10-15 16:19:27 -0700 |
|---|---|---|
| committer | Ashish Chaudhari <ashish@ettus.com> | 2015-10-15 16:19:27 -0700 |
| commit | c41a7fa386a467ba76d5f09f390cb62a1bfa7282 (patch) | |
| tree | 3f458325c74af227b5745ce5390624f8fc94f638 /host/tests/devtest/README.md | |
| parent | 09a69b22ae41ca6b9935508d523ae88df58301f3 (diff) | |
| parent | eb2f57a6241ce04a3d89c5f41557658387440c3f (diff) | |
| download | uhd-c41a7fa386a467ba76d5f09f390cb62a1bfa7282.tar.gz uhd-c41a7fa386a467ba76d5f09f390cb62a1bfa7282.tar.bz2 uhd-c41a7fa386a467ba76d5f09f390cb62a1bfa7282.zip | |
Merge branch 'master' into x300/dram
Diffstat (limited to 'host/tests/devtest/README.md')
| -rw-r--r-- | host/tests/devtest/README.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/host/tests/devtest/README.md b/host/tests/devtest/README.md new file mode 100644 index 000000000..ee1ff3c9f --- /dev/null +++ b/host/tests/devtest/README.md @@ -0,0 +1,28 @@ +# 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. + |
