[cfe-dev] Code coverage of llvm, clang, lldb & polly
Sylvestre Ledru
sylvestre at debian.org
Fri May 17 08:09:56 PDT 2013
Hello,
Plugged in the Jenkins instance used to build Debian & Ubuntu nightly
package, I configured a code coverage tool (lcov) with all the tests of
these projects.
Results are published here:
http://buildd-clang.debian.net/coverage/
This URL is updated twice a day (it might change since it is taking a
long time).
For those who would like to have their own setup, with gcc, use the
following declaration:
CXXFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-coverage -lgcov"
Rebuild everything, launch the tests and run:
REPORT=reports/scilab-code-coverage.info
BUILD_DIR=reports/
mkdir -p $BUILD_DIR
lcov --directory $BUILD_DIR --capture --ignore-errors source
--output-file $REPORT
lcov --remove $REPORT "/usr*" -o $REPORT
lcov --remove $REPORT "$BUILD_DIR/*" -o $REPORT
genhtml -o reports/coverage --show-details --highlight --legend $REPORT
Cheers,
Sylvestre
More information about the cfe-dev
mailing list