On Fri, Dec 11, 2009 at 3:58 AM, Martin Apel <span dir="ltr"><<a href="mailto:martin.apel@simpack.de">martin.apel@simpack.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
I tried to set some CTest custom variables such as<br>
CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE in the CTestCustom.cmake<br>
file in the binary directory.<br>
This works as long as I run ctest interactively, e.g. "ctest -D<br>
Experimental". In this case, the test output is not cut off. If I do the<br>
same using a CTest script, it seems the CTestCustom.cmake file<br>
is completely ignored, so the test output is cut off at the default<br>
value of 1024 characters.<br>
Is this intended behaviour or is it a bug?</blockquote><div><br></div><div>Probably a little bit of each... </div><div><br></div><div>Try putting a call to:</div><div>CTEST_READ_CUSTOM_FILES("${CTEST_BINARY_DIRECTORY}")</div>
<div><br></div><div>after ctest_configure and before ctest_build...</div><div><br></div><div>One could certainly make the argument that this should be entirely invisible and automatic and buried inside the ctest_configure call. In that sense, it's a bug.</div>
<div><br></div><div>I know the author of the ctest_read_custom_files command intended things to be this way, but I still do not understand why... Perhaps if nobody can explain why it should be left this way, it would make sense to try to make this implied/automatic at the end of a ctest_configure command....</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It seems to work, if I enter<br>
the variable settings into the script file, but that's not the way its<br>
documented to work.<br>
<br>
Regards,<br>
<br>
Martin<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>