[CMake] How to redirect the output of an executable while testing

ankit jain ankitguddu at gmail.com
Mon Feb 23 07:46:07 EST 2009


Hi all,

I have an executable having some test cases. I want to give some arguments
to it which i will give it through  add_test command. but my objective is to
write the output of the executable to a file at run tiem itself.

How to do that?

Secondly i want ot use this file in which output of executable is written as
an argument to other test case.

How to achieve that?


Ankit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090223/1194401b/attachment.htm>


More information about the CMake mailing list