diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-05-22 22:22:02 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-05-22 22:22:02 (GMT) |
commit | 68caabdfd501d63db1f506d8a31e568c455f9111 (patch) | |
tree | 0141f492f5a67c40aa38f45e74e6e73133af8ba5 /tools/h5diff | |
parent | 7065b730e896931cecc57b162c0478673eee75cb (diff) | |
download | hdf5-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/h5diff')
-rwxr-xr-x | tools/h5diff/testh5diff.sh | 8 |
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*" |