diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-11-22 13:51:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 13:51:30 (GMT) |
commit | 3ea21ccb3e84dae935c32faff5d10ce9672a3265 (patch) | |
tree | 825781aed8fbee0af89bc0303921757ba7c360e0 /fortran/test | |
parent | 046440400f877ce1f6c94ccce0c17c0619647b42 (diff) | |
download | hdf5-3ea21ccb3e84dae935c32faff5d10ce9672a3265.zip hdf5-3ea21ccb3e84dae935c32faff5d10ce9672a3265.tar.gz hdf5-3ea21ccb3e84dae935c32faff5d10ce9672a3265.tar.bz2 |
Add HDF5_DISABLE_TESTS_REGEX option to skip tests (#3859)
Diffstat (limited to 'fortran/test')
-rw-r--r-- | fortran/test/CMakeTests.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fortran/test/CMakeTests.cmake b/fortran/test/CMakeTests.cmake index 02c23bb..46b8972 100644 --- a/fortran/test/CMakeTests.cmake +++ b/fortran/test/CMakeTests.cmake @@ -94,6 +94,9 @@ endif () set_tests_properties (FORTRAN_testhdf5_fortran PROPERTIES FIXTURES_REQUIRED clear_testhdf5_fortran ) +if ("FORTRAN_testhdf5_fortran" MATCHES "${HDF5_DISABLE_TESTS_REGEX}") + set_tests_properties (FORTRAN_testhdf5_fortran PROPERTIES DISABLED true) +endif () #-- Adding test for testhdf5_fortran_1_8 if (HDF5_ENABLE_USING_MEMCHECKER) @@ -118,6 +121,9 @@ set_tests_properties (FORTRAN_testhdf5_fortran_1_8 PROPERTIES DEPENDS FORTRAN_testhdf5_fortran FIXTURES_REQUIRED clear_testhdf5_fortran ) +if ("FORTRAN_testhdf5_fortran_1_8" MATCHES "${HDF5_DISABLE_TESTS_REGEX}") + set_tests_properties (FORTRAN_testhdf5_fortran_1_8 PROPERTIES DISABLED true) +endif () #-- Adding test for fortranlib_test_F03 if (HDF5_ENABLE_USING_MEMCHECKER) @@ -142,6 +148,9 @@ set_tests_properties (FORTRAN_fortranlib_test_F03 PROPERTIES DEPENDS FORTRAN_testhdf5_fortran_1_8 FIXTURES_REQUIRED clear_testhdf5_fortran ) +if ("FORTRAN_fortranlib_test_F03" MATCHES "${HDF5_DISABLE_TESTS_REGEX}") + set_tests_properties (FORTRAN_fortranlib_test_F03 PROPERTIES DISABLED true) +endif () #-- Adding test for vol_connector if (HDF5_ENABLE_USING_MEMCHECKER) @@ -164,6 +173,9 @@ endif () set_tests_properties (FORTRAN_vol_connector PROPERTIES FIXTURES_REQUIRED clear_testhdf5_fortran ) +if ("FORTRAN_vol_connector" MATCHES "${HDF5_DISABLE_TESTS_REGEX}") + set_tests_properties (FORTRAN_vol_connector PROPERTIES DISABLED true) +endif () #-- Adding test for fflush1 add_test ( @@ -177,6 +189,9 @@ add_test ( set_tests_properties (FORTRAN_fflush1 PROPERTIES DEPENDS FORTRAN_flush1-clear-objects ) +if ("FORTRAN_fflush1" MATCHES "${HDF5_DISABLE_TESTS_REGEX}") + set_tests_properties (FORTRAN_fflush1 PROPERTIES DISABLED true) +endif () #-- Adding test for fflush2 add_test ( @@ -186,6 +201,9 @@ add_test ( set_tests_properties (FORTRAN_fflush2 PROPERTIES DEPENDS FORTRAN_fflush1 ) +if ("FORTRAN_fflush2" MATCHES "${HDF5_DISABLE_TESTS_REGEX}") + set_tests_properties (FORTRAN_fflush2 PROPERTIES DISABLED true) +endif () add_test ( NAME FORTRAN_flush1-clean-objects COMMAND ${CMAKE_COMMAND} -E remove flush.h5 |