mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 13:30:39 +00:00
CTestCoverageCollectGCOV: improve DELETE option
The DELETE option to ctest_coverage_collect_gcov now properly removes all the .gcov files that were created by this function. Previously it left behind any files that were excluded by CTEST_CUSTOM_COVERAGE_EXCLUDE. This option now also deletes the following files/directory that are created by ctest_coverage_collect_gcov: data.json coverage_file_list.txt the uncovered/ directory
This commit is contained in:
parent
7d4c99a957
commit
5de122dfa4
@ -287,10 +287,14 @@ ${uncovered_files_for_tar}
|
||||
WORKING_DIRECTORY ${binary_dir})
|
||||
|
||||
if (GCOV_DELETE)
|
||||
string(REPLACE "\n" ";" gcov_files "${gcov_files}")
|
||||
foreach(gcov_file ${gcov_files})
|
||||
foreach(gcov_file ${unfiltered_gcov_files})
|
||||
file(REMOVE ${binary_dir}/${gcov_file})
|
||||
endforeach()
|
||||
file(REMOVE ${coverage_dir}/coverage_file_list.txt)
|
||||
file(REMOVE ${coverage_dir}/data.json)
|
||||
if (EXISTS ${binary_dir}/uncovered)
|
||||
file(REMOVE ${binary_dir}/uncovered)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
|
Loading…
Reference in New Issue
Block a user