[CMake] CTest Question
Scott Amort
jsamort at gmail.com
Thu Jun 29 16:51:01 EDT 2006
William A. Hoffman wrote:
> make test should do the trick.
> You can also run ctest directly in the build tree.
> What you have should work. You might have to move the
> ENABLE_TESTING to the top of the project. Also you can
> look for the DartTesting. You can look for this file
> in your build tree and make sure it looks good:
> DartTestfile.txt
Thanks Bill - I just needed to move ENABLE_TESTING up to the project
root. Works now!
However, it does compile the testing executables during the `make'
command, and only runs them during the `make test'. If I make a change
to one of the tests, I have to run `make' again, then `make test'...
`make test' alone doesn't see that changes were made to the sources.
Certainly only a minor complaint, but is there a way to restrict the
compiling/link/executing of tests to the `make test' command?
Thanks again for your help.
Best,
Scott
More information about the CMake
mailing list