Differences between revisions 6 and 7
Revision 6 as of 2013-10-27 11:03:39
Size: 767
Editor: lu_zero
Revision 7 as of 2013-10-28 15:43:47
Size: 772
Editor: lu_zero
Comment: Thanks to Peter for pointing the missing option
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
 lcov --directory . --zerocounters  lcov -b . --directory . --zerocounters

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