The easiest way to separate output is to wrap your test in a cmake -P
script, and then inside that call execute_process to run the "real test" and
use its facilities to capture output into variables or redirect output to
files.
There is no redirection of output using add_test arguments.
HTH,
Dav
Hi,
I'd like to run some static analysis tool from CTest. (2.8.1)
I've added enable_testing() and add_test() calls in my CMakeLists.txt
file, and the static analysis tool is invoked as expected, however:
* CTest discards both the tool standard output and tool standard
error stream when ran with