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 /zephyr/zmake/tests/files/sample_rw_INFO.txt | |
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 'zephyr/zmake/tests/files/sample_rw_INFO.txt')
-rw-r--r-- | zephyr/zmake/tests/files/sample_rw_INFO.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/zmake/tests/files/sample_rw_INFO.txt b/zephyr/zmake/tests/files/sample_rw_INFO.txt new file mode 100644 index 0000000000..0e350873fc --- /dev/null +++ b/zephyr/zmake/tests/files/sample_rw_INFO.txt @@ -0,0 +1,4 @@ +Memory region Used Size Region Size %age Used +FLASH: 241868 B 512 KB 46.13% +SRAM: 48632 B 62 KB 76.60% +IDT_LIST: 0 GB 2 KB 0.00% |