Henrique Almeida wrote:
 Hello,

 When running "make test", some of my unit tests require that the
result is given by a correct output, instead of (just) the correct
return value (because, I'm specifically testing the ability to do
output). Is there a way to configure CTest to report a successful
result for certain tests by comparing their outputs to a reference
output ?

 In the most general case I'd need something like:

 add_test(test source1 source2 INPUT test.input EXPECTED_OUTPUT
test.output EXPECTED_ERROR test.error)

 I'd provide test.input as stdin, test.output as expected stdout and
test.error as expected stderr.



http://www.cmake.org/cmake/help/cmake2.6docs.html#section_Properties%20on%20Tests


-Bill
_______________________________________________
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