[CMake] Skip(ped) test with CTest?
Christoph Grüninger
christoph.grueninger at iws.uni-stuttgart.de
Tue Jun 12 05:27:11 EDT 2012
Hi David,
thanks for your idea with REQUIRED_FILES. I don't like the way, but
we'll evaluate if it is enough for our project.
Maybe a proper solution will be included in a future release of CMake.
Bye
Christoph
> There is a test property called REQUIRED_FILES, which is a list of files
> that must exist in order to run a test. According to the ctest source
> code, we will return a status of "Not run" if one of those files does
> not exist.
>
> So one way to achieve your goal would be to list the test via add_test
> always, but then require a file for the test to run, and make sure that
> file does not exist before ctest_test is run.
>
> So it seems like you should be able to achieve your goal using that if
> you would like. As long as you're ok with the "Not run" status.
>
>
> HTH,
> David
More information about the CMake
mailing list