diff options
author | Brad King <brad.king@kitware.com> | 2003-01-24 16:41:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-01-24 16:41:37 (GMT) |
commit | 0dfef723f7e74d4a6f3bd2520646772ef5302da2 (patch) | |
tree | 8996f93a794cfcf67646451fcee94b1df6f1edb4 /Utilities/Release/cmake_release.sh | |
parent | 100a96297e7a8a905ff8f819be72d0b68a11e7a6 (diff) | |
download | CMake-0dfef723f7e74d4a6f3bd2520646772ef5302da2.zip CMake-0dfef723f7e74d4a6f3bd2520646772ef5302da2.tar.gz CMake-0dfef723f7e74d4a6f3bd2520646772ef5302da2.tar.bz2 |
ENH: Enabled testing during release build.
Diffstat (limited to 'Utilities/Release/cmake_release.sh')
-rwxr-xr-x | Utilities/Release/cmake_release.sh | 16 |
1 files changed, 15 insertions, 1 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 && |