From ca9e11727b697be364200b5fd8b45bf7ad6f6f7b Mon Sep 17 00:00:00 2001 From: Zack Galbreath Date: Fri, 6 Dec 2013 17:02:56 -0500 Subject: [PATCH] Tests/Contracts: Fix failing VTK Contract test This test was failing because it was attempting to build VTK in the wrong directory. --- Tests/Contracts/VTK/CMakeLists.txt | 3 +-- Tests/Contracts/VTK/Dashboard.cmake.in | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Tests/Contracts/VTK/CMakeLists.txt b/Tests/Contracts/VTK/CMakeLists.txt index 5b19f016c..ef19325a4 100644 --- a/Tests/Contracts/VTK/CMakeLists.txt +++ b/Tests/Contracts/VTK/CMakeLists.txt @@ -25,7 +25,6 @@ if(NOT DEFINED HOME) endif() set(base_dir "${HOME}/.cmake/Contracts/VTK") -set(stamp_dir "${base_dir}/stamp") if(NOT DEFINED SITE) site_name(SITE) @@ -41,7 +40,7 @@ configure_file( ExternalProject_Add(${PROJECT_NAME} GIT_REPOSITORY "git://vtk.org/VTK.git" GIT_TAG "release" - STAMP_DIR ${stamp_dir} + PREFIX ${base_dir} CONFIGURE_COMMAND "" BUILD_COMMAND ${CMAKE_CTEST_COMMAND} -S "${base_dir}/Dashboard.cmake" INSTALL_COMMAND "" diff --git a/Tests/Contracts/VTK/Dashboard.cmake.in b/Tests/Contracts/VTK/Dashboard.cmake.in index b10f3848c..e33a2de79 100644 --- a/Tests/Contracts/VTK/Dashboard.cmake.in +++ b/Tests/Contracts/VTK/Dashboard.cmake.in @@ -1,7 +1,7 @@ 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_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/src/VTK") set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/VTK-build") set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@") @@ -24,5 +24,5 @@ file(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" " ctest_start(Nightly) ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}") ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}") -ctest_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" INCLUDE "PythonSmoke") +ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}" INCLUDE "PythonSmoke") ctest_submit(BUILD "${CTEST_BINARY_DIRECTORY}")