From 68caabdfd501d63db1f506d8a31e568c455f9111 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Thu, 22 May 2003 17:22:02 -0500 Subject: [svn-r6911] Purpose: made the test file to compare be created if it does not exist Description: Solution: Platforms tested: Misc. update: --- tools/h5diff/testh5diff.sh | 8 ++++++-- 1 file 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*" -- cgit v0.12