[CMake] CTest passing arguments to test executables?

David Cole david.cole at kitware.com
Tue Mar 24 09:34:43 EDT 2009


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
<arsptr at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090324/36ba13d8/attachment.htm>


More information about the CMake mailing list