Changes between Version 1 and Version 2 of FATE/TestingCoverage


Ignore:
Timestamp:
Mar 20, 2014, 5:43:47 AM (5 years ago)
Author:
Timothy_Gu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FATE/TestingCoverage

    v1 v2  
    33One can easily discover untested components of FFmpeg using coverage testing. A online coverage report is available at [http://coverage.ffmpeg.org/], but you can generate one yourself with [http://gcc.gnu.org/onlinedocs/gcc/Gcov.html gcov] and either [http://ltp.sourceforge.net/coverage/lcov.php lcov] or [http://gcovr.com/ gcovr].
    44
    5 == Getting Started ==
     5== `./configure` ==
    66
    7 '''WIP'''
     7First, configure the build with the special gcov toolchain:
     8
     9{{{
     10./configure --toolchain=gcov --rest-of-options
     11# For example, I use:
     12# ./configure --toolchain=gcov --enable-gpl --enable-avresample --samples=`pwd`/fate-suite
     13}}}
    814
    915== Using lcov ==
    1016
    11 '''WIP'''
     17If you are using lcov, you have to first reset its counter:
     18
     19{{{
     20make lcov-reset
     21}}}
     22
     23Then, run the FATE suite:
     24
     25{{{
     26# The -j parameter controls thread number for parallel building
     27make -k -j6 fate
     28}}}
     29
     30Finally, generate the HTML output:
     31
     32{{{
     33make lcov
     34}}}
    1235
    1336== Using gcovr ==