summaryrefslogtreecommitdiffstats
path: root/hl/tools
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 /hl/tools
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 'hl/tools')
-rw-r--r--hl/tools/h5watch/CMakeTests.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/hl/tools/h5watch/CMakeTests.cmake b/hl/tools/h5watch/CMakeTests.cmake
index 7c1a7f5..aa4c41a 100644
--- a/hl/tools/h5watch/CMakeTests.cmake
+++ b/hl/tools/h5watch/CMakeTests.cmake
@@ -86,6 +86,9 @@ add_custom_target(H5WATCH_files ALL COMMENT "Copying files needed by H5WATCH tes
DEPENDS ${last_test}
FIXTURES_REQUIRED gen_test_watch
)
+ if ("H5WATCH_ARGS-h5watch-${resultfile}" MATCHES "${HDF5_DISABLE_TESTS_REGEX}")
+ set_tests_properties (H5WATCH_ARGS-h5watch-${resultfile} PROPERTIES DISABLED true)
+ endif ()
set (last_test "H5WATCH_ARGS-h5watch-${resultfile}")
endif ()
endmacro ()
@@ -109,6 +112,9 @@ add_custom_target(H5WATCH_files ALL COMMENT "Copying files needed by H5WATCH tes
DEPENDS ${last_test}
FIXTURES_REQUIRED gen_test_watch
)
+ if ("H5WATCH_ARGS-h5watch-${resultfile}" MATCHES "${HDF5_DISABLE_TESTS_REGEX}")
+ set_tests_properties (H5WATCH_ARGS-h5watch-${resultfile} PROPERTIES DISABLED true)
+ endif ()
set (last_test "H5WATCH_ARGS-h5watch-${resultfile}")
endif ()
endmacro ()
@@ -131,6 +137,9 @@ add_custom_target(H5WATCH_files ALL COMMENT "Copying files needed by H5WATCH tes
DEPENDS ${last_test}
FIXTURES_REQUIRED gen_test_watch
)
+ if ("H5WATCH-${resultfile}" MATCHES "${HDF5_DISABLE_TESTS_REGEX}")
+ set_tests_properties (H5WATCH-${resultfile} PROPERTIES DISABLED true)
+ endif ()
set (last_test "H5WATCH-${resultfile}")
endif ()
endmacro ()