diff options
author | Brad King <brad.king@kitware.com> | 2016-04-07 12:57:41 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-04-07 12:57:41 (GMT) |
commit | 7d5a0f5f60b9ba60c90a43c42f157c658319e6ef (patch) | |
tree | 473877af34eb7500276d9c3f29111092156f2977 /Tests | |
parent | cdce3cc902fee88250bc7e04e2ff7424fb2962e6 (diff) | |
parent | 8ea1b0df58a65092a8c82cb5491f6d0af08ba8e7 (diff) | |
download | CMake-7d5a0f5f60b9ba60c90a43c42f157c658319e6ef.zip CMake-7d5a0f5f60b9ba60c90a43c42f157c658319e6ef.tar.gz CMake-7d5a0f5f60b9ba60c90a43c42f157c658319e6ef.tar.bz2 |
Merge topic 'branch_coverage_glob'
8ea1b0df CTestCoverageCollectGCOV: Improve documentation
425d7646 CTestCoverageCollectGCOV: Honor CTEST_EXTRA_COVERAGE_GLOB
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CTestCoverageCollectGCOV/TestProject/extra/uncovered1.cpp | 0 | ||||
-rw-r--r-- | Tests/CTestCoverageCollectGCOV/TestProject/uncovered2.cpp | 0 | ||||
-rw-r--r-- | Tests/CTestCoverageCollectGCOV/test.cmake.in | 4 |
3 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CTestCoverageCollectGCOV/TestProject/extra/uncovered1.cpp b/Tests/CTestCoverageCollectGCOV/TestProject/extra/uncovered1.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Tests/CTestCoverageCollectGCOV/TestProject/extra/uncovered1.cpp diff --git a/Tests/CTestCoverageCollectGCOV/TestProject/uncovered2.cpp b/Tests/CTestCoverageCollectGCOV/TestProject/uncovered2.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Tests/CTestCoverageCollectGCOV/TestProject/uncovered2.cpp diff --git a/Tests/CTestCoverageCollectGCOV/test.cmake.in b/Tests/CTestCoverageCollectGCOV/test.cmake.in index b2e6d6d..d48ef61 100644 --- a/Tests/CTestCoverageCollectGCOV/test.cmake.in +++ b/Tests/CTestCoverageCollectGCOV/test.cmake.in @@ -15,7 +15,9 @@ list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE "/foo/something" "/3rdparty/" "/bar/somethingelse" + "/CMakeFiles/" ) +list(APPEND CTEST_EXTRA_COVERAGE_GLOB "*.cpp") include(CTestCoverageCollectGCOV) set(tar_file ${CTEST_BINARY_DIRECTORY}/gcov.tar) @@ -41,6 +43,8 @@ set(expected_out Testing/CoverageInfo/data.json Testing/CoverageInfo/extra.cpp.gcov Testing/CoverageInfo/main.cpp.gcov + uncovered/extra/uncovered1.cpp + uncovered/uncovered2.cpp ) if("${out}" STREQUAL "${expected_out}") |