Re: [CMake] Running coverage analysis

2012-01-03 Thread Bill Lorensen
There are ITK Utilities scripts that I plan to move into VTK. For the time being, you can run them on VTK if you have an ITK checkout. I have been doing this with some VTK classes I plan to add. The computeCodeCoverageLocallyForOneTest.sh is especially useful if you want to check coverage on a few

Re: [CMake] Running coverage analysis

2012-01-03 Thread David Cole
The way I have always approached problems like this is to check out what existing scripts are doing that are already successfully submitting coverage results. This one is on the VTK dashboard: http://cdash.org/CDash/viewNotes.php?buildid=1880030 This one on CMake: http://cdash.org/CDash/viewNotes

Re: [CMake] Running coverage analysis

2012-01-03 Thread David Doria
On Tue, Jan 3, 2012 at 9:52 AM, David Cole wrote: > To actually run the coverage testing, you need to have tests added with > add_test in your CMakeLists file, then you need to run a ctest -S script > that calls ctest_coverage, or use one of the predefined coverage dashboard > targets. (Use 'make

Re: [CMake] Running coverage analysis

2012-01-03 Thread David Cole
To actually run the coverage testing, you need to have tests added with add_test in your CMakeLists file, then you need to run a ctest -S script that calls ctest_coverage, or use one of the predefined coverage dashboard targets. (Use 'make help | grep Coverage' to see those.) On Jan 2, 2012, a

[CMake] Running coverage analysis

2012-01-02 Thread David Doria
I found this wiki page: http://www.vtk.org/Wiki/CTest/Coverage#Coverage_With_C.2B.2B that explains the flags that are necessary. I set up a demo project here and it compiles: http://www.vtk.org/Wiki/CTest/Coverage/Example However, how do you actually run the coverage analysis? I ran 'ctest' but