[CMake] Is it possible to run ctest outside build tree?

Eric Noulard eric.noulard at gmail.com
Sun Mar 26 04:29:19 EDT 2017


This works but it is not possible to pass filtering argument (-L or -R) to
ctest this way.

Le 26 mars 2017 10:13, "Dvir Yitzchaki" <Dvir.Yitzchaki at ceva-dsp.com> a
écrit :

> How about
>
>
>
> cmake --build /my/build/tree --target test
>
>
>
> Regards,
>
> Dvir
>
>
>
> *From:* CMake [mailto:cmake-bounces at cmake.org] *On Behalf Of *Eric Noulard
> *Sent:* Friday, March 24, 2017 13:04
> *To:* CMake Mailinglist <cmake at cmake.org>
> *Subject:* [CMake] Is it possible to run ctest outside build tree?
>
>
>
> Is possible to run ctest outside the builld tree and how?
>
> typical use is when I have an out of source build I may be in the source
> tree
>
> and want to run tests without manually going to build tree.
>
>
>
> i.e. I currently do:
>
>
>
> ninja -C /my/build/tree
>
>
>
> is there a similar way to do that with ctest (other than creating my own
> script, shell alias etc...)?
>
>
>
> --
>
> Eric
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170326/c78f884b/attachment.html>


More information about the CMake mailing list