Differences between revisions 5 and 6
Revision 5 as of 2013-10-24 23:32:59
Size: 664
Editor: lu_zero
Comment: Minor edit
Revision 6 as of 2013-10-27 11:03:39
Size: 767
Editor: lu_zero
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:

{{{#!wiki alert alert-success
You need to install [[http://ltp.sourceforge.net/coverage/lcov.php|lcov]] and use a compiler supporting
gcov annotations, such as '''gcc''' or '''clang'''
}}}
Line 8: Line 13:
 {{{#!wiki alert alert-success
   gcov is supported by gcc and clang currently
 }}}
Line 15: Line 17:
Line 20: Line 21:
Line 25: Line 25:

Coverage Analisys with lcov and FATE

You need to install lcov and use a compiler supporting gcov annotations, such as gcc or clang

  • Build with coverage annotation (using gcov). Libav has a builtin support for gcov
     ./configure --toolchain=gcov
  • reset the lcov coverage data
     lcov --directory . --zerocounters
  • run fate
     make fate
  • collect the coverage information
     lcov --directory . --capture --output-file coverage.info
  • generate an human readable report
     mkdir lcov-output
     genhtml -o lcov-output coverage.info


CategoryHowTo