summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-11-10 15:55:34 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-11-10 15:55:34 (GMT)
commit4d3537597e67f084d8424a6473bfc403615e104d (patch)
tree980b2ecd2d851570799a36e4d9cb6647da7891f5
parent3480c252a30462a98f7267ec9b69c293b9d6e614 (diff)
downloadCMake-4d3537597e67f084d8424a6473bfc403615e104d.zip
CMake-4d3537597e67f084d8424a6473bfc403615e104d.tar.gz
CMake-4d3537597e67f084d8424a6473bfc403615e104d.tar.bz2
ENH: added tutorial tests
-rw-r--r--Source/CMakeLists.txt50
1 files changed, 50 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index db9035d..19a5868 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -540,6 +540,56 @@ IF(BUILD_TESTING)
--test-command helloDemo
)
+ ADD_TEST(TutorialStep1 ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/Tutorial/Step1"
+ "${CMake_BINARY_DIR}/Tests/Tutorial/Step1"
+ --build-two-config
+ --build-generator ${CMAKE_GENERATOR}
+ --build-makeprogram ${MAKEPROGRAM}
+ --build-project Tutorial
+ --test-command Tutorial 25.0)
+
+ ADD_TEST(TutorialStep2 ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/Tutorial/Step2"
+ "${CMake_BINARY_DIR}/Tests/Tutorial/Step2"
+ --build-two-config
+ --build-generator ${CMAKE_GENERATOR}
+ --build-makeprogram ${MAKEPROGRAM}
+ --build-project Tutorial
+ --test-command Tutorial 25.0)
+
+ ADD_TEST(TutorialStep3 ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/Tutorial/Step3"
+ "${CMake_BINARY_DIR}/Tests/Tutorial/Step3"
+ --build-two-config
+ --build-generator ${CMAKE_GENERATOR}
+ --build-makeprogram ${MAKEPROGRAM}
+ --build-project Tutorial
+ --test-command Tutorial 25.0)
+
+ ADD_TEST(TutorialStep4 ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/Tutorial/Step4"
+ "${CMake_BINARY_DIR}/Tests/Tutorial/Step4"
+ --build-two-config
+ --build-generator ${CMAKE_GENERATOR}
+ --build-makeprogram ${MAKEPROGRAM}
+ --build-project Tutorial
+ --test-command Tutorial 25.0)
+
+ ADD_TEST(TutorialStep5 ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/Tutorial/Step5"
+ "${CMake_BINARY_DIR}/Tests/Tutorial/Step5"
+ --build-two-config
+ --build-generator ${CMAKE_GENERATOR}
+ --build-makeprogram ${MAKEPROGRAM}
+ --build-project Tutorial
+ --test-command Tutorial 25.0)
+
ADD_TEST(testing ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/Testing"