diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-25 14:04:17 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-25 14:04:17 (GMT) |
commit | a3ce1fb293da2f5d5abb54bfbfa9afb35b238955 (patch) | |
tree | 84d13e161dcfeb264b819a5610093008356f1619 /Source | |
parent | 604478e0f6d5b0d4277923d6ebd263b6d5ca1809 (diff) | |
download | CMake-a3ce1fb293da2f5d5abb54bfbfa9afb35b238955.zip CMake-a3ce1fb293da2f5d5abb54bfbfa9afb35b238955.tar.gz CMake-a3ce1fb293da2f5d5abb54bfbfa9afb35b238955.tar.bz2 |
ENH: Allow disabling of long running tests
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMakeLists.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 9b03387..706ee8a 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -177,6 +177,10 @@ IF(BUILD_TESTING) # cmake. SET(CMAKE_CTEST_COMMAND "${EXECUTABLE_OUTPUT_PATH}/ctest") + # Should the long tests be run? + OPTION(CMAKE_RUN_LONG_TESTS "Should the long tests be run (such as Bootstrap)." ON) + MARK_AS_ADVANCED(CMAKE_RUN_LONG_TESTS) + ADD_TEST(CommandLineTest ${CMAKE_CTEST_COMMAND} --build-and-test "${CMake_SOURCE_DIR}/Tests/CommandLineTest" @@ -630,15 +634,15 @@ IF(BUILD_TESTING) ) ENDIF (APPLE) - IF (CTEST_TEST_CTEST) + IF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS) CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestTest/test.cmake.in" "${CMake_BINARY_DIR}/Tests/CTestTest/test.cmake" @ONLY ESCAPE_QUOTES) ADD_TEST(CTestTest ${CMAKE_CTEST_COMMAND} -S "${CMake_BINARY_DIR}/Tests/CTestTest/test.cmake" -V ) - ENDIF (CTEST_TEST_CTEST) + ENDIF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS) - IF(UNIX) + IF(UNIX AND CMAKE_RUN_LONG_TESTS) ADD_TEST(BootstrapTest ${CMAKE_CTEST_COMMAND} --build-and-test ${CMake_SOURCE_DIR} @@ -647,7 +651,7 @@ IF(BUILD_TESTING) --build-noclean --build-makeprogram ${CMake_SOURCE_DIR}/bootstrap --test-command ${CMake_BINARY_DIR}/Tests/BootstrapTest/Bootstrap.cmk/cmake) - ENDIF(UNIX) + ENDIF(UNIX AND CMAKE_RUN_LONG_TESTS) IF(CMAKE_GENERATOR MATCHES "Makefiles") # see if we can find a fortran compiler on the machine |