[CMake] "Error in read script" when not calling CTEST_TEST in ctest script

winfried_mb2 at xmsnet.nl winfried_mb2 at xmsnet.nl
Tue Oct 20 11:46:55 EDT 2009


Thanks for the reply, it's clear now.

It's also a bit unfortunate though for some cases. The CTEST_TEST(...) call will always result in an exit code of 255 if no tests have been defined in the CMakeLists.txt. Since the script below is called from a build system it would be nice to be able to see if one or more tests failed, or if there were simply no tests defined for that software component (which is  not an error).

regards, 
Arthur 
 

On Monday 19 October 2009 20:31:44 David Cole wrote:
> The return value of ctest after it runs a -S script indicates whether the
> script as a whole succeeded or not. The only way it succeeds all the way and
> returns 0 is if *all* of the steps invoked are error free.
> The build errors mean that ctest's return value will be non-zero. (Same for
> update, configure or test errors as well...)
> 
> 
> HTH,
> David
> 
> 
> 



More information about the CMake mailing list