[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.
This commit is contained in:
Albert Cheng 2007-01-24 16:29:21 -05:00
parent 0a65827564
commit c1068c94ca

View File

@ -19,9 +19,6 @@
# checked back into the source repository. # checked back into the source repository.
# #
CHECKVAL=check
# function definitions # function definitions
TIMESTAMP() TIMESTAMP()
{ {
@ -67,6 +64,9 @@ METHODS="gzip bzip2 md5 doc"
# Use User's MAKE if set. Else use generic make. # Use User's MAKE if set. Else use generic make.
MAKE=${MAKE:-make} MAKE=${MAKE:-make}
# Default check action.
CHECKVAL=check
# #
# Command options # Command options
cmd="all" cmd="all"
@ -187,12 +187,12 @@ while [ $# -gt 0 ] ; do
fi fi
ReleaseDir="$1" ReleaseDir="$1"
;; ;;
--*)
OP_CONFIGURE="$OP_CONFIGURE $1"
;;
check-vfd) check-vfd)
CHECKVAL=check-vfd CHECKVAL=check-vfd
;; ;;
--*)
OP_CONFIGURE="$OP_CONFIGURE $1"
;;
op-configure) op-configure)
shift shift
if [ $# -lt 1 ]; then if [ $# -lt 1 ]; then
@ -309,7 +309,7 @@ if [ "$cmd" = "all" -o -n "$cmdcheckout" ]; then
TIMESTAMP "checkout" TIMESTAMP "checkout"
# If there is a Makefile in ${CURRENT}, the last test done in it # If there is a Makefile in ${CURRENT}, the last test done in it
# has not been distclean'ed. They would interfere with other # 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 # take precedence over files in its own build-directory. Run
# a "make distclean" to clean them all out. This is not really # a "make distclean" to clean them all out. This is not really
# part of the "checkout" functions but this is the most convenient # 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} && \ ${srcdir:+${CURRENT}/}${CONFIGURE} && \
TIMESTAMP "make" && \ TIMESTAMP "make" && \
${MAKE} && \ ${MAKE} && \
TIMESTAMP "check" && \ TIMESTAMP ${CHECKVAL} && \
${MAKE} ${CHECKVAL} && \ ${MAKE} ${CHECKVAL} && \
TIMESTAMP "install" && \ TIMESTAMP "install" && \
${MAKE} install-all && \ ${MAKE} install-all && \
@ -413,7 +413,12 @@ fi # Test the HDF5 library
if [ -n "$DEPLOYDIRNAME" ]; then if [ -n "$DEPLOYDIRNAME" ]; then
if [ "$snapshot" = "yes" ]; then if [ "$snapshot" = "yes" ]; then
TIMESTAMP "deploy" 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 : #continue
else else
errcode=$? errcode=$?
@ -439,7 +444,7 @@ if [ "$cmd" = "all" -o -n "$cmdrel" ]; then
echo "Making snapshot release ($RELEASE_VERSION) to ${ReleaseDir}..." echo "Making snapshot release ($RELEASE_VERSION) to ${ReleaseDir}..."
bin/release -d $ReleaseDir $METHODS bin/release -d $ReleaseDir $METHODS
perl bin/h5vers -i perl bin/h5vers -i
svn -q commit -m "Snapshot $RELEASE_VERSION" svn -q commit -m "Snapshot $RELEASE_VERSION"
) )
errcode=$? errcode=$?
fi fi