• Sergey Bronnikov's avatar
    make: update target to measure code coverage · a57fba05
    Sergey Bronnikov authored
    This patch updates Makefile for measuring code coverage in CRIU.
    
    criu binary should be compiled with option --coverage and linked with -lgcov
    option. lcov utility creates HTML pages containing the source code annotated
    with coverage information.
    
    make GCOV=1
    make test
    make gcov
    Look at gcov/html/index.html
    
    Changes:
    - disable optimization on compilation for gathering coverage data
    - mention an option for coverage in help
    - cleanup the files produced for code coverage
    - make path to coverage files produced by tests in ns independent on environment
    - add an option lcov_branch_coverage as branch coverage disabled by default
    Signed-off-by: 's avatarSergey Bronnikov <sergeyb@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    a57fba05
Makefile 9.68 KB