diff options
author | David Cole <david.cole@kitware.com> | 2008-07-30 20:36:22 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2008-07-30 20:36:22 (GMT) |
commit | 6ec7ec20792c5a83bad99066447965baad59b831 (patch) | |
tree | 97fdf0e11091c9b71a2f06eb06c46c0afcd1ba1e /Tests/CMakeLists.txt | |
parent | bab77e53e3aef9c07fe488e73be8dc7d60aaa4fc (diff) | |
download | CMake-6ec7ec20792c5a83bad99066447965baad59b831.zip CMake-6ec7ec20792c5a83bad99066447965baad59b831.tar.gz CMake-6ec7ec20792c5a83bad99066447965baad59b831.tar.bz2 |
ENH: Add test for the new CPack BundleGenerator. Thanks to Tim Shead for the patch. See issue #7170 for more details.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index f2601c8..d1ddb10 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -709,6 +709,19 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel ADD_TEST_MACRO(ObjC++ ObjC++) ENDIF (APPLE AND CMAKE_COMPILER_IS_GNUCXX) + IF(APPLE AND CTEST_TEST_CPACK) + ADD_TEST(BundleGeneratorTest ${CMAKE_CTEST_COMMAND} + --build-and-test + "${CMake_SOURCE_DIR}/Tests/BundleGeneratorTest" + "${CMake_BINARY_DIR}/Tests/BundleGeneratorTest" + --build-two-config + --build-generator ${CMAKE_TEST_GENERATOR} + --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} + --build-target package + --build-options "-DCMAKE_INSTALL_PREFIX:PATH=${CMake_BINARY_DIR}/Tests/BundleGeneratorTest/InstallDirectory" + ) + ENDIF(APPLE AND CTEST_TEST_CPACK) + IF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS) CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestTest/test.cmake.in" "${CMake_BINARY_DIR}/Tests/CTestTest/test.cmake" @ONLY ESCAPE_QUOTES) |