Try:--test-command "testExe" "myarg1" "my arg 2"

(double quotes only necessary if there are spaces in the argument...)

Multiple args after "--test-command" are used to construct the proper
command line, not just the following arg...


On Mon, Mar 23, 2009 at 11:51 PM, Alastair Rankine
<ars...@internode.on.net>wrote:

> Hi,
>
> I must be blind but I can't see a way for CTest to pass a command line
> argument to a test executable?
>
> I've tried using
>
> --test-command "testExe myargs"
>
> ... but this causes it to not find the executable.
>
> Any help appreciated, thanks.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to