aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/common/chdr_resource/README.md
diff options
context:
space:
mode:
authorSamuel O'Brien <sam.obrien@ni.com>2020-07-01 09:00:53 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-07-16 09:59:25 -0500
commit9a75dcf3a3c0f71b49b4d2a7a7f154d008979159 (patch)
tree42f84d5d052739f6ea04219ee49081e14724c1a2 /host/tests/common/chdr_resource/README.md
parent919a147afcbecace5107a4d0a4da556cfd56df92 (diff)
downloaduhd-9a75dcf3a3c0f71b49b4d2a7a7f154d008979159.tar.gz
uhd-9a75dcf3a3c0f71b49b4d2a7a7f154d008979159.tar.bz2
uhd-9a75dcf3a3c0f71b49b4d2a7a7f154d008979159.zip
python: Document CHDR Test Generation
The script_test.py script is used to generate data .cpp files from a wireshark trace for the C++ CHDR Parser tests. This commit expands the script to also generate the data .py files for the Python CHDR Parser tests. Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
Diffstat (limited to 'host/tests/common/chdr_resource/README.md')
-rw-r--r--host/tests/common/chdr_resource/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/tests/common/chdr_resource/README.md b/host/tests/common/chdr_resource/README.md
index 5664cd132..869b7cb5f 100644
--- a/host/tests/common/chdr_resource/README.md
+++ b/host/tests/common/chdr_resource/README.md
@@ -21,4 +21,4 @@ It contains many Data packets, as well as some Stream Status and Stream Command
5. Save the trace with a descriptive name in the `host/tests/common/chdr_resource` directory as a `.c` file
6. In the `host/tests/common/chdr_resource` directory, run `./format_trace.py {filename}`, where `{filename}` is the name of the `.c` file you save the trace as.
-This will create a `.cpp` file of the same name, which contains the trace data inside a namespace matching the filename. The trace can now be accessed in unit tests with `#include <chdr_resource/{filename}.cpp>`.
+This will create a `.cpp` file and a `.py` file of the same name, which contains the trace data inside a namespace matching the filename. The trace can now be accessed in unit tests with `#include <chdr_resource/{filename}.cpp>` in C++ and `from chdr_resource import {filename}` in Python.