CTest: Running test depending on a commit/change

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

CTest: Running test depending on a commit/change

Eric Noulard
Is there any way to ask ctest run the set of tests impacted by a commit/change ?
Or may be asking ctest to run only the tests that were built no later than say 3 min. ago.

The use case is simple.
I do some modification in my code call the build tool (ninja in my case) and I want ctest
to only run the freshly rebuilt tests. Ideally all the tests depending on the freshly rebuilt items.

Let's says for simplification that all my test are binaries built in the changed  source tree.

In fact ninja already knows how to rebuilt those binaries and it does it well.
How may I teach ctest to run those?



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: