KWSys Nightly Date Stamp
[cmake.git] / Tests / CTestTest2 / test.cmake.in
blob643e767e53ab08384afed02619df352cbd47cacd
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.1)
3 # Settings:
4 SET(CTEST_DASHBOARD_ROOT                "@CMake_BINARY_DIR@/Tests/CTestTest")
5 SET(CTEST_SITE                          "@SITE@")
6 SET(CTEST_BUILD_NAME                    "KWSys-@BUILDNAME@-CTest2")
8 SET(CTEST_SOURCE_DIRECTORY              "@CMake_SOURCE_DIR@/Source/kwsys")
9 SET(CTEST_BINARY_DIRECTORY              "@CMake_BINARY_DIR@/Tests/CTestTest2/kwsysBin")
10 SET(CTEST_CVS_COMMAND                   "@CVSCOMMAND@")
11 SET(CTEST_CMAKE_GENERATOR               "@CMAKE_GENERATOR@")
12 SET(CTEST_BUILD_CONFIGURATION           "$ENV{CMAKE_CONFIG_TYPE}")
13 SET(CTEST_MEMORYCHECK_COMMAND           "@MEMORYCHECK_COMMAND@")
14 SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "@MEMORYCHECK_SUPPRESSIONS_FILE@")
15 SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS   "@MEMORYCHECK_COMMAND_OPTIONS@")
16 SET(CTEST_COVERAGE_COMMAND              "@COVERAGE_COMMAND@")
17 SET(CTEST_NOTES_FILES                   "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
19 #CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})
22 FILE(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" "
23 CMAKE_CXX_FLAGS:STRING=@CMAKE_CXX_FLAGS@
24 CMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@
25 CMAKE_C_COMPILER:STRING=@CMAKE_C_COMPILER@
26 CMAKE_CXX_COMPILER:STRING=@CMAKE_CXX_COMPILER@
27 CMAKE_C_COMPILER_ARG1:STRING=@CMAKE_C_COMPILER_ARG1@
28 CMAKE_CXX_COMPILER_ARG1:STRING=@CMAKE_CXX_COMPILER_ARG1@
30 # This one is needed for testing advanced ctest features
31 CTEST_TEST_KWSYS:BOOL=ON
34 CTEST_START(Experimental)
35 #CTEST_UPDATE(SOURCE "${CTEST_SOURCE_DIRECTORY}" RETURN_VALUE res)
36 CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
37 CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
38 CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res START 1 END 5 STRIDE 2)
39 CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res START 7 STRIDE 2 SUBMIT_INDEX 1)
40 CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res START 2 END 4 STRIDE 2 SUBMIT_INDEX 2)
41 CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res START 6 STRIDE 2 SUBMIT_INDEX 3)
42 CTEST_MEMCHECK(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res STRIDE 1.5)
43 CTEST_COVERAGE(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
44 CTEST_SUBMIT(RETURN_VALUE res)
46 # Test submission of a subset of parts.
47 SET(CTEST_EXTRA_SUBMIT_FILES ${CTEST_NOTES_FILES})
48 CTEST_SUBMIT(RETURN_VALUE res PARTS ExtraFiles)
49 SET(CTEST_EXTRA_SUBMIT_FILES)