summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-01-24 16:41:37 (GMT)
committerBrad King <brad.king@kitware.com>2003-01-24 16:41:37 (GMT)
commit0dfef723f7e74d4a6f3bd2520646772ef5302da2 (patch)
tree8996f93a794cfcf67646451fcee94b1df6f1edb4 /Utilities
parent100a96297e7a8a905ff8f819be72d0b68a11e7a6 (diff)
downloadCMake-0dfef723f7e74d4a6f3bd2520646772ef5302da2.zip
CMake-0dfef723f7e74d4a6f3bd2520646772ef5302da2.tar.gz
CMake-0dfef723f7e74d4a6f3bd2520646772ef5302da2.tar.bz2
ENH: Enabled testing during release build.
Diffstat (limited to 'Utilities')
-rwxr-xr-xUtilities/Release/cmake_release.sh16
-rw-r--r--Utilities/Release/config_AIX2
-rw-r--r--Utilities/Release/config_Darwin2
-rw-r--r--Utilities/Release/config_HP-UX2
-rw-r--r--Utilities/Release/config_Linux2
-rw-r--r--Utilities/Release/config_OSF12
-rw-r--r--Utilities/Release/config_SunOS2
7 files changed, 21 insertions, 7 deletions
diff --git a/Utilities/Release/cmake_release.sh b/Utilities/Release/cmake_release.sh
index 426ea49..3b2768a 100755
--- a/Utilities/Release/cmake_release.sh
+++ b/Utilities/Release/cmake_release.sh
@@ -283,11 +283,25 @@ build()
}
#-----------------------------------------------------------------------------
+tests()
+{
+ [ -z "${DONE_tests}" ] || return 0 ; DONE_tests="yes"
+ config || return 1
+ [ -f "cmake-${VERSION}-${PLATFORM}/Source/ccmake" ] || build || return 1
+ echo "Running tests ..." &&
+ (
+ cd "cmake-${VERSION}-${PLATFORM}" &&
+ rm -rf Tests &&
+ ./Source/ctest -V
+ ) >Logs/tests.log 2>&1 || error_log Logs/tests.log
+}
+
+#-----------------------------------------------------------------------------
install()
{
[ -z "${DONE_install}" ] || return 0 ; DONE_install="yes"
config || return 1
- [ -f "cmake-${VERSION}-${PLATFORM}/Source/ccmake" ] || build || return 1
+ [ -d "cmake-${VERSION}-${PLATFORM}/Tests/Simple" ] || tests || return 1
echo "Running make install ..." &&
(
rm -rf Install &&
diff --git a/Utilities/Release/config_AIX b/Utilities/Release/config_AIX
index be122b5..1bcc04f 100644
--- a/Utilities/Release/config_AIX
+++ b/Utilities/Release/config_AIX
@@ -6,6 +6,6 @@ CXX="xlC"
write_cache()
{
cat > CMakeCache.txt <<EOF
-BUILD_TESTING:BOOL=OFF
+BUILD_TESTING:BOOL=ON
EOF
}
diff --git a/Utilities/Release/config_Darwin b/Utilities/Release/config_Darwin
index 08f3a95..455e7de 100644
--- a/Utilities/Release/config_Darwin
+++ b/Utilities/Release/config_Darwin
@@ -8,7 +8,7 @@ WX_RESOURCES=${WX_PREFIX}/lib/libwx_mac-2.3.rsrc
write_cache()
{
cat > CMakeCache.txt <<EOF
-BUILD_TESTING:BOOL=OFF
+BUILD_TESTING:BOOL=ON
CURSES_LIBRARY:FILEPATH=/usr/local/lib/libncurses.a
CMAKE_BUILD_WX_DIALOG:BOOL=ON
CMAKE_WX_CONFIG:FILEPATH=${WX_PREFIX}/bin/wx-config
diff --git a/Utilities/Release/config_HP-UX b/Utilities/Release/config_HP-UX
index 8e38502..a1f173b 100644
--- a/Utilities/Release/config_HP-UX
+++ b/Utilities/Release/config_HP-UX
@@ -13,7 +13,7 @@ SET(CMAKE_DL_LIBS "")
EOF
cat > CMakeCache.txt <<EOF
-BUILD_TESTING:BOOL=OFF
+BUILD_TESTING:BOOL=ON
CMAKE_EXE_LINKER_FLAGS:STRING=-ldld -Wl,-a,archive_shared
CMAKE_USER_MAKE_RULES_OVERRIDE:STRING=${BINDIR}/UserMakeRules.cmake
CMAKE_SKIP_RPATH:BOOL=1
diff --git a/Utilities/Release/config_Linux b/Utilities/Release/config_Linux
index b4c1983..dab8797 100644
--- a/Utilities/Release/config_Linux
+++ b/Utilities/Release/config_Linux
@@ -8,7 +8,7 @@ CXX="c++"
write_cache()
{
cat > CMakeCache.txt <<EOF
-BUILD_TESTING:BOOL=OFF
+BUILD_TESTING:BOOL=ON
CMAKE_EXE_LINKER_FLAGS:STRING=-static
CMAKE_SKIP_RPATH:BOOL=1
CURSES_LIBRARY:FILEPATH=${CURSES_LIBRARY}
diff --git a/Utilities/Release/config_OSF1 b/Utilities/Release/config_OSF1
index 501b56a..bca89ba 100644
--- a/Utilities/Release/config_OSF1
+++ b/Utilities/Release/config_OSF1
@@ -10,7 +10,7 @@ TCL_TCLSH="/usr/local/bin/tclsh8.3"
write_cache()
{
cat > CMakeCache.txt <<EOF
-BUILD_TESTING:BOOL=OFF
+BUILD_TESTING:BOOL=ON
FLTK_INCLUDE_PATH:PATH=${FLTK_INCLUDE_PATH}
FLTK_LIBRARY:FILEPATH=${FLTK_LIBRARY}
TCL_TCLSH:FILEPATH=${TCL_TCLSH}
diff --git a/Utilities/Release/config_SunOS b/Utilities/Release/config_SunOS
index 1e34f5c..a45dbda 100644
--- a/Utilities/Release/config_SunOS
+++ b/Utilities/Release/config_SunOS
@@ -14,7 +14,7 @@ SET(CMAKE_DL_LIBS "")
EOF
cat > CMakeCache.txt <<EOF
-BUILD_TESTING:BOOL=OFF
+BUILD_TESTING:BOOL=ON
CMAKE_EXE_LINKER_FLAGS:STRING=-Wl,-Bdynamic -ldl -Wl,-Bstatic
CMAKE_USER_MAKE_RULES_OVERRIDE:STRING=${BINDIR}/UserMakeRules.cmake
CMAKE_SKIP_RPATH:BOOL=1