[CMake] pipe add_test() output into a file

Nico Schlömer nico.schloemer at gmail.com
Tue Aug 26 05:50:43 EDT 2014


Hi all,

I would like to add a test for a file converter. The output of the
converter is written out to stdout, and I would like to direct this
into a file to compare it against a reference file. The signature of
add_test() [1] however doesn't seem to allow that.

How would you go about this problem?

Cheers,
Nico



[1] http://www.cmake.org/cmake/help/v3.0/command/add_test.html


More information about the CMake mailing list