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
.tar
file to be created for later upload to CDash. Relative paths will be interpreted with respect to the top-level build directory.SOURCE
CTEST_SOURCE_DIRECTORY
.BUILD
CTEST_BINARY_DIRECTORY
.GCOV_COMMAND
gcov
command on the machine. Default is the value of CTEST_COVERAGE_COMMAND
.GCOV_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–2016 Kitware, Inc.
© 2000–2011 Insight Software Consortium
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.7/module/CTestCoverageCollectGCOV.html