]> granicus.if.org Git - libevent/commit
Add a "make verify_coverage" target generation coverage info.
authorJoakim Soderberg <joakim.soderberg@gmail.com>
Tue, 17 Dec 2013 15:17:29 +0000 (15:17 +0000)
committerJoakim Soderberg <joakim.soderberg@gmail.com>
Tue, 17 Dec 2013 15:17:29 +0000 (15:17 +0000)
commitf2483f8b3d781f052d2d38902c314a54645d21a4
tree398983bf66940c21f1297b65dbce3f1e9dd3f652
parent0ef1d04e446ac051d4a2957c29710f6e90709605
Add a "make verify_coverage" target generation coverage info.

Use lcov/gcov to gather coverage info for the tests (Only works with gcc/clang and make).

cmake -DEVENT__COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug ..
make
make verify_coverage

Current coverage (run on debian):
Line coverage 79.1 % 10231 / 12939
Function coverage 86.1 % 933 / 1083
CMakeLists.txt
cmake/CodeCoverage.cmake [new file with mode: 0644]