From 92723c7e02110865a393547e942e53cdefd2315a Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Tue, 28 Jun 2005 11:40:25 -0500 Subject: [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: --- tools/h5diff/testh5diff.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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*" -- cgit v0.12