diff options
author | Simon Glass <sjg@chromium.org> | 2021-04-07 17:00:09 +1200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-03 21:31:13 +0000 |
commit | 200fd26fb76712ba8be104f767095e3488a99263 (patch) | |
tree | 771fe74da39dad5051dcb6fa5004dbc6f7459b8e /docs/zephyr_build.md | |
parent | f5431c0a0f7ae6ed7ea3e5f45faf168caef8b9c6 (diff) | |
download | chrome-ec-200fd26fb76712ba8be104f767095e3488a99263.tar.gz |
zephyr: zmake: Add a test for zmake and output filtering
At present there are no tests for zmake.py itself. Add a simple one to
provide some coverage.
Use this to test that the filtering does what we expect. This works by
using some pre-canned output for the RO and RW, running each file
through a separate 'cat' command in its own process, then comparing
the results obtained in the log.
BUG=b:177096315
BRANCH=none
TEST=cros workon --host start chromeos-base/zephyr-build-tools && \
sudo emerge chromeos-base/zephyr-build-tools && \
make -j16 runhosttests buildall && zmake testall && \
zephyr/firmware_builder.py --metrics /tmp/tmplt8ty8ci test ; echo $?
count=0 ; while pytest --verbose zephyr/zmake/tests/test_zmake.py ; do
count=$(($count + 1)) ; echo "PASSED $count times" ;
rm -rf .pytest_cache/ ; done
Change-Id: I9749d9533091ad5c54c298ba6268efcd91fd2bf4
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2863945
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'docs/zephyr_build.md')
-rw-r--r-- | docs/zephyr_build.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/zephyr_build.md b/docs/zephyr_build.md index 79a3c7e42f..5a3c809724 100644 --- a/docs/zephyr_build.md +++ b/docs/zephyr_build.md @@ -71,7 +71,7 @@ You may also need to install these items: ```bash sudo apt-get install cmake ninja-build python3-pyelftools gcc-multilib \ - python3-pykwalify python3-colorama + python3-pykwalify python3-colorama python3-testfixtures ``` You must reinstall zmake after any `repo sync` since new features may have been |