The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12910 ====================================================================== Reported By: Andreas Schuh Assigned To: ====================================================================== Project: CMake Issue ID: 12910 Category: CTest Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-01-24 00:52 EST Last Modified: 2012-01-24 00:52 EST ====================================================================== Summary: FindUncoveredFiles(): Uncovered files only searched in source tree Description: The cmCTestCoverageHandler::FindUncoveredFiles() method prepends the top directory of the source tree to the glob expressions specified by CTEST_EXTRA_COVERAGE_GLOB in, for example, the CTestCustom.cmake file.
Now is it, however, also common that source files are configured during the configuration of the build system and the configured files are placed in the binary directory. These configured files are the ones which get compiled and linked into the binaries which are executed during testing. For example, consider a config.cxx.in file in the source tree, which is configured to config.cxx in the build tree. When defining extra coverage globs, the file would need to be searched for in the binary tree instead of the source tree. The FindUncoveredFiles() method should therefore either for each glob expression prepend once the top directory of the source tree and once the top directory of the binary tree or leave absolute glob expression, i.e., ones starting with a leading slash (/) unmodified. If a file is found in both trees, the one in the binary directory should probably take precedence as there must have been a reason that this file was configured/copied to the binary tree. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-01-24 00:52 Andreas Schuh New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers