[CMake] ctest, timeout per test/cmd

Pierre pierre.php at gmail.com
Tue Jan 23 11:45:51 EST 2007


On 1/23/07, Ken Martin <ken.martin at kitware.com> wrote:
> There are two ways to globally put a time limit on each test IIRC.  One is
> to set DART_TESTING_TIMEOUT (see Modules/CTest.cmake) to the number of
> seconds to let a test run, the other is to set CTEST_TEST_TIMEOUT in your
> ctest script IIRC. I do not believe there is a way to do it on a per test
> basis, but... with SET_TESTS_PROPERTIES it would be easy to add as a new
> feature to CMake.

I do not use (yet) a ctest script but only cmake with
ADD_TEST/ENABLE_TESTING. It is only to let the user run a make
followed by a "ctest ." (like a "make test").

The problem with DART_TESTING_TIMEOUT and CTEST_TEST_TIMEOUT is that
they apply to the complete test suites. What I'm trying to solve is
some infinite loops test cases, I like the tests to fail/timeout but
the next tests should be executed as well.

I will explore the SET_TESTS_PROPERTIES and see if I can solve this
issue using a ctest script.

Thanks,
--Pierre


More information about the CMake mailing list