Commit ed55b1b8 authored by Brad King's avatar Brad King

Remove unused code from CTest test suite

We remove from Tests/CTestTest*/CMakeLists.txt some historical cruft
that is no longer used by the test suite.
parent cdc9ef3b
cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTest)
SET(DART_ROOT "" CACHE STRING "" FORCE)
ENABLE_TESTING()
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
CONFIGURE_FILE(${CTestTest_SOURCE_DIR}/test.cmake.in
${CTestTest_BINARY_DIR}/test.cmake @ONLY)
cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTest2)
SET(DART_ROOT "" CACHE STRING "" FORCE)
ENABLE_TESTING()
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
CONFIGURE_FILE(${CTestTest2_SOURCE_DIR}/test.cmake.in
${CTestTest2_BINARY_DIR}/test.cmake @ONLY)
cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTestCrash)
SET(DART_ROOT "" CACHE STRING "" FORCE)
ENABLE_TESTING()
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
INCLUDE(CTest)
ADD_EXECUTABLE (Crash crash.cxx)
TARGET_LINK_LIBRARIES (NoBuild ${EXTRA_LIBS})
ENABLE_TESTING ()
ADD_TEST (TestCrash Crash)
INCLUDE (CTest)
cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTestFailure)
SET(DART_ROOT "" CACHE STRING "" FORCE)
ENABLE_TESTING()
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
INCLUDE(CTest)
ADD_EXECUTABLE (NoBuild badCode.cxx)
TARGET_LINK_LIBRARIES (NoBuild ${EXTRA_LIBS})
ENABLE_TESTING ()
ADD_TEST (TestNoExe NoBuild)
INCLUDE (CTest)
cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTestParallel)
SET(DART_ROOT "" CACHE STRING "" FORCE)
ENABLE_TESTING()
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
INCLUDE(CTest)
ADD_EXECUTABLE (LockFile lockFile.c)
ENABLE_TESTING ()
ADD_TEST (TestRunSerial1 LockFile)
ADD_TEST (TestRunSerial2 LockFile)
SET_TESTS_PROPERTIES(TestRunSerial1 TestRunSerial2 PROPERTIES RUN_SERIAL true)
......@@ -19,5 +11,3 @@ SET_TESTS_PROPERTIES(TestRunSerial1 TestRunSerial2 PROPERTIES RUN_SERIAL true)
ADD_TEST (TestProcessorsGreaterThanMPL1 LockFile)
ADD_TEST (TestProcessorsGreaterThanMPL2 LockFile)
SET_TESTS_PROPERTIES(TestProcessorsGreaterThanMPL1 PROPERTIES PROCESSORS 10)
INCLUDE (CTest)
cmake_minimum_required (VERSION 2.6)
PROJECT(CTestTestSubdir)
SET(DART_ROOT "" CACHE STRING "" FORCE)
ENABLE_TESTING()
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
INCLUDE(CTest)
ADD_SUBDIRECTORY(subdir)
SUBDIRS(subdir2)
......
cmake_minimum_required (VERSION 2.8)
PROJECT(CTestTestTimeout)
SET(DART_ROOT "" CACHE STRING "" FORCE)
ENABLE_TESTING()
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
GET_FILENAME_COMPONENT(CTEST_COMMAND "${CMAKE_COMMAND}" PATH)
SET(CTEST_COMMAND "${CTEST_COMMAND}/ctest")
INCLUDE(CTest)
ADD_EXECUTABLE (Timeout timeout.c)
ENABLE_TESTING ()
ADD_TEST(NAME TestTimeout
COMMAND ${CMAKE_COMMAND} -D Timeout=$<TARGET_FILE:Timeout>
-D Log=${CMAKE_CURRENT_BINARY_DIR}/timeout.log
......@@ -25,6 +17,3 @@ ADD_TEST(NAME CheckChild
-P ${CMAKE_CURRENT_SOURCE_DIR}/check.cmake
)
SET_TESTS_PROPERTIES(CheckChild PROPERTIES DEPENDS TestTimeout)
INCLUDE (CTest)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment