diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-01-10 13:07:47 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-14 16:47:46 +0000 |
commit | 0e0865f84590297ffb26a260fb29127476dcac29 (patch) | |
tree | b97eab2139ab571c3c5f6b77c6993bf74199d94f /zephyr/test/drivers | |
parent | 2dc7d4c8ad0f1a5e831ed7c3863343204aa87d61 (diff) | |
download | chrome-ec-0e0865f84590297ffb26a260fb29127476dcac29.tar.gz |
zephyr: Add branch coverage to all lcov cmds
If you don't include --rc lcov_branch_coverage=1 on every lcov command,
lcov will drop the branch information at that stage of processing.
Add --rc lcov_branch_coverage=1 to all lcov commands.
BRANCH=None
BUG=None
TEST=None
Change-Id: I3fd2a036f9f2fcfaeec60bdc55cfcba28e6c8228
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3381536
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Commit-Queue: Aaron Massey <aaronmassey@google.com>
Diffstat (limited to 'zephyr/test/drivers')
-rw-r--r-- | zephyr/test/drivers/README.md | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/zephyr/test/drivers/README.md b/zephyr/test/drivers/README.md index 1d264a4f67..bab73cebd8 100644 --- a/zephyr/test/drivers/README.md +++ b/zephyr/test/drivers/README.md @@ -20,13 +20,11 @@ To calculate code coverage for this test only ```bash (chroot) zmake configure --coverage --test zephyr/test/drivers -(chroot) lcov --gcov-tool ~/trunk/src/platform/ec/util/llvm-gcov.sh -q \ - -o build/zephyr/test/drivers/lcov.info -c -d build/zephyr/test/drivers -(chroot) genhtml -q -o build/zephyr/test/drivers/coverage_rpt \ - build/zephyr/test/drivers/lcov.info +(chroot) genhtml -q -o build/zephyr/test-drivers/output/coverage_rpt \ + build/zephyr/test-drivers/output/zephyr.info ``` -The report will be in build/zephyr/test/drivers/coverage_rpt/index.html +The report will be in build/zephyr/test-drivers/output/coverage_rpt/index.html ## Debugging |