Skip to content

Conversation

maaikez
Copy link
Contributor

@maaikez maaikez commented Jan 16, 2025

Describe your changes

Append coverage compiler flags only to specific target (instead of globally). Run script to remove gcda files and orphaned object / gcno files (useful after switching branches)

Issue ticket number and link

Checklist before requesting a review

@maaikez
Copy link
Contributor Author

maaikez commented Jan 16, 2025

TODO: add correct dependency to everest utils as well (also in everest core???)

# with gcc 10.x and C++11/14, so we need to publish the
# C++17 standard
target_compile_features(ocpp PUBLIC cxx_std_17)
append_coverage_compiler_flags_to_target(ocpp)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can do this in tests/CMakeLists.txt so these flags don't get added even if you don't want to have coverage enabled

message("The \"ev-dev-tools\" Python3 package is not installed. You can install it going to
`everest-utils/ev-dev-tools` and type `pip install .`")
else()
add_custom_target(cleanup_coverage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a flag so you can disable this

@maaikez maaikez force-pushed the feature/coverage_improvements branch 2 times, most recently from 0a91a3e to 6c60b4a Compare January 29, 2025 14:57
…obally). Run script to remove gcda files and orphaned object / gcno files (useful after switching branches)

Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
@mlitre mlitre force-pushed the feature/coverage_improvements branch from 6c60b4a to d8c0d99 Compare August 26, 2025 08:27
@mlitre mlitre self-requested a review as a code owner August 26, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants