diff options
Diffstat (limited to 'c++/test/CMakeVFDTests.cmake')
-rw-r--r-- | c++/test/CMakeVFDTests.cmake | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/c++/test/CMakeVFDTests.cmake b/c++/test/CMakeVFDTests.cmake index ced9b0c..92b7340 100644 --- a/c++/test/CMakeVFDTests.cmake +++ b/c++/test/CMakeVFDTests.cmake @@ -22,19 +22,15 @@ H5_CREATE_VFD_DIR() ### T H E T E S T S M A C R O S ### ############################################################################## ############################################################################## - +set (CPP_VFD_CLEANFILES + *-cpp_testhdf5.out + *-cpp_testhdf5.out.err +) macro (ADD_VFD_TEST vfdname resultcode) if (NOT HDF5_ENABLE_USING_MEMCHECKER) add_test ( NAME CPP_VFD-${vfdname}-cpp_testhdf5-clear-objects - COMMAND ${CMAKE_COMMAND} -E remove - tattr_basic.h5 - tattr_compound.h5 - tattr_dtype.h5 - tattr_multi.h5 - tattr_scalar.h5 - tfattrs.h5 - titerate.h5 + COMMAND ${CMAKE_COMMAND} -E remove ${CPP_VFD_CLEANFILES} WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/${vfdname} ) add_test ( @@ -51,6 +47,12 @@ macro (ADD_VFD_TEST vfdname resultcode) ) set_tests_properties (CPP_VFD-${vfdname}-cpp_testhdf5 PROPERTIES DEPENDS CPP_VFD-${vfdname}-cpp_testhdf5-clear-objects) set_tests_properties (CPP_VFD-${vfdname}-cpp_testhdf5 PROPERTIES TIMEOUT ${CTEST_SHORT_TIMEOUT}) + add_test ( + NAME CPP_VFD-${vfdname}-cpp_testhdf5-clean-objects + COMMAND ${CMAKE_COMMAND} -E remove ${CPP_VFD_CLEANFILES} + WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/${vfdname} + ) + set_tests_properties (CPP_VFD-${vfdname}-cpp_testhdf5-clean-objects PROPERTIES DEPENDS CPP_VFD-${vfdname}-cpp_testhdf5) endif () endmacro () |