[CMake] [ctest] CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode (ctest -S)

Bill Hoffman bill.hoffman at kitware.com
Sat Nov 14 14:11:13 EST 2009


Maik Beckmann wrote:
> 2009/11/14 Bill Lorensen <bill.lorensen at gmail.com>:
>> IN itk this is what we typically do in ctest scripts.
>>
>> After
>> CTEST_CONFIGURE (BUILD "${CTEST_BINARY_DIRECTORY}")
>> place
>> CTEST_READ_CUSTOM_FILES("${CTEST_BINARY_DIRECTORY}")
>>
> 
> Sweet! This solves the CTestCustom.cmake issue with ctest -S.
> 
> Is there a similar workaround for
>   http://public.kitware.com/Bug/view.php?id=5041
> ? (ctest -S fails on initial checkout, because it doesn't find
> CTestConfig.cmake, since it isn't present when ctest is started)
> 

I usually put something like this in the script:

if(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${CTEST_DIR_NAME}")
   set(CTEST_CHECKOUT_COMMAND     "\"${CTEST_UPDATE_COMMAND}\" -q -z3 
-d:pserver:anoncvs at www.cmake.org:/cvsroot/CMake co -d 
\"${CTEST_DIR_NAME}\" -D yesterday -r CMake-2-8 ${CTEST_MODULE_NAME}")
endif(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${CTEST_DIR_NAME}")

-Bill



More information about the CMake mailing list