In a "${CMAKE_BINARY_DIR}/CTestCustom.cmake" file, use something like this expression copied from VTK's code:<div><div><br></div><div>SET(CTEST_CUSTOM_COVERAGE_EXCLUDE</div><div> ${CTEST_CUSTOM_COVERAGE_EXCLUDE}</div>
<div> "vtk.*TCLInit.cxx"</div><div> "vtk[^\\.]+(Java|Python|Tcl).cxx"</div><div> "Utilities.kwsys"</div><div> "Utilities.vtksys"</div><div> )</div><div><br></div><div>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.</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><br><div class="gmail_quote">On Fri, Nov 7, 2008 at 10:55 AM, Ioan Calin Borcoman <span dir="ltr"><<a href="mailto:iborco@gmail.com">iborco@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
While playing with cxxtest, gcov and cdash, I've discovered that<br>
cxxtest framework uses a lot of helper files and this screws the final<br>
code coverage.<br>
<br>
Is it possible to tell CDash or CTest to ignore some of the coverage data?<br>
<br>
Thanx,<br>
<br>
Ionutz<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>