diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-01-29 14:45:04 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-01-29 14:45:04 (GMT) |
commit | aedb04c9ec7b4bff617d075b52e5db667d66db8e (patch) | |
tree | ad03dad8557fea710d49826a47ffb9093f1b3797 /test/CMakeVFDTests.cmake | |
parent | bb02cb4a835a309c9bcea09de3151bf6e668f301 (diff) | |
download | hdf5-aedb04c9ec7b4bff617d075b52e5db667d66db8e.zip hdf5-aedb04c9ec7b4bff617d075b52e5db667d66db8e.tar.gz hdf5-aedb04c9ec7b4bff617d075b52e5db667d66db8e.tar.bz2 |
Correct VFD test logic
Diffstat (limited to 'test/CMakeVFDTests.cmake')
-rw-r--r-- | test/CMakeVFDTests.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CMakeVFDTests.cmake b/test/CMakeVFDTests.cmake index be02110..8161e33 100644 --- a/test/CMakeVFDTests.cmake +++ b/test/CMakeVFDTests.cmake @@ -80,7 +80,7 @@ foreach (vfdtest ${VFD_LIST}) endforeach () add_custom_target(HDF5_VFDTEST_LIB_files ALL COMMENT "Copying files needed by HDF5_VFDTEST_LIB tests" DEPENDS ${HDF5_VFDTEST_LIB_files_list}) -if (BUILD_SHARED_LIBS) +if (BUILD_SHARED_LIBS AND TEST_SHARED_PROGRAMS) add_custom_target(HDF5_VFDTEST_LIBSH_files ALL COMMENT "Copying files needed by HDF5_VFDTEST_LIBSH tests" DEPENDS ${HDF5_VFDTEST_LIBSH_files_list}) endif () @@ -232,7 +232,7 @@ endif () ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}" WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname} ) - if (BUILD_SHARED_LIBS) + if (BUILD_SHARED_LIBS AND TEST_SHARED_PROGRAMS) add_test (NAME VFD-${vfdname}-${vfdtest}-shared COMMAND "${CMAKE_COMMAND}" -D "TEST_PROGRAM=$<TARGET_FILE:${vfdtest}-shared>" @@ -267,7 +267,7 @@ endif () if (NOT CYGWIN) set_tests_properties (VFD-${vfdname}-cache PROPERTIES TIMEOUT 1800) endif () - if (BUILD_SHARED_LIBS) + if (BUILD_SHARED_LIBS AND TEST_SHARED_PROGRAMS) set_tests_properties (VFD-${vfdname}-flush2-shared PROPERTIES DEPENDS VFD-${vfdname}-flush1-shared) set_tests_properties (VFD-${vfdname}-flush1-shared PROPERTIES TIMEOUT 10) set_tests_properties (VFD-${vfdname}-flush2-shared PROPERTIES TIMEOUT 10) @@ -292,7 +292,7 @@ endif () ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname};HDF5TestExpress=${HDF_TEST_EXPRESS}" WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname} ) - if (BUILD_SHARED_LIBS) + if (BUILD_SHARED_LIBS AND TEST_SHARED_PROGRAMS) add_test (NAME VFD-${vfdname}-fheap-shared COMMAND "${CMAKE_COMMAND}" -D "TEST_PROGRAM=$<TARGET_FILE:fheap-shared>" |