public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Support and additional information to use GCOV
@ 2021-10-19  5:58 Soumyaranjan Sabat
  0 siblings, 0 replies; only message in thread
From: Soumyaranjan Sabat @ 2021-10-19  5:58 UTC (permalink / raw)
  To: gcc-help

Hello Team,

Had a couple of queries for use of gcov. Requesting for your help !!

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?

2. 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.

Regards,
Soumyaranjan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-19  5:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19  5:58 Support and additional information to use GCOV Soumyaranjan Sabat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).