diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-14 14:44:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-14 14:44:42 (GMT) |
commit | 847f01442b20cbe7132a1533e493e06975b48bdc (patch) | |
tree | c3939e0da50f811dc126d719ac6aa17e7103e590 /tools/misc | |
parent | bb392083b2a81aa942678e06a537a3c0ab5c08aa (diff) | |
download | hdf5-847f01442b20cbe7132a1533e493e06975b48bdc.zip hdf5-847f01442b20cbe7132a1533e493e06975b48bdc.tar.gz hdf5-847f01442b20cbe7132a1533e493e06975b48bdc.tar.bz2 |
[svn-r13299] Description:
Put paths to testfile input & output directories in one place, making it
easier to modify them if we choose to re-arrange our testfile locations in
the future (this should probably be carried over to other test scripts).
Make h5copy exit more cleanly if no command line parameters are given.
Tested on:
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/testh5mkgrp.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/misc/testh5mkgrp.sh b/tools/misc/testh5mkgrp.sh index e4912bb..b90c288 100644 --- a/tools/misc/testh5mkgrp.sh +++ b/tools/misc/testh5mkgrp.sh @@ -28,6 +28,8 @@ H5LS_BIN=`pwd`/../h5ls/$H5LS # The path of the h5ls tool binary nerrors=0 verbose=yes +INDIR=$srcdir/../testfiles +OUTDIR=../testfiles CMP='cmp -s' DIFF='diff -c' @@ -35,7 +37,7 @@ DIFF='diff -c' if test -z "$srcdir"; then srcdir=. fi -test -d ../testfiles || mkdir ../testfiles +test -d $OUTDIR || mkdir $OUTDIR # Print a line-line message left justified in a field of 70 characters # beginning with the word "Testing". @@ -84,8 +86,8 @@ TOOLTEST() # H5LSTEST() { - expect="$srcdir/../testfiles/`basename $1 .h5`.ls" - actual="../testfiles/`basename $1 .h5`.out" + expect="$INDIR/`basename $1 .h5`.ls" + actual="$OUTDIR/`basename $1 .h5`.out" # Stderr is included in stdout so that the diff can detect # any unexpected output from that stream too. @@ -120,7 +122,7 @@ H5LSTEST() # $* are groups to create RUNTEST() { - FILEOUT=../testfiles/$1 + FILEOUT=$OUTDIR/$1 shift H5MKGRP_ARGS=$1 shift @@ -136,7 +138,7 @@ RUNTEST() # Remove output file created, if the "no cleanup" environment variable is # not defined - if [ x$HDF5_NOCLEANUP = "x" ]; then + if test -z "$HDF5_NOCLEANUP"; then rm -f $FILEOUT fi } |