diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-04-22 13:36:58 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-22 22:33:55 +0000 |
commit | ecb36e6210c65f25716ca25ff25583d9cc11af4c (patch) | |
tree | 164b7823d61d7717b49100388cb4a242b6456e38 /docs | |
parent | 13002e2dcb27f9de6e4f083daf1ac367f28d7c83 (diff) | |
download | chrome-ec-ecb36e6210c65f25716ca25ff25583d9cc11af4c.tar.gz |
zephyr: zmake: Add test_args to project configuration
For tests, provide a mechanism to pass extra arguments on the command
line to the test binary. A temporary directory is provided to place
temp files.
The purpose of doing so can be seen in the modified BUILD.py for the
drivers test: the drivers test has been littering a `flash.bin` file
in the working directory, and we'd like to stop that if we can.
BUG=b:230107609
BRANCH=none
TEST=zmake test test-drivers -> no flash.bin litter
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I52e9ed68489eea46b109e0e553bd6cf26c23a64a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3602223
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Commit-Queue: Aaron Massey <aaronmassey@google.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/zephyr/project_config.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/zephyr/project_config.md b/docs/zephyr/project_config.md index 664e7b0c64..f12d47ba36 100644 --- a/docs/zephyr/project_config.md +++ b/docs/zephyr/project_config.md @@ -73,6 +73,10 @@ When `BUILD.py` is sourced, the following two globals are defined: build in a limited environment where not all modules are available. - `is_test` (optional): `True` if the code should be executed as a test after compilation, `False` otherwise. Defaults to `False`. +- `test_args` (optional): A list of command line arguments that should + be used when running the test. Instances of `{test_temp_dir}` + inside of an argument will be replaced with a path to a temporary + directory guaranteed to be unique for the current execution. - `dts_overlays` (optional): A list of files which should be concatenated together and applied as a Zephyr device-tree overlay. Defaults to no overlays (empty list). |