]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Run code coverage on your local machine
authorKonrad Kleine <konrad.wilhelm.kleine@gmail.com>
Wed, 10 Jul 2013 15:40:55 +0000 (17:40 +0200)
committerKonrad Kleine <konrad.wilhelm.kleine@gmail.com>
Wed, 10 Jul 2013 15:46:37 +0000 (17:46 +0200)
commit47b6ab9dcea4ca2dc9f3b74707837e3814650c25
treef8c9f761b4782d8080a1aa2e9e8972b7e4a3c9b7
parenta7d62141d99979bc53934f2be99828eff3332999
Run code coverage on your local machine

This change introduces a new make target called "coverage" it will
compile your code using special GCC flags, run the tests, and then
generate a nice HTML output.

This new make target will only be available if you build using GCC in
Debug mode.

To build the code coverage and open it in your browser do this:

    mkdir debug
    cd debug
    cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON ..
    make -j20
    make coverage
    xdg-open coverage/index.html
CMakeLists.txt