diff options
author | Tristan Honscheid <honscheid@google.com> | 2022-07-19 14:13:16 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-22 15:13:17 +0000 |
commit | 1041d49b493d4036ae1a554ea5bc68bc151372fd (patch) | |
tree | 059af8e39cd2503f04aa3d4580248981feb8d48f /twister | |
parent | 83b8d53fa25fef09acd768572d8c2d9b58388f97 (diff) | |
download | chrome-ec-1041d49b493d4036ae1a554ea5bc68bc151372fd.tar.gz |
zephyr: Add wrapper script for calling twister
Add a wrapper script that helps invoke twister with the correct
configuration and defaults for running EC tests. Developers can simply
run `./twister` from `src/platform/ec` to run all Twister-compatible EC
tests, or specify specific tests to run by adding `-T path/to/testroot`
arguments. Other CLI args are passed straight through to Twister.
This CL also adds a testcase.yaml file to the `math` test, allowing it
to be run through Twister:
```
cd $CROS_WORKON_SRCROOT/src/platform/ec
./twister (or)
./twister -T zephyr/test/math
```
Twister's output directories, `twister-out` and `twister-out.N` have
been added to the `.gitignore`.
The `firmware_builder.py` CQ script now also calls Twister and can merge
in coverage reports.
BRANCH=None
BUG=None
TEST=./twister
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: If6ff10ffb76655912c96a66aec28d12dcebd1764
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3773766
Reviewed-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'twister')
l--------- | twister | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/twister b/twister new file mode 120000 index 0000000000..7b6dd74c5c --- /dev/null +++ b/twister @@ -0,0 +1 @@ +util/twister_launcher.py
\ No newline at end of file |