From 6abb662d70c8f1859f1863651a12a1020738b985 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 13 Apr 2001 16:57:04 -0500 Subject: [svn-r3812] 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: Eirene, gondolin, modi4 --- bin/snapshot | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/bin/snapshot b/bin/snapshot index dcb77e0..02d3b83 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. -- cgit v0.12