diff options
author | lrknox <lrknox> | 2017-01-13 04:20:11 (GMT) |
---|---|---|
committer | lrknox <lrknox> | 2017-01-13 04:20:11 (GMT) |
commit | 8452976de5d770adcf3892b25c8480042170fccd (patch) | |
tree | 4d94cbb8292116af3cf369adf1b47a014210ae17 /tools/test/h5diff | |
parent | 089afc48561ba8838d6a515c6b00fc6f7032ca13 (diff) | |
download | hdf5-8452976de5d770adcf3892b25c8480042170fccd.zip hdf5-8452976de5d770adcf3892b25c8480042170fccd.tar.gz hdf5-8452976de5d770adcf3892b25c8480042170fccd.tar.bz2 |
tools/test/h5diff/testh5diff.sh.in:
Add code to delete copies of test .h5 files copied from
tools/testfiles/vds to tools/test/h5diff/testfiles when running
"make check" for an in-source build.
tools/test/misc/testh5repart.sh.in:
Change the name of the temporary test directory from "testfiles"
which is also used for 2 h5mkgrp test files under source control to
"testrepart" to avoid deleting source controlled files when running
"make check" in the source directory.
Fix test scripts that remove source-controlled files during "make check" when run in-source.
Fix test scripts that don't remove test files because they add files to test directories but don't remove them if the build directories are the same as the source directory.
Fix any test source file or Makefile.am files for tests that leave data files are removed by neither "make check" nor "make distclean".
Diffstat (limited to 'tools/test/h5diff')
-rw-r--r-- | tools/test/h5diff/testh5diff.sh.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/test/h5diff/testh5diff.sh.in b/tools/test/h5diff/testh5diff.sh.in index d2f1397..39b87ca 100644 --- a/tools/test/h5diff/testh5diff.sh.in +++ b/tools/test/h5diff/testh5diff.sh.in @@ -382,6 +382,21 @@ CLEAN_TESTFILES_AND_TESTDIR() INODE_DDIR=`$LS -i -d $TESTDIR | $AWK -F' ' '{print $1}'` if [ "$INODE_SDIR" != "$INODE_DDIR" ]; then $RM $TESTDIR + else + # files in $LIST_HDF5_VDS_TEST_FILES are copied in from a different + # directory, so when srcdir is the same as destdir and $TESTDIR is + # not deleted, the copy n $TESTDIR of each file from + # $LIST_HDF5_VDS_TEST_FILES will need to be deleted. + for tstfile in $LIST_HDF5_VDS_TEST_FILES + do + # ignore '#' comment + echo $tstfile | tr -d ' ' | grep '^#' > /dev/null + RET=$? + if [ $RET -eq 1 ]; then + fname=`basename $tstfile` + rm $TESTDIR/$fname + fi + done fi } |