[CMake] ignore skipped tests when running ctest?

Matthew Woehlke matthew.woehlke at kitware.com
Mon Dec 31 14:58:32 EST 2012


On 2012-12-31 14:08, David Cole wrote:
> On Mon, Dec 31, 2012 at 1:49 PM, Matthew Woehlke wrote:
>> I have a bunch of tests that require files that are missing. When I run
>> CTest, I get something like:
>>
>> 20% passed, 55 failed
>>     12 - MyTest (Not Run)
>>     13 - MyTest (Not Run)
>>     14 - MyTest (Not Run)
>>     15 - MyTest (OTHER_FAULT)
>>     16 - MyTest (Not Run)
>>     ...etc.
>>
>> Is there a way to tell CTest to silently skip tests that can't be run due
>> to missing REQUIRED_FILES?
>
> Other than naming them explicitly with a -E regex on the command line or an
> EXCLUDE argument to ctest_test, no, there is presently no way to do that.
>
> This issue ( http://public.kitware.com/Bug/view.php?id=8466 ) has a patch
> attached to it which may (or may not) be of interest to you.

Thanks, but I think that's orthogonal. That's talking about new ways for 
ctest to recognize a test result. I'm talking about differently 
reporting a test result that is already recognized.

-- 
Matthew



More information about the CMake mailing list