-
Notifications
You must be signed in to change notification settings - Fork 135
split lcov and genhtml cmake opts for the Coverage profile #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 29.x-knots
Are you sure you want to change the base?
Changes from 6 commits
7aa60c6
39f21c9
c115fc1
e2d638f
b71b968
2c2d23e
e3e917f
97a898f
b581b44
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,13 @@ separate_arguments(LCOV_OPTS) | |
| set(LCOV_COMMAND ${LCOV_EXECUTABLE} --gcov-tool ${CMAKE_CURRENT_LIST_DIR}/cov_tool_wrapper.sh ${LCOV_OPTS}) | ||
|
|
||
| find_program(GENHTML_EXECUTABLE genhtml REQUIRED) | ||
| set(GENHTML_COMMAND ${GENHTML_EXECUTABLE} --show-details ${LCOV_OPTS}) | ||
| # If HTML_OPTS is not provided, implicitly pass LCOV_OPTS to genhtml. | ||
| separate_arguments(HTML_OPTS) | ||
tevio marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
tevio marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
tevio marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| set(GENHTML_OPTS ${HTML_OPTS}) | ||
| if(NOT GENHTML_OPTS) | ||
tevio marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| set(GENHTML_OPTS ${LCOV_OPTS}) | ||
| endif() | ||
| set(GENHTML_COMMAND ${GENHTML_EXECUTABLE} --show-details ${GENHTML_OPTS}) | ||
|
|
||
| find_program(GREP_EXECUTABLE grep REQUIRED) | ||
| find_program(AWK_EXECUTABLE awk REQUIRED) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -508,6 +508,13 @@ enabled by setting `LCOV_OPTS="--rc branch_coverage=1"`: | |
| cmake -DLCOV_OPTS="--rc branch_coverage=1" -P build/Coverage.cmake | ||
| ``` | ||
|
|
||
| HTML_OPTS can be specified to provide an options override to genhtml from the default LCOV_OPTS, the program that generates the | ||
tevio marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
tevio marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| html report from lcov: `HTML_OPTS="--exclude boost"`. | ||
|
||
|
|
||
| ``` | ||
| cmake -DHTML_OPTS="--exclude boost" -P build/Coverage.cmake | ||
| ``` | ||
|
|
||
| To enable test parallelism: | ||
| ``` | ||
| cmake -DJOBS=$(nproc) -P build/Coverage.cmake | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.