It's basically a different version of the article "FATE/TestingCoverage" on FFmpeg wiki.
The OS used is Ubuntu 12.04 (LTS).
Most of these instructions should work for other versions of Ubuntu, as well as Debian too.
Install LCOV package:
Code: Select all
$ apt-get install lcov
Configure your FFmpeg build as usual, but add the following build option:
Code: Select all
--toolchain=gcov
Then compile/build FFmpeg:
Code: Select all
$ make clean && make
Code: Select all
# The -j parameter controls thread number for parallel building
$ make -k -j6 fate
Generate LCOV HTML output:
Code: Select all
$ make lcov
Open the file "index.html" in the folder "lcov" in FFmpeg's source tree.
Links: