summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-05-22 22:22:02 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-05-22 22:22:02 (GMT)
commit68caabdfd501d63db1f506d8a31e568c455f9111 (patch)
tree0141f492f5a67c40aa38f45e74e6e73133af8ba5 /tools
parent7065b730e896931cecc57b162c0478673eee75cb (diff)
downloadhdf5-68caabdfd501d63db1f506d8a31e568c455f9111.zip
hdf5-68caabdfd501d63db1f506d8a31e568c455f9111.tar.gz
hdf5-68caabdfd501d63db1f506d8a31e568c455f9111.tar.bz2
[svn-r6911] Purpose:
made the test file to compare be created if it does not exist Description: Solution: Platforms tested: Misc. update:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/h5diff/testh5diff.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/h5diff/testh5diff.sh b/tools/h5diff/testh5diff.sh
index 902dca8..e39ebc4 100755
--- a/tools/h5diff/testh5diff.sh
+++ b/tools/h5diff/testh5diff.sh
@@ -68,8 +68,12 @@ TOOLTEST() {
fi
) >$actual 2>$actual_err
cat $actual_err >> $actual
-
- if $CMP $expect $actual; then
+
+ if [ ! -f $expect ]; then
+ # Create the expect file if it doesn't yet exist.
+ echo " CREATED"
+ cp $actual $expect
+ elif $CMP $expect $actual; then
echo " PASSED"
else
echo "*FAILED*"