Changes between Version 1 and Version 2 of FATE/TestingCoverage
- Timestamp:
- Mar 20, 2014, 3:43:47 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FATE/TestingCoverage
v1 v2 3 3 One 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]. 4 4 5 == Getting Started==5 == `./configure` == 6 6 7 '''WIP''' 7 First, 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 }}} 8 14 9 15 == Using lcov == 10 16 11 '''WIP''' 17 If you are using lcov, you have to first reset its counter: 18 19 {{{ 20 make lcov-reset 21 }}} 22 23 Then, run the FATE suite: 24 25 {{{ 26 # The -j parameter controls thread number for parallel building 27 make -k -j6 fate 28 }}} 29 30 Finally, generate the HTML output: 31 32 {{{ 33 make lcov 34 }}} 12 35 13 36 == Using gcovr ==
