summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-01-24 21:29:21 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-01-24 21:29:21 (GMT)
commitc1068c94caa6346efd3fa83db216ae25978c1ee9 (patch)
treeac2f92caa82bd6b4bb8873ef8f5906e15d5f7b5c /bin
parent0a65827564d7f9d7c7a54cc4af29dd51c83c1804 (diff)
downloadhdf5-c1068c94caa6346efd3fa83db216ae25978c1ee9.zip
hdf5-c1068c94caa6346efd3fa83db216ae25978c1ee9.tar.gz
hdf5-c1068c94caa6346efd3fa83db216ae25978c1ee9.tar.bz2
[svn-r13190] Copied the feature of testing check-install after deploy is run from v1.6.
Did some cosmetic changes of the check-vfd option.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/snapshot25
1 files changed, 15 insertions, 10 deletions
diff --git a/bin/snapshot b/bin/snapshot
index 8bfcf679..c19efc8 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -19,9 +19,6 @@
# checked back into the source repository.
#
-
-CHECKVAL=check
-
# function definitions
TIMESTAMP()
{
@@ -67,6 +64,9 @@ METHODS="gzip bzip2 md5 doc"
# Use User's MAKE if set. Else use generic make.
MAKE=${MAKE:-make}
+# Default check action.
+CHECKVAL=check
+
#
# Command options
cmd="all"
@@ -187,12 +187,12 @@ while [ $# -gt 0 ] ; do
fi
ReleaseDir="$1"
;;
- --*)
- OP_CONFIGURE="$OP_CONFIGURE $1"
- ;;
check-vfd)
CHECKVAL=check-vfd
;;
+ --*)
+ OP_CONFIGURE="$OP_CONFIGURE $1"
+ ;;
op-configure)
shift
if [ $# -lt 1 ]; then
@@ -309,7 +309,7 @@ if [ "$cmd" = "all" -o -n "$cmdcheckout" ]; then
TIMESTAMP "checkout"
# If there is a Makefile in ${CURRENT}, the last test done in it
# has not been distclean'ed. They would interfere with other
- # --srcdir build since make considers the files in ${CURRENT}
+ # --srcdir build since make considers the files in ${CURRENT}
# take precedence over files in its own build-directory. Run
# a "make distclean" to clean them all out. This is not really
# part of the "checkout" functions but this is the most convenient
@@ -389,7 +389,7 @@ if [ "$cmd" = "all" -o -n "$cmdtest" -o -n "$cmddiff" ]; then
${srcdir:+${CURRENT}/}${CONFIGURE} && \
TIMESTAMP "make" && \
${MAKE} && \
- TIMESTAMP "check" && \
+ TIMESTAMP ${CHECKVAL} && \
${MAKE} ${CHECKVAL} && \
TIMESTAMP "install" && \
${MAKE} install-all && \
@@ -413,7 +413,12 @@ fi # Test the HDF5 library
if [ -n "$DEPLOYDIRNAME" ]; then
if [ "$snapshot" = "yes" ]; then
TIMESTAMP "deploy"
- if (cd ${TESTDIR} && ${CURRENT}/bin/deploy ${deploydir}/${DEPLOYDIRNAME}); then
+ if (cd ${TESTDIR} &&
+ ${CURRENT}/bin/deploy ${deploydir}/${DEPLOYDIRNAME} && \
+ TIMESTAMP "clean" && \
+ ${MAKE} clean && \
+ TIMESTAMP "check-install prefix=${deploydir}/${DEPLOYDIRNAME}" && \
+ ${MAKE} check-install prefix=${deploydir}/${DEPLOYDIRNAME}); then
: #continue
else
errcode=$?
@@ -439,7 +444,7 @@ if [ "$cmd" = "all" -o -n "$cmdrel" ]; then
echo "Making snapshot release ($RELEASE_VERSION) to ${ReleaseDir}..."
bin/release -d $ReleaseDir $METHODS
perl bin/h5vers -i
- svn -q commit -m "Snapshot $RELEASE_VERSION"
+ svn -q commit -m "Snapshot $RELEASE_VERSION"
)
errcode=$?
fi