[CMake] Running tests only on modified projects....

David Cole david.cole at kitware.com
Tue Apr 10 13:28:01 EDT 2012


It is presently not possible because there is no connection (other
than the full path to the executable and the arguments you pass to it)
between a test executed by ctest and the build products produced by
CMake and the native build system.

What is necessary is a way to connect a test and its inputs back to
the build products that lead into it such that it's part of the
build-time dependency analysis that takes place when an incremental
build is performed. It's very much a non-trivial set of tasks that
need to occur before this becomes possible in a reliable manner.


HTH,
David


On Tue, Apr 10, 2012 at 1:16 PM, Malfettone, Kris
<Kris.Malfettone at sig.com> wrote:
> Just checking in if anyone has any ideas for this either yay or nay.  It
> would be useful at least to know that it is impossible.
>
>
>
> -Kris
>
>
>
> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of
> Malfettone, Kris
> Sent: Tuesday, March 27, 2012 10:11 AM
> To: cmake at cmake.org
> Subject: [CMake] Running tests only on modified projects....
>
>
>
> I’ve been looking through the ctest documentation and online for a while now
> and can’t seem to find a way to run tests only from projects that have
> changed.  Basically what I have is a very large build tree consisting of
> many projects.  When someone submits code to just one of the projects I
> would like to only run the tests associated with that project or projects
> that the project is a dependency of.
>
>
>
> Is this possible?
>
>
>
> -Kris
>
>
>
> ________________________________
>
>
> IMPORTANT: The information contained in this email and/or its attachments is
> confidential. If you are not the intended recipient, please notify the
> sender immediately by reply and immediately delete this message and all its
> attachments. Any review, use, reproduction, disclosure or dissemination of
> this message or any attachment by an unintended recipient is strictly
> prohibited. Neither this message nor any attachment is intended as or should
> be construed as an offer, solicitation or recommendation to buy or sell any
> security or other financial instrument. Neither the sender, his or her
> employer nor any of their respective affiliates makes any warranties as to
> the completeness or accuracy of any of the information contained herein or
> that this message or any of its attachments is free of viruses.
>
>
> ________________________________
>
> IMPORTANT: The information contained in this email and/or its attachments is
> confidential. If you are not the intended recipient, please notify the
> sender immediately by reply and immediately delete this message and all its
> attachments. Any review, use, reproduction, disclosure or dissemination of
> this message or any attachment by an unintended recipient is strictly
> prohibited. Neither this message nor any attachment is intended as or should
> be construed as an offer, solicitation or recommendation to buy or sell any
> security or other financial instrument. Neither the sender, his or her
> employer nor any of their respective affiliates makes any warranties as to
> the completeness or accuracy of any of the information contained herein or
> that this message or any of its attachments is free of viruses.
>
> --
>
> 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


More information about the CMake mailing list