summaryrefslogtreecommitdiffstats
path: root/Tests/Contracts/VTK/Dashboard.cmake.in
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2013-12-02 20:44:38 (GMT)
committerBrad King <brad.king@kitware.com>2013-12-05 14:26:00 (GMT)
commit1b173f25b44af406020c6bc440342632e2bbb1d3 (patch)
tree05da208ca236de9df560fa99aec17bce674fdd86 /Tests/Contracts/VTK/Dashboard.cmake.in
parentf282a0bf83acd3e997b55967524fbd487bb6c881 (diff)
downloadCMake-1b173f25b44af406020c6bc440342632e2bbb1d3.zip
CMake-1b173f25b44af406020c6bc440342632e2bbb1d3.tar.gz
CMake-1b173f25b44af406020c6bc440342632e2bbb1d3.tar.bz2
Tests/Contracts: Update test for VTK release branch
The plan is to reinstate the VTK contracts test so that CMake & VTK devs will both be made aware when a change in CMake causes build problems for VTK.
Diffstat (limited to 'Tests/Contracts/VTK/Dashboard.cmake.in')
-rw-r--r--Tests/Contracts/VTK/Dashboard.cmake.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/Tests/Contracts/VTK/Dashboard.cmake.in b/Tests/Contracts/VTK/Dashboard.cmake.in
new file mode 100644
index 0000000..b10f384
--- /dev/null
+++ b/Tests/Contracts/VTK/Dashboard.cmake.in
@@ -0,0 +1,28 @@
+set(CTEST_SITE "@SITE@")
+set(CTEST_BUILD_NAME "Contracts.VTK")
+set(CTEST_DASHBOARD_ROOT "@base_dir@")
+set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/VTK")
+set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/VTK-build")
+
+set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
+set(CTEST_CONFIGURATION_TYPE Debug)
+
+# Assume a Linux build, with a make that supports -j9. Modify this script if
+# assumption is ever invalid.
+#
+set(CTEST_BUILD_COMMAND "@CMAKE_MAKE_PROGRAM@ -j9 -i")
+
+ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
+
+file(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" "
+ BUILD_EXAMPLES:BOOL=ON
+ BUILD_TESTING:BOOL=ON
+ VTK_WRAP_PYTHON:BOOL=ON
+ ExternalData_OBJECT_STORES:FILEPATH=@base_dir@/ExternalData
+")
+
+ctest_start(Nightly)
+ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}")
+ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}")
+ctest_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" INCLUDE "PythonSmoke")
+ctest_submit(BUILD "${CTEST_BINARY_DIRECTORY}")