I would strongly recommend using CTest
http://www.cmake.org/cmake/help/v2.8.10/ctest.html
The very short CTest introduction is:
1. In your regular CMakeLists.txt file you add tests like this:
add_test( NAME_OF_TEST EXECUTABLE_TO_RUN ARG1 ARG2 ARG3 ...)
2. The EXECUTABLE_TO_RUN can in principle be any executable, but will in
practice be a (test) executable built as part of your project with
add_executable( ...)
3. The test itself has succeeded if EXECUTABLE_TO_RUN exist with status 0
(i.e. exit(0);) - everything else is a failed test.
You can then run all your tests with
make test
Or alternatively:
ctest <options>
Where the latter gives more control over which tests to run.
J
-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you
_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm