summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-01 17:53:28 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-01 17:53:28 (GMT)
commit2106bdc4eca25c37c45d9336fbaef16f4c5eab80 (patch)
treeb5b59f6d67bd3104576f993d45ccad7b98c0660a /Source
parent48dc13a6493627731f945d980acc6c9ac2e4bcc1 (diff)
downloadCMake-2106bdc4eca25c37c45d9336fbaef16f4c5eab80.zip
CMake-2106bdc4eca25c37c45d9336fbaef16f4c5eab80.tar.gz
CMake-2106bdc4eca25c37c45d9336fbaef16f4c5eab80.tar.bz2
ENH: Add install test
Diffstat (limited to 'Source')
-rw-r--r--Source/CMakeLists.txt22
1 files changed, 18 insertions, 4 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 41191e9..5a8aad2 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -238,6 +238,20 @@ IF(BUILD_TESTING)
--build-two-config
--test-command conly)
+ SET(SimpleInstallInstallDir
+ "${CMake_BINARY_DIR}/Tests/SimpleInstall/Install Directory")
+ ADD_TEST(SimpleInstall ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/SimpleInstall"
+ "${CMake_BINARY_DIR}/Tests/SimpleInstall"
+ --build-generator ${CMAKE_GENERATOR}
+ --build-project TestSimpleInstall
+ --build-makeprogram ${MAKEPROGRAM}
+ --build-two-config
+ --build-options
+ "-DCMAKE_INSTALL_PREFIX:PATH=${SimpleInstallInstallDir}"
+ --test-command ${SimpleInstallInstallDir}/bin/SimpleInstall)
+
ADD_TEST(X11 ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/X11"
@@ -554,14 +568,14 @@ IF(BUILD_TESTING)
ENDIF (CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE OR WXWINDOWS_INCLUDE_DIR)
IF(UNIX)
- IF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/Tests/TestInstall/Prefix$")
+ IF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/Tests/TestShellInstall/Prefix$")
CONFIGURE_FILE(
${CMake_SOURCE_DIR}/Tests/TestInstall.sh.in
- ${CMake_BINARY_DIR}/Tests/TestInstall/TestInstall.sh
+ ${CMake_BINARY_DIR}/Tests/TestShellInstall/TestInstall.sh
@ONLY IMMEDIATE
)
- ADD_TEST(Install /bin/sh ${CMake_BINARY_DIR}/Tests/TestInstall/TestInstall.sh)
- ENDIF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/Tests/TestInstall/Prefix$")
+ ADD_TEST(ShellInstall /bin/sh ${CMake_BINARY_DIR}/Tests/TestShellInstall/TestShellInstall.sh)
+ ENDIF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/Tests/TestShellInstall/Prefix$")
ENDIF(UNIX)
ENDIF(BUILD_TESTING)