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 &quot;^WholeTestSuite$&quot;<br>
(which would run *just* the WholeTestSuite)<br><br>And then the test for running WholeTestSuite would turn around and run:<br>ctest -E &quot;^WholeTestSuite$&quot;<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">&lt;<a href="mailto:bramz@users.sourceforge.net">bramz@users.sourceforge.net</a>&gt;</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&#39;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>
&gt; Hi,<br>
&gt;<br>
&gt; Is it possible to specify the total amount of time CTest may spend on<br>
&gt; running the tests? &nbsp;With CTEST_TIMEOUT, you can set the time CTest may<br>
&gt; spend on each test, but that&#39;s not really what I&#39;m looking for.<br>
&gt;<br>
&gt; Thanks<br>
&gt; Bram<br>
&gt; _______________________________________________<br>
&gt; CMake mailing list<br>
&gt; <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<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>