From 9a75dcf3a3c0f71b49b4d2a7a7f154d008979159 Mon Sep 17 00:00:00 2001 From: Samuel O'Brien Date: Wed, 1 Jul 2020 09:00:53 -0500 Subject: 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 --- host/tests/common/chdr_resource/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/tests/common/chdr_resource/README.md') 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 `. +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 ` in C++ and `from chdr_resource import {filename}` in Python. -- cgit v1.2.3