diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-08-08 20:01:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 20:01:06 (GMT) |
commit | 60ba2356de3f074b18acf2ba7737da160274b803 (patch) | |
tree | 81beb9bfbcd551878ea6b8656b70e2f3a0549f4f /tools/test/h5ls | |
parent | 5d63aca604713973ef6079deb0da247efa0e077a (diff) | |
download | hdf5-60ba2356de3f074b18acf2ba7737da160274b803.zip hdf5-60ba2356de3f074b18acf2ba7737da160274b803.tar.gz hdf5-60ba2356de3f074b18acf2ba7737da160274b803.tar.bz2 |
Revert for older cmake versions (#1974)
* Revert for older cmake versions
* Remove unneeded clear/clean tests because of changes to test macro
Diffstat (limited to 'tools/test/h5ls')
-rw-r--r-- | tools/test/h5ls/CMakeTests.cmake | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/tools/test/h5ls/CMakeTests.cmake b/tools/test/h5ls/CMakeTests.cmake index 0c493dd..2e2cc0b 100644 --- a/tools/test/h5ls/CMakeTests.cmake +++ b/tools/test/h5ls/CMakeTests.cmake @@ -135,15 +135,6 @@ ############################################################################## macro (ADD_H5_TEST resultfile resultcode) - add_test ( - NAME H5LS-${resultfile}-clear-objects - COMMAND ${CMAKE_COMMAND} -E remove - ${resultfile}.out - ${resultfile}.out.err - ) - set_tests_properties (H5LS-${resultfile}-clear-objects PROPERTIES - WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles" - ) # If using memchecker add tests without using scripts if (HDF5_ENABLE_USING_MEMCHECKER) add_test (NAME H5LS-${resultfile} COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:h5ls${tgt_file_ext}> ${ARGN}) @@ -169,31 +160,11 @@ ) endif () set_tests_properties (H5LS-${resultfile} PROPERTIES - DEPENDS "H5LS-${resultfile}-clear-objects" - WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles" - ) - add_test ( - NAME H5LS-${resultfile}-clean-objects - COMMAND ${CMAKE_COMMAND} -E remove - ${resultfile}.out - ${resultfile}.out.err - ) - set_tests_properties (H5LS-${resultfile}-clean-objects PROPERTIES - DEPENDS "H5LS-${resultfile}" WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles" ) endmacro () macro (ADD_H5_ERR_TEST resultfile resultcode) - add_test ( - NAME H5LS-${resultfile}-clear-objects - COMMAND ${CMAKE_COMMAND} -E remove - ${resultfile}.out - ${resultfile}.out.err - ) - set_tests_properties (H5LS-${resultfile}-clear-objects PROPERTIES - WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles" - ) # If using memchecker add tests without using scripts if (HDF5_ENABLE_USING_MEMCHECKER) add_test (NAME H5LS-${resultfile} COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:h5ls${tgt_file_ext}> ${ARGN}) @@ -217,17 +188,6 @@ ) endif () set_tests_properties (H5LS-${resultfile} PROPERTIES - DEPENDS "H5LS-${resultfile}-clear-objects" - WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles" - ) - add_test ( - NAME H5LS-${resultfile}-clean-objects - COMMAND ${CMAKE_COMMAND} -E remove - ${resultfile}.out - ${resultfile}.out.err - ) - set_tests_properties (H5LS-${resultfile}-clean-objects PROPERTIES - DEPENDS "H5LS-${resultfile}" WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles" ) endmacro () @@ -235,15 +195,6 @@ macro (ADD_H5_UD_TEST testname resultcode resultfile) if (NOT HDF5_ENABLE_USING_MEMCHECKER) add_test ( - NAME H5LS_UD-${testname}-${resultfile}-clear-objects - COMMAND ${CMAKE_COMMAND} -E remove - ${resultfile}.out - ${resultfile}.out.err - ) - set_tests_properties (H5LS_UD-${testname}-${resultfile}-clear-objects PROPERTIES - WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles" - ) - add_test ( NAME H5LS_UD-${testname}-${resultfile} COMMAND "${CMAKE_COMMAND}" -D "TEST_EMULATOR=${CMAKE_CROSSCOMPILING_EMULATOR}" @@ -259,17 +210,6 @@ -P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake" ) set_tests_properties (H5LS_UD-${testname}-${resultfile} PROPERTIES - DEPENDS "H5LS_UD-${testname}-${resultfile}-clear-objects" - WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles" - ) - add_test ( - NAME H5LS_UD-${testname}-${resultfile}-clean-objects - COMMAND ${CMAKE_COMMAND} -E remove - ${resultfile}.out - ${resultfile}.out.err - ) - set_tests_properties (H5LS_UD-${testname}-${resultfile}-clean-objects PROPERTIES - DEPENDS "H5LS_UD-${testname}-${resultfile}" WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles" ) endif () |