[CMake] Re: CMake and memory leak testing?

Matthew Woehlke mw_triad at users.sourceforge.net
Thu Mar 15 16:00:04 EST 2007


Bill Hoffman wrote:
> Matthew Woehlke wrote:
>> ...on a similar note to the recent post regarding "CMake and 
>> profiling...", is there any support (current or planned) for leak 
>> testing of test suites? What I would like to do is have a bunch of 
>> tests that are run (possibly twice; once normally, and once) under 
>> valgrind or another leak checker. Such a test fails if there is any 
>> non-freed memory in use when the application exits. This would help to 
>> catch memory management bugs.
>>
> We do both coverage and valgrind testing on CMake itself.  See the 
> dashboard: 
> http://www.cmake.org/Testing/Dashboard/20070315-0100-Nightly/Dashboard.html
> 
> At the bottom of the page it shows the coverage and dynamic analysis 
> results.  You can then look up site/build names that match that build, 
> and then look at the Notes for that build to see how this was done.
> 
> Here is a profile build, and a valgrind build:
> 
> http://www.cmake.org/Testing/Sites/dash17.kitware/Linux-g++4.0/20070315-0100-Nightly/Notes.html 

...how would I do that without a dashboard? I want to be able to run 
some (preferably not all) of my ADD_TEST tests through valgrind to get a 
pass/fail like 'make test'.

-- 
Matthew
Caution: keep out of reach of adults.



More information about the CMake mailing list