Try:<div>--test-command &quot;testExe&quot; &quot;myarg1&quot; &quot;my arg 2&quot;</div><div><br></div><div>(double quotes only necessary if there are spaces in the argument...)<br><br></div><div>Multiple args after &quot;--test-command&quot; are used to construct the proper command line, not just the following arg...</div>
<div><br></div><div><br><div class="gmail_quote">On Mon, Mar 23, 2009 at 11:51 PM, Alastair Rankine <span dir="ltr">&lt;<a href="mailto:arsptr@internode.on.net">arsptr@internode.on.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I must be blind but I can&#39;t see a way for CTest to pass a command line<br>
argument to a test executable?<br>
<br>
I&#39;ve tried using<br>
<br>
--test-command &quot;testExe myargs&quot;<br>
<br>
... but this causes it to not find the executable.<br>
<br>
Any help appreciated, thanks.<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></div>