[CMake] Using Valgrind on all tests
Ben Boeckel
mathstuf at gmail.com
Mon Jun 7 17:46:56 EDT 2010
Clark Gaebel <cg.wowus.cg at gmail.com> wrote:
> Hello,
>
> I've currently set up CMake and CTest for my building and testing needs,
> but CDash just isn't for me. How do I set up CTest to run all the tests
> in Valgrind? Again, I don't want to use CDash - just CTest.
>
> Also, it'd be great if I get output on leaks, and silence when
> everything's alright.
I also wanted this, and I ended up writing my own targets for it (it
includes other stuff such as callgrind and actual handling of the tests
themselves). The most recent iteration of it is available at:
git clone git://chasmd.org/chasmd.git
The cmake/test.cmake file is the one with the macros to create the
targets and example usage is in the test/ directory.
The output is dumped to files for easier reference rather than to the
terminal, but I'm sure a target that greps the logs for important
strings and errors on that wouldn't be hard to make.
Hope this helps.
--Ben
More information about the CMake
mailing list