summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-04-19 19:52:46 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-04-19 19:52:46 (GMT)
commita2b9addbab18863ca7a5a3259f53e7b0e274eda6 (patch)
tree466e3218e6beade849ed27e6041c257b4877ebd4 /bin
parentd2cce99e6545f3e7f294f485e69afa79c8b77a3b (diff)
downloadhdf5-a2b9addbab18863ca7a5a3259f53e7b0e274eda6.zip
hdf5-a2b9addbab18863ca7a5a3259f53e7b0e274eda6.tar.gz
hdf5-a2b9addbab18863ca7a5a3259f53e7b0e274eda6.tar.bz2
[svn-r3826] Purpose:
Improvement Description: The DIFF used to keep running after detecting significant code changes. This was done in order to see all changes but no one seems to look at the diff any more. So, let it end the DIFF cycle once it determines there are enough differences for a new test. Added "install install-doc uninstall uninstall-doc" to the test cycle. Platforms tested: v1.5 works. This should work. Hard to test this without launching the daily test. Will let daily test shakes it down.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/snapshot21
1 files changed, 15 insertions, 6 deletions
diff --git a/bin/snapshot b/bin/snapshot
index 6f01eed..3481b1c 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -218,6 +218,8 @@ if [ "$cmd" = "all" -o -n "$cmdtest" ]; then
TESTDIR=${BASEDIR}/TestDir/${SRCDIRNAME}
test -d ${TESTDIR} || mkdir ${TESTDIR}
fi
+ INSTALLDIR=${TESTDIR}/installdir
+ test -d $INSTALLDIR || mkdir $INSTALLDIR
# Make sure current version exists and is clean
if [ -d ${TESTDIR} ]; then
(cd ${TESTDIR} && ${MAKE} distclean)
@@ -233,20 +235,27 @@ if [ "$cmd" = "all" -o -n "$cmdtest" ]; then
if (${DIFF} -c ${PREVIOUS}/MANIFEST ${CURRENT}/MANIFEST); then
snapshot=no
for src in `grep '^\.' ${CURRENT}/MANIFEST|expand|cut -f1 -d' '`; do
- ${DIFF} -I H5_VERS_RELEASE -I " released on " \
+ if ${DIFF} -I H5_VERS_RELEASE -I " released on " \
-I " currently under development" \
- ${PREVIOUS}/$src ${CURRENT}/$src || \
+ ${PREVIOUS}/$src ${CURRENT}/$src
+ then
+ : #continue
+ else
snapshot=yes
# Don't break because we want to see all the diffs.
+ break
+ fi
done
fi
fi
# Make sure all the serial tests work.
if [ "$snapshot" = "yes" ]; then
- if (cd ${TESTDIR}; \
- ${srcdir:+${CURRENT}/}${CONFIGURE}; \
- ${MAKE} check); then
+ if (cd ${TESTDIR} && \
+ ${srcdir:+${CURRENT}/}${CONFIGURE} --prefix=$INSTALLDIR && \
+ ${MAKE} check && \
+ ${MAKE} install install-doc && \
+ ${MAKE} uninstall uninstall-doc); then
:
else
errcode=$?
@@ -262,7 +271,7 @@ fi # Test the HDF5 library
#=============================
if [ "$cmd" = "all" -o -n "$cmdrel" ]; then
if [ "$snapshot" = "yes" ]; then
- (cd ${CURRENT}; ${MAKE} distclean)
+ (cd ${CURRENT} && ${MAKE} distclean)
(
# Turn on exit on error in the sub-shell so that it does not
# cvs commit if errors encounter here.