[CMake] Coverage Woes

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Dec 22 10:54:48 EST 2008


On Mon, Dec 22, 2008 at 4:50 PM, David Cole <david.cole at kitware.com> wrote:
> "No such file or directory" is probably looking for a non-existent
> CTEST_COVERAGE_COMMAND.

ok.

> Try setting CTEST_COVERAGE_COMMAND to "/usr/bin/gcov" in your new style
> script instead of putting a COVERAGE_COMMAND entry in the initial cache.
> With the new style script, ctest does not rely on entries in the
> CMakeCache.txt file.

done.

Index: zorglub_gdcm2_branch2_0_gcc42_coverage.cmake
===================================================================
RCS file: /var/lib/cvs/utils/testMatt/Attic/zorglub_gdcm2_branch2_0_gcc42_coverage.cmake,v
retrieving revision 1.1.2.7
diff -u -r1.1.2.7 zorglub_gdcm2_branch2_0_gcc42_coverage.cmake
--- zorglub_gdcm2_branch2_0_gcc42_coverage.cmake        13 Oct 2008
13:42:07 -0000      1.1.2.7
+++ zorglub_gdcm2_branch2_0_gcc42_coverage.cmake        22 Dec 2008
15:54:17 -0000
@@ -14,6 +14,7 @@
 SET(CTEST_SOURCE_DIRECTORY              "${CTEST_DASHBOARD_ROOT}/gdcm-2-0")
 SET(CTEST_BINARY_DIRECTORY
"${CTEST_DASHBOARD_ROOT}/gdcm-2-0-nightly-cov")
 SET(CTEST_UPDATE_COMMAND                "/usr/bin/svn")
+SET(CTEST_COVERAGE_COMMAND              "/usr/bin/gcov")
 SET(CTEST_CMAKE_GENERATOR               "Unix Makefiles")
 SET(CTEST_BUILD_CONFIGURATION           "Debug")
 #SET(CTEST_MEMORYCHECK_COMMAND           "/usr/bin/valgrind")


> I am using new style scripts with Bullseye on Windows (although not nightly)
> and when I set CTEST_COVERAGE_COMMAND, my new style scripts work ok...


Thanks !

-- 
Mathieu


More information about the CMake mailing list