Differences between revisions 8 and 9
Revision 8 as of 2013-10-28 17:36:05
Size: 1157
Editor: lu_zero
Comment:
Revision 9 as of 2013-10-28 17:36:25
Size: 1159
Editor: lu_zero
Comment:
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
{{{  {{{
Line 21: Line 21:
}}}  }}}

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.

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

Coverage reports with lcov

Install lcov.

  • Build with coverage annotation (using gcov). Libav has a builtin support for gcov
     ./configure --toolchain=gcov
  • 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