summaryrefslogtreecommitdiffstats
path: root/test/CMakePassthroughVOLTests.cmake
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-11-22 13:51:30 (GMT)
committerGitHub <noreply@github.com>2023-11-22 13:51:30 (GMT)
commit3ea21ccb3e84dae935c32faff5d10ce9672a3265 (patch)
tree825781aed8fbee0af89bc0303921757ba7c360e0 /test/CMakePassthroughVOLTests.cmake
parent046440400f877ce1f6c94ccce0c17c0619647b42 (diff)
downloadhdf5-3ea21ccb3e84dae935c32faff5d10ce9672a3265.zip
hdf5-3ea21ccb3e84dae935c32faff5d10ce9672a3265.tar.gz
hdf5-3ea21ccb3e84dae935c32faff5d10ce9672a3265.tar.bz2
Add HDF5_DISABLE_TESTS_REGEX option to skip tests (#3859)
Diffstat (limited to 'test/CMakePassthroughVOLTests.cmake')
-rw-r--r--test/CMakePassthroughVOLTests.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CMakePassthroughVOLTests.cmake b/test/CMakePassthroughVOLTests.cmake
index 853e4b3..fbff51a 100644
--- a/test/CMakePassthroughVOLTests.cmake
+++ b/test/CMakePassthroughVOLTests.cmake
@@ -107,10 +107,14 @@ add_custom_target(HDF5_VOLTEST_LIB_files ALL COMMENT "Copying files needed by HD
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${volname}"
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${volname}
)
+ if ("VOL-${volname}-${voltest}" MATCHES "${HDF5_DISABLE_TESTS_REGEX}")
+ set_tests_properties (VOL-${volname}-${voltest} PROPERTIES DISABLED true)
+ endif ()
else ()
add_test (NAME VOL-${volname}-${voltest}
COMMAND ${CMAKE_COMMAND} -E echo "SKIP VOL-${volname}-${voltest}"
)
+ set_tests_properties (VOL-${volname}-${voltest} PROPERTIES DISABLED true)
endif ()
else ()
add_test (NAME VOL-${volname}-${voltest}
@@ -128,6 +132,9 @@ add_custom_target(HDF5_VOLTEST_LIB_files ALL COMMENT "Copying files needed by HD
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${volname}"
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${volname}
)
+ if ("VOL-${volname}-${voltest}" MATCHES "${HDF5_DISABLE_TESTS_REGEX}")
+ set_tests_properties (VOL-${volname}-${voltest} PROPERTIES DISABLED true)
+ endif ()
endif ()
else ()
add_test (NAME VOL-${volname}-${voltest}
@@ -145,6 +152,9 @@ add_custom_target(HDF5_VOLTEST_LIB_files ALL COMMENT "Copying files needed by HD
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${volname}"
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${volname}
)
+ if ("VOL-${volname}-${voltest}" MATCHES "${HDF5_DISABLE_TESTS_REGEX}")
+ set_tests_properties (VOL-${volname}-${voltest} PROPERTIES DISABLED true)
+ endif ()
endif ()
endmacro ()
@@ -165,6 +175,9 @@ add_custom_target(HDF5_VOLTEST_LIB_files ALL COMMENT "Copying files needed by HD
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${volname}"
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${volname}
)
+ if ("VOL-${volname}-${voltest}" MATCHES "${HDF5_DISABLE_TESTS_REGEX}")
+ set_tests_properties (VOL-${volname}-${voltest} PROPERTIES DISABLED true)
+ endif ()
endmacro ()
macro (ADD_VOL_TEST volname volinfo resultcode)
@@ -202,6 +215,9 @@ add_custom_target(HDF5_VOLTEST_LIB_files ALL COMMENT "Copying files needed by HD
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${volname}"
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${volname}
)
+ if ("VOL-${volname}-fheap" MATCHES "${HDF5_DISABLE_TESTS_REGEX}")
+ set_tests_properties (VOL-${volname}-fheap PROPERTIES DISABLED true)
+ endif ()
endif ()
endmacro ()