Skip to content
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

Additional support on Gcov usage #1

Open
soumyaranjansabat opened this issue Oct 19, 2021 · 0 comments
Open

Additional support on Gcov usage #1

soumyaranjansabat opened this issue Oct 19, 2021 · 0 comments

Comments

@soumyaranjansabat
Copy link

  1. There are 2 configurations for a file [trigger.c] due to a macro i.e #define TRIGGER which can have values ON and OFF [ and hence 2 configurations ]. By 2 configurations, it is meant that

a. Configuration 1 : trigger.c - #define TRIGGER ON
b. Configuration 1 : trigger.c - #define TRIGGER OFF

Due to 2 different macros, different parts of code are enabled. But a consolidated coverage report is required, i.e which combines both coverage reports of configuration 1 and configuration 2 into a single report to show if any part of the code is missed to test.

Is this possible by directly using gcov and/or Gcovr and/or Gcov-tool and/or Gcov-dump?

  1. Is it possible to check for coverage of a particular file? i.e in a project there are multiple files such as trigger.c , trigger_internal.c etc but consolidated coverage of only trigger.c is required.

Please advise how to proceed on these 2 queries.

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

No branches or pull requests

1 participant