The only way I could think that you could do this without making code modifications to ctest would be to run your whole test suite itself *as* a single test.<br><br>You could run it like this:<br>ctest -R "^WholeTestSuite$"<br>
(which would run *just* the WholeTestSuite)<br><br>And then the test for running WholeTestSuite would turn around and run:<br>ctest -E "^WholeTestSuite$"<br><div class="gmail_quote">(which would run all the tests *except* the WholeTestSuite)<br>
<br>Then on the WholeTestSuite test, you could set a per-test timeout to whatever value makes sense (independent of the overall ctest timeout value).<br><br>Or.... if you have time and ability, it should be fairly straightforward to make the appropriate modifications to ctest source code and submit it as a patch/feature-request to the bug tracker.<br>
<br><br>HTH,<br>David<br><br><br>On Tue, Feb 3, 2009 at 4:34 AM, Bram de Greve <span dir="ltr"><<a href="mailto:bramz@users.sourceforge.net">bramz@users.sourceforge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
Can anyone answer this question?<br>
<br>
I've tried the --test-timeout switch on ctest, but it seems to have no<br>
effect.<br>
<br>
Thanks,<br>
<font color="#888888">Bram<br>
</font><div><div></div><div class="Wj3C7c"><br>
> Hi,<br>
><br>
> Is it possible to specify the total amount of time CTest may spend on<br>
> running the tests? With CTEST_TIMEOUT, you can set the time CTest may<br>
> spend on each test, but that's not really what I'm looking for.<br>
><br>
> Thanks<br>
> Bram<br>
> _______________________________________________<br>
> CMake mailing list<br>
> <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>