[CMake] cdash, gcov and cxxtest

David Cole david.cole at kitware.com
Fri Nov 7 12:13:20 EST 2008


In a "${CMAKE_BINARY_DIR}/CTestCustom.cmake" file, use something like this
expression copied from VTK's code:
SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
  "vtk.*TCLInit.cxx"
  "vtk[^\\.]+(Java|Python|Tcl).cxx"
  "Utilities.kwsys"
  "Utilities.vtksys"
  )

CTEST_CUSTOM_COVERAGE_EXCLUDE is a list of regular expressions. Any file
name that matches any of the regular expressions in the list is excluded
from the reported coverage data.


HTH,
David


On Fri, Nov 7, 2008 at 10:55 AM, Ioan Calin Borcoman <iborco at gmail.com>wrote:

> Hi,
>
> While playing with cxxtest, gcov and cdash, I've discovered that
> cxxtest framework uses a lot of helper files and this screws the final
> code coverage.
>
> Is it possible to tell CDash or CTest to ignore some of the coverage data?
>
> Thanx,
>
> Ionutz
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081107/5269a34d/attachment.htm>


More information about the CMake mailing list