Differences between revisions 9 and 10
Revision 9 as of 2013-10-28 17:36:25
Size: 1159
Editor: lu_zero
Comment:
Revision 10 as of 2013-10-28 17:37:21
Size: 1064
Editor: lu_zero
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
 * run fate
 {{{
 make fate
 }}}
Line 28: Line 31:
 * Build with coverage annotation (using gcov). Libav has a builtin support for gcov
 {{{
 ./configure --toolchain=gcov
 }}}

Coverage Analisys with FATE

Use a compiler supporting gcov annotations, such as gcc or clang

Libav has a builtin support for gcov

  • Build with coverage annotation (using gcov). Libav has a builtin support for gcov
     ./configure --toolchain=gcov

Coverage reports with gcovr

Install gcovr.

  • run fate
     make fate
  • Generate a textual report
    gcovr -b -r ${srcdir} --object-directory ${builddir}

Coverage reports with lcov

Install lcov.

  • reset the lcov coverage data
     lcov -b . -d . --zerocounters
  • run fate
     make fate
  • collect the coverage information
     lcov -b . -d . -c --output-file coverage.info
  • generate an human readable report
     genhtml -o lcov-output coverage.info


CategoryHowTo