diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-04-13 21:57:04 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-04-13 21:57:04 (GMT) |
commit | 6abb662d70c8f1859f1863651a12a1020738b985 (patch) | |
tree | ac58ef53cb78ac48b5111375cf5aa69b5b82a00a | |
parent | 67b5490df0c3845908e1667023775a91ffe82648 (diff) | |
download | hdf5-6abb662d70c8f1859f1863651a12a1020738b985.zip hdf5-6abb662d70c8f1859f1863651a12a1020738b985.tar.gz hdf5-6abb662d70c8f1859f1863651a12a1020738b985.tar.bz2 |
[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
-rwxr-xr-x | bin/snapshot | 21 |
1 files 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. |