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:
ADD_TEST(NAME test COMMAND mpiexec --np 8 myCode.exe input output)
ADD_TEST(NAME comp COMMAND compare.exe output refdata 1.e-6)
It works, but reports two tests, 'test' and 'comp', while in essence these
are two steps of a single test. Is there a better way to achieve this?
I would like to add a preprocessing step, which removes output (if any) from
previous tests. I tried
ADD_TEST(NAME rm COMMAND /bin/rm output)
but because rm is not build by cmake, it complains that cannot find it.
Any help is highly appreciated,
Thanks,
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