mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-28 04:09:38 +03:00
[svn-r13914] Description:
Clean up files generated during testing.
Tested on:
Linux/32 2.6 (chicago)
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ main(int argc, char *argv[])
|
||||
AddTest("skiplist", test_skiplist, NULL, "Skip Lists", NULL);
|
||||
AddTest("refstr", test_refstr, NULL, "Reference Counted Strings", NULL);
|
||||
AddTest("file", test_file, cleanup_file, "Low-Level File I/O", NULL);
|
||||
AddTest("objects", test_h5o, cleanup_file, "Generic Object Functions", NULL);
|
||||
AddTest("objects", test_h5o, cleanup_h5o, "Generic Object Functions", NULL);
|
||||
AddTest("h5s", test_h5s, cleanup_h5s, "Dataspaces", NULL);
|
||||
AddTest("sohm", test_sohm, cleanup_sohm, "Shared Object Header Messages", NULL);
|
||||
AddTest("attr", test_attr, cleanup_attr, "Attributes", NULL);
|
||||
|
||||
@@ -39,4 +39,8 @@ h5copygentest_SOURCES=h5copygentest.c
|
||||
# All programs depend on the hdf5 and h5tools libraries
|
||||
LDADD=$(LIBH5TOOLS) $(LIBHDF5)
|
||||
|
||||
# Temporary files. *.h5 are generated by h5dumpgentest. They should
|
||||
# copied to the testfiles/ directory if update is required.
|
||||
CHECK_CLEANFILES+=*.h5
|
||||
|
||||
include $(top_srcdir)/config/conclude.am
|
||||
|
||||
@@ -316,7 +316,7 @@ TRACE = perl $(top_srcdir)/bin/trace
|
||||
# .chkexe files are used to mark tests that have run successfully.
|
||||
# .chklog files are output from those tests.
|
||||
# *.clog are from the MPE option.
|
||||
CHECK_CLEANFILES = *.chkexe *.chklog *.clog
|
||||
CHECK_CLEANFILES = *.chkexe *.chklog *.clog *.h5
|
||||
|
||||
# Include src and tools/lib directories
|
||||
INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/tools/lib
|
||||
|
||||
@@ -107,6 +107,11 @@ TOOLTEST()
|
||||
nerrors="`expr $nerrors + 1`"
|
||||
else
|
||||
echo " PASSED"
|
||||
|
||||
# Clean up output file
|
||||
if test -z "$HDF5_NOCLEANUP"; then
|
||||
rm -f output.out
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $runh5diff != no ]; then
|
||||
@@ -166,6 +171,11 @@ H5LSTEST()
|
||||
nerrors="`expr $nerrors + 1`"
|
||||
test yes = "$verbose" && $DIFF $expect $actual |sed 's/^/ /'
|
||||
fi
|
||||
|
||||
# Clean up output file
|
||||
if test -z "$HDF5_NOCLEANUP"; then
|
||||
rm -f $actual $actual_err
|
||||
fi
|
||||
}
|
||||
|
||||
# Copy single datasets of various forms from one group to another,
|
||||
|
||||
@@ -79,6 +79,11 @@ TOOLTEST()
|
||||
nerrors="`expr $nerrors + 1`"
|
||||
else
|
||||
echo " PASSED"
|
||||
|
||||
# Clean up output file
|
||||
if test -z "$HDF5_NOCLEANUP"; then
|
||||
rm -f output.out
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -112,6 +117,11 @@ H5LSTEST()
|
||||
nerrors="`expr $nerrors + 1`"
|
||||
test yes = "$verbose" && $DIFF $expect $actual |sed 's/^/ /'
|
||||
fi
|
||||
|
||||
# Clean up output file
|
||||
if test -z "$HDF5_NOCLEANUP"; then
|
||||
rm -f $actual $actual_err
|
||||
fi
|
||||
}
|
||||
|
||||
# Single run of tool
|
||||
@@ -138,6 +148,7 @@ RUNTEST()
|
||||
|
||||
# Remove output file created, if the "no cleanup" environment variable is
|
||||
# not defined
|
||||
echo "FILEOUT=" $FILEOUT
|
||||
if test -z "$HDF5_NOCLEANUP"; then
|
||||
rm -f $FILEOUT
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user