[CMake] ctest: how to include pre- and post- processing commands

2016-06-30 Thread TS
Hi, Apologize if I sent this twice. Is it possible to have a ctest which involves preprocessing as well as postprocessing. The code to test is myCode.exe, which writes an output file. PASS or FAIL is the result of comparison of output against reference data. Currently I use two add_tests:

[CMake] how to ctest with pre- and -post processing

2016-06-29 Thread TS
Hi, Is it possible to have a ctest which involves preprocessing as well as postprocessing. The code I want to test is myCode.exe, which writes an output file OUTPUT. Measure for success is a comparison of OUTPUT against REFERENCE data file. Currently, I use two add_tests: ADD_TEST(code_f