180 likes | 529 Views
Coverage reports with GCOV. Natalia Yastrebova 01.03.2010. What is GCOV and LCOV. GCOV is a test coverage program for GCC. Help create more efficient, faster running code and discover untested parts of your program. LCOV is a graphical front-end for GCC's coverage testing tool.
E N D
Coverage reports with GCOV Natalia Yastrebova 01.03.2010
What is GCOV and LCOV • GCOV is a test coverage program for GCC. Help create more efficient, faster running code and discover untested parts of your program. • LCOV is a graphical front-end for GCC's coverage testing tool.
How to use gcov for shared lib 1. Modify make-file: • Compilation flags + -fprofile-arcs -ftest-coverage • Linked libraries + -lgcov 2. Creating a report in html with lcov: lcov -d . –b . –c - o dir/coverage.info genhtml coverage.info
Combined resultsSummary coverage report • Results for PbPbbench, PPbench, gun, genkine and merge tests
TRD, TOF and TPC detectorsReconstruction coverage comparison
Conclusions and plans • The coverage of tests used to verify AliRoot is low. • We’ll check all existing tests and improve them with respect to the coverage • The reconstruction of selected RAW data files will be included in the coverage estimation • We will include the coverage as a standard target in the AliRootmakefiles/cmake.