diff options
Diffstat (limited to 'c++')
-rw-r--r-- | c++/test/CMakeTests.cmake | 3 | ||||
-rw-r--r-- | c++/test/CMakeVFDTests.cmake | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/c++/test/CMakeTests.cmake b/c++/test/CMakeTests.cmake index fc94a68..224b099 100644 --- a/c++/test/CMakeTests.cmake +++ b/c++/test/CMakeTests.cmake @@ -35,6 +35,9 @@ endif () set_tests_properties (CPP_testhdf5 PROPERTIES WORKING_DIRECTORY ${PROJECT_BINARY_DIR} ) +if ("CPP_testhdf5" MATCHES "${HDF5_DISABLE_TESTS_REGEX}") + set_tests_properties (CPP_testhdf5 PROPERTIES DISABLED true) +endif () ############################################################################## ############################################################################## diff --git a/c++/test/CMakeVFDTests.cmake b/c++/test/CMakeVFDTests.cmake index 5405df3..52f8069 100644 --- a/c++/test/CMakeVFDTests.cmake +++ b/c++/test/CMakeVFDTests.cmake @@ -37,6 +37,9 @@ macro (ADD_VFD_TEST vfdname resultcode) -P "${HDF_RESOURCES_DIR}/vfdTest.cmake" ) set_tests_properties (CPP_VFD-${vfdname}-cpp_testhdf5 PROPERTIES TIMEOUT ${CTEST_SHORT_TIMEOUT}) + if ("CPP_VFD-${vfdname}-cpp_testhdf5" MATCHES "${HDF5_DISABLE_TESTS_REGEX}") + set_tests_properties (CPP_VFD-${vfdname}-cpp_testhdf5 PROPERTIES DISABLED true) + endif () endif () endmacro () |