diff options
author | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-03-16 16:00:01 +0100 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2022-03-21 18:34:59 +0200 |
commit | 572102b909f3ffe0051bcd1cadae6b1d0ec3c006 (patch) | |
tree | dac03c017071ab32b4eeec194df4d1ff5015b01d /scripts/code_cov_gather_on_test.py | |
parent | 86a01d5cb19d838b24cac479d96167cede266ba2 (diff) |
scripts/run-tests.sh: add code coverage support
When the Kernel is built with GCOV_KERNEL and one or more drivers are
built with GCOV_PROFILE enabled[1], the Kernel will collect code
coverage usage at the same time as a test runs.
Add support at run-tests.sh to collect usage data and store them on
.info files.
That actually require two new options:
-c <test_name>: will store the tests under test_name.info;
-k <kernel_tree>: Points to the source code of the built Kernel.
The Kernel tree can be a partial tree, provided that it contains at
least all *.h files used by the drivers, plus the *.c files that were
built with gcov support enabled.
[1] See https://01.org/linuxgraphics/gfx-docs/drm/dev-tools/gcov.html
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'scripts/code_cov_gather_on_test.py')
0 files changed, 0 insertions, 0 deletions