[CMake] Using Valgrind on all tests
Chris Hillery
chillery-cmake at lambda.nu
Tue Jun 8 00:37:25 EDT 2010
Would it be possible to use ctest -D without actually submitting to CDash?
Something like
ctest -D ExperimentalCoverage
seems like it would do the same thing that nightlies do, just for a single
local build without submitting the results.
Ceej
aka Chris Hillery
On Mon, Jun 7, 2010 at 6:36 PM, Clark Gaebel <cg.wowus.cg at gmail.com> wrote:
> This is almost perfect for my needs with a bit of trivial tweaking. I
> wish support was built-in to cmake just like valgrind-on-nightly-test
> was. Oh well.
>
> Thank you so much,
> -Clark
>
> On 06/07/10 17:46, Ben Boeckel wrote:
> > 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
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
> >
>
> --
> Regards,
> -Clark
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100607/bdf3506d/attachment.htm>
More information about the CMake
mailing list