summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2005-06-28 16:40:25 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2005-06-28 16:40:25 (GMT)
commit92723c7e02110865a393547e942e53cdefd2315a (patch)
tree8c6b2c2698264530f3d98a111139febe932da689 /tools/h5diff
parent4a5f83b8f0cf0d6899940f1940ac1f63bac847ca (diff)
downloadhdf5-92723c7e02110865a393547e942e53cdefd2315a.zip
hdf5-92723c7e02110865a393547e942e53cdefd2315a.tar.gz
hdf5-92723c7e02110865a393547e942e53cdefd2315a.tar.bz2
[svn-r10995] Purpose:
modified the script test so that when the test files do not exist , they are created Description: Solution: Platforms tested: linux solaris Misc. update:
Diffstat (limited to 'tools/h5diff')
-rwxr-xr-xtools/h5diff/testh5diff.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/h5diff/testh5diff.sh b/tools/h5diff/testh5diff.sh
index 9132336..3ff3853 100755
--- a/tools/h5diff/testh5diff.sh
+++ b/tools/h5diff/testh5diff.sh
@@ -145,7 +145,11 @@ TOOLTEST() {
STDERR_FILTER $tmp_err
cat $tmp_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"
elif test -z "$pmode"; then
echo "*FAILED*"