Support and additional information to use GCOV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux