Re: [CMake] ctest 'magic string' - failure

2008-08-14 Thread Matthew Woehlke
David Cole wrote: On Wed, Aug 13, 2008 at 9:20 PM, Matthew Woehlke wrote: Is there any way to arrange for running ctest to mark a test as failed if it outputs a particular string? I'm using ctest to write unit tests for a library that has some debugging facilities where if something goes wrong,

[CMake] ctest 'magic string' - failure

2008-08-13 Thread Matthew Woehlke
Is there any way to arrange for running ctest to mark a test as failed if it outputs a particular string? I'm using ctest to write unit tests for a library that has some debugging facilities where if something goes wrong, it dumps an error message, but doesn't cause the function to fail, so I

Re: [CMake] ctest 'magic string' - failure

2008-08-13 Thread David Cole
I use: SET_TESTS_PROPERTIES(${name} PROPERTIES FAIL_REGULAR_EXPRESSION (ERROR|Warning): In ) which will cause the test to fail if the string ERROR: In or Warning: In occurs in the test output. ${name} should be the name of the test as passed to ADD_TEST, and the argument after

Re: [CMake] ctest 'magic string' - failure

2008-08-13 Thread Bill Hoffman
Matthew Woehlke wrote: Is there any way to arrange for running ctest to mark a test as failed if it outputs a particular string? I'm using ctest to write unit tests for a library that has some debugging facilities where if something goes wrong, it dumps an error message, but doesn't cause the

Re: [CMake] ctest 'magic string' - failure

2008-08-13 Thread Alan W. Irwin
On 2008-08-13 20:20-0500 Matthew Woehlke wrote: Is there any way to arrange for running ctest to mark a test as failed if it outputs a particular string? I'm using ctest to write unit tests for a library that has some debugging facilities where if something goes wrong, it dumps an error