[CMake] can I run individual tests with valgrind?

Bill Hoffman bill.hoffman at kitware.com
Fri Apr 20 12:50:04 EDT 2007


kent williams wrote:
> I know that I can use valgrind for a nightly memory check with
>
> ctest -D NightlyMemoryCheck
>
> or if I know my build is successful, just do this
>
> ctest -D NightlyMemCheck
>
> What I don't know is how I can make running a single test, e.g.
>
> ctest -R OneParticularRegressionTest
>
> with valgrind, short of running
This should work:

ctest -D ExperimentalMemCheck -R OneTest

The -R will work with the -D stuff.

-Bill



More information about the CMake mailing list