This module provides the ctest_coverage_collect_gcov
function.
This function runs gcov on all .gcda files found in the binary tree and packages the resulting .gcov files into a tar file. This tarball also contains the following:
LABELS
that have been set on the source files.CTEST_EXTRA_COVERAGE_GLOB
.After generating this tar file, it can be sent to CDash for display with the ctest_submit(CDASH_UPLOAD)
command.
cdash_coverage_collect_gcov
ctest_coverage_collect_gcov(TARBALL <tarfile> [SOURCE <source_dir>][BUILD <build_dir>] [GCOV_COMMAND <gcov_command>] [GCOV_OPTIONS <options>...] )
Run gcov and package a tar file for CDash. The options are:
TARBALL <tarfile>
.tar
file to be created for later upload to CDash. Relative paths will be interpreted with respect to the top-level build directory.SOURCE <source_dir>
CTEST_SOURCE_DIRECTORY
.BUILD <build_dir>
CTEST_BINARY_DIRECTORY
.GCOV_COMMAND <gcov_command>
gcov
command on the machine. Default is the value of CTEST_COVERAGE_COMMAND
.GCOV_OPTIONS <options>...
gcov
command is run as gcov <options>... -o <gcov-dir> <file>.gcda
. If not specified, the default option is just -b
.GLOB
DELETE
QUIET
© 2000–2018 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.12/module/CTestCoverageCollectGCOV.html