-
Notifications
You must be signed in to change notification settings - Fork 57
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
Code coverage improvements. #942
base: main
Are you sure you want to change the base?
Conversation
TODO: add correct dependency to everest utils as well (also in everest core???) |
86e094c
to
717200e
Compare
lib/CMakeLists.txt
Outdated
@@ -191,3 +191,5 @@ endif() | |||
# 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) |
There was a problem hiding this comment.
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
tests/CMakeLists.txt
Outdated
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 |
There was a problem hiding this comment.
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
…obally). Run script to remove gcda files and orphaned object / gcno files (useful after switching branches) Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
018dea7
to
0a91a3e
Compare
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
0a91a3e
to
6c60b4a
Compare
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