[CMake] ctest dependencies

Petr Kmoch petr.kmoch at gmail.com
Mon Feb 3 03:20:02 EST 2014


Hi Tom.

You might want to look into the DEPENDS property of tests.

Petr


On Sat, Feb 1, 2014 at 7:17 PM, Tom Browder <tom.browder at gmail.com> wrote:

> I have a ctest test (say, TESTA) whose success I would like to have as
> a dependency for a lot of other tests (say, TESTB, etc.).
>
> Can I do something like (pseudo code:
>
> if (TESTA passes)
>   do other tests
> else
>   msg("all tests fail due to failure of TESTA")
> endif
>
> Thanks.
>
> Best regards,
>
> -Tom
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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/20140203/1d975703/attachment.html>


More information about the CMake mailing list