diff options
author | David Cole <david.cole@kitware.com> | 2009-10-26 20:09:27 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-10-26 20:09:27 (GMT) |
commit | 20fe27cda19708f4bbc92b081d3d5eaaaee015ae (patch) | |
tree | 752f58cb997c9ec7be6180c37665991a5750f37e /Tests/CMakeLists.txt | |
parent | 857b5dc9f5143c8e448892a4020c33e46589909b (diff) | |
download | CMake-20fe27cda19708f4bbc92b081d3d5eaaaee015ae.zip CMake-20fe27cda19708f4bbc92b081d3d5eaaaee015ae.tar.gz CMake-20fe27cda19708f4bbc92b081d3d5eaaaee015ae.tar.bz2 |
Add test to enable detecting differences between generation N and N+1 of a cmake generated build tree. Theoretically, each generation run with exactly the same arguments should be identical to the previous generation... Practically, there are differences. This is a tool to help us measure those differences. For now, the test always succeeds. Eventually, we may add the code to make it fail when there are differences.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index c3bf856..dd39df0 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -535,6 +535,21 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel "${CMake_BINARY_DIR}/Tests/CMakeTestAllGenerators") ENDIF(CTEST_RUN_CMakeTestAllGenerators) + if(NOT DEFINED CTEST_RUN_CMakeTestMultipleConfigures) + set(CTEST_RUN_CMakeTestMultipleConfigures ON) + endif(NOT DEFINED CTEST_RUN_CMakeTestMultipleConfigures) + + IF(CTEST_RUN_CMakeTestMultipleConfigures) + ADD_TEST(CMakeTestMultipleConfigures ${CMAKE_CMAKE_COMMAND} + -D dir=${CMake_BINARY_DIR}/Tests/CMakeTestMultipleConfigures + -D gen=${CMAKE_TEST_GENERATOR} + -D CMake_SOURCE_DIR=${CMake_SOURCE_DIR} + -P ${CMake_SOURCE_DIR}/Tests/CMakeTestMultipleConfigures/RunCMake.cmake + ) + LIST(APPEND TEST_BUILD_DIRS + "${CMake_BINARY_DIR}/Tests/CMakeTestMultipleConfigures") + ENDIF(CTEST_RUN_CMakeTestMultipleConfigures) + ADD_TEST(LoadedCommandOneConfig ${CMAKE_CTEST_COMMAND} --build-and-test "${CMake_SOURCE_DIR}/Tests/LoadCommandOneConfig" |