Lines Matching +full:- +full:- +full:gcov +full:- +full:executable
2 # Boost Software License - Version 1.0 - August 17th, 2003
8 # Software, and to permit third-parties to whom the Software is furnished to
15 # works are solely in the form of machine-executable object code generated by
20 # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
26 # 2012-01-31, Lars Bilke
27 # - Enable Code Coverage
29 # 2013-09-17, Joakim Söderberg
30 # - Added support for Clang.
31 # - Some additional usage instructions.
33 # 2016-11-02, Azat Khuzhin
34 # - Adopt for C compiler only (libevent)
43 # SET(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
44 # SET(CMAKE_C_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
47 # which runs your test executable and produces a lcov code coverage report:
51 # test_driver # Name of the test driver executable that runs the tests.
58 # cmake -DCMAKE_BUILD_TYPE=Debug ..
65 FIND_PROGRAM( GCOV_PATH gcov )
71 MESSAGE(FATAL_ERROR "gcov not found! Aborting...")
75 # Clang version 3.0.0 and greater now supports gcov as well.
76 …MESSAGE(WARNING "Compiler is not GNU gcc! Clang Version 3.0.0 and greater supports gcov as well, b…
84 MESSAGE( WARNING "Code coverage results with an optimized (non-Debug) build may be misleading" )
95 # Pass them in list form, e.g.: "-j;2" for -j 2
110 ${LCOV_PATH} --directory . --zerocounters
116 COMMAND ${LCOV_PATH} --directory . --capture --output-file ${_outputname}.info
117 …COMMAND ${LCOV_PATH} --remove ${_outputname}.info 'tests/*' '/usr/*' --output-file ${_outputname}.…
118 COMMAND ${GENHTML_PATH} -o ${_outputname} ${_outputname}.info.cleaned
119 COMMAND ${CMAKE_COMMAND} -E remove ${_outputname}.info ${_outputname}.info.cleaned
137 # Pass them in list form, e.g.: "-j;2" for -j 2
154 …COMMAND ${GCOVR_PATH} -x -r ${CMAKE_SOURCE_DIR} -e '${CMAKE_SOURCE_DIR}/tests/' -o ${_outputname}…