summaryrefslogtreecommitdiffstats
path: root/bin/runtest
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-03-08 23:36:59 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-03-08 23:36:59 (GMT)
commit6531ce3b5249be34c30cdf6b6ee7dec49aa20d9c (patch)
tree9f7aa8a6819f06301a69de2454cc3d493e824678 /bin/runtest
parent918cc351d225376e3925e484a31513103b99ea0a (diff)
downloadhdf5-6531ce3b5249be34c30cdf6b6ee7dec49aa20d9c.zip
hdf5-6531ce3b5249be34c30cdf6b6ee7dec49aa20d9c.tar.gz
hdf5-6531ce3b5249be34c30cdf6b6ee7dec49aa20d9c.tar.bz2
[svn-r5055] Purpose:
New feature Description: "snapshot diff" will just run the diff and exit 0 is no significant differences found between current and previous versions. Runtest will try a "snapshot diff" and will skip test if no significant differences are found. Platforms tested: eirene
Diffstat (limited to 'bin/runtest')
-rwxr-xr-xbin/runtest13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/runtest b/bin/runtest
index 3447b10..d4aca93 100755
--- a/bin/runtest
+++ b/bin/runtest
@@ -31,6 +31,7 @@ H5VER= # default to current CVS version
H5VERSION= # default to current CVS version
# Default to do checkout (only once) and test, no release.
+# Will run test only if there is significant differences from previous version.
# If srcdir is not used, don't launched multiple tests
SNAPSHOT="${DEBUGMODE:+echo }bin/snapshot"
SRCDIR="srcdir"
@@ -518,6 +519,7 @@ PASSEDLOG=${SNAPYARD}/log/PASSED_LOG_${TODAY}
FAILEDLOG=${SNAPYARD}/log/FAILED_LOG_${TODAY}
CVSLOG=${SNAPYARD}/log/CVS_LOG_${TODAY}
CVSLOG_LOCK=${SNAPYARD}/log/CVS_LOG_LOCK_${TODAY}
+DIFFLOG=${SNAPYARD}/log/DIFF_LOG_${TODAY}
# Snap Test Configuration file
SNAPTESTCFG=${SNAPYARD}/snaptest.cfg
@@ -595,6 +597,17 @@ else
fi
fi
+# run a snapshot diff to see if any significant differences between
+# the current and previous versions
+($SNAPSHOT diff ) >> $DIFFLOG 2>&1
+errcode=$?
+if [ $errcode -eq 0 ]; then
+ # no need to run test
+ PRINT "NO TEST: no significant differences between current and previous versions" |
+ tee -a $PASSEDLOG
+ exit 0
+fi
+
# we can use the version of script in SNAPYARD/current now
PROGNAME="$SNAPYARD/current/$PROGNAME"