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_for_test mpiexec --np 8 myCode.exe input OUTPUT)
ADD_TEST(measure_for_success compare.exe OUTPUT REFERENCE 1.e-6)
It works, but I believe there are better ways to achieve this. Also, I would
like to have a preprocessing step, which removes OUTPUT before running
myCode.exe, just to make sure that the comparison is always against the current
OUTPUT and not against OUTPUT left from previous runs. What I have in mind is:
Remove OUTPUT
ß preprocessing step
Run myCode.exe
ß the code being tested
Compare OUTPUT against REFERENCE data. ß measure for
PASS/FAIL
Thanks in advance,
Ted
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake