2020-02-22 06:16:06 +08:00
|
|
|
cmake_minimum_required (VERSION 3.12)
|
2018-04-20 23:11:55 +08:00
|
|
|
project (HDF5_TEST C)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
2013-03-16 02:28:37 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2013-03-28 00:11:21 +08:00
|
|
|
# Generate the H5srcdir_str.h file containing user settings needed by compilation
|
2013-03-16 02:28:37 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2018-04-18 04:57:51 +08:00
|
|
|
set (srcdir ${HDF5_TEST_SOURCE_DIR})
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (${HDF5_TEST_SOURCE_DIR}/H5srcdir_str.h.in H5srcdir_str.h @ONLY)
|
2013-03-16 02:28:37 +08:00
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
#################################################################################
|
2013-03-28 00:11:21 +08:00
|
|
|
# Define Test Library Sources
|
2018-02-28 02:57:07 +08:00
|
|
|
#################################################################################
|
2016-05-05 00:29:52 +08:00
|
|
|
set (TEST_LIB_SOURCES
|
2010-05-14 00:01:50 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/h5test.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/testframe.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/cache_common.c
|
2019-04-11 05:48:42 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/external_common.c
|
2017-01-27 03:34:12 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/swmr_common.c
|
2010-05-14 00:01:50 +08:00
|
|
|
)
|
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
set (TEST_LIB_HEADERS
|
2010-05-14 00:01:50 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/h5test.h
|
2020-09-05 05:36:52 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/H5srcdir.h
|
2016-05-05 00:29:52 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/cache_common.h
|
2019-04-11 05:48:42 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/external_common.h
|
2019-07-03 12:43:45 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/external_fname.h
|
2017-01-27 03:34:12 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/swmr_common.h
|
2010-05-14 00:01:50 +08:00
|
|
|
)
|
|
|
|
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT ONLY_SHARED_LIBS)
|
|
|
|
add_library (${HDF5_TEST_LIB_TARGET} STATIC ${TEST_LIB_SOURCES} ${TEST_LIB_HEADERS})
|
|
|
|
target_include_directories (${HDF5_TEST_LIB_TARGET}
|
2020-09-26 05:43:57 +08:00
|
|
|
PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};${HDF5_TEST_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>"
|
2019-06-18 20:46:25 +08:00
|
|
|
INTERFACE "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
|
|
|
)
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(${HDF5_TEST_LIB_TARGET} PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2019-06-18 20:46:25 +08:00
|
|
|
TARGET_C_PROPERTIES (${HDF5_TEST_LIB_TARGET} STATIC)
|
|
|
|
target_link_libraries (${HDF5_TEST_LIB_TARGET}
|
|
|
|
PUBLIC ${LINK_LIBS} ${HDF5_LIB_TARGET}
|
2019-07-13 02:04:44 +08:00
|
|
|
PRIVATE $<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:MinGW>>:ws2_32.lib>
|
2019-06-18 20:46:25 +08:00
|
|
|
)
|
|
|
|
if (MINGW)
|
|
|
|
target_link_libraries (${HDF5_TEST_LIB_TARGET} PRIVATE "wsock32.lib")
|
|
|
|
endif ()
|
|
|
|
H5_SET_LIB_OPTIONS (${HDF5_TEST_LIB_TARGET} ${HDF5_TEST_LIB_NAME} STATIC 0)
|
|
|
|
set_target_properties (${HDF5_TEST_LIB_TARGET} PROPERTIES FOLDER libraries/test)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2010-05-14 00:01:50 +08:00
|
|
|
|
2015-08-05 23:56:58 +08:00
|
|
|
if (BUILD_SHARED_LIBS)
|
2016-05-05 00:29:52 +08:00
|
|
|
add_library (${HDF5_TEST_LIBSH_TARGET} SHARED ${TEST_LIB_SOURCES} ${TEST_LIB_HEADERS})
|
2019-06-18 20:46:25 +08:00
|
|
|
target_include_directories (${HDF5_TEST_LIBSH_TARGET}
|
2020-09-26 05:43:57 +08:00
|
|
|
PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};${HDF5_TEST_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>"
|
2018-04-27 05:41:04 +08:00
|
|
|
INTERFACE "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
|
|
|
)
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(${HDF5_TEST_LIBSH_TARGET} PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
|
|
|
target_compile_definitions(${HDF5_TEST_LIBSH_TARGET} PUBLIC "H5_BUILT_AS_DYNAMIC_LIB")
|
2018-04-27 05:41:04 +08:00
|
|
|
TARGET_C_PROPERTIES (${HDF5_TEST_LIBSH_TARGET} SHARED)
|
|
|
|
target_link_libraries (${HDF5_TEST_LIBSH_TARGET}
|
|
|
|
PUBLIC ${LINK_LIBS} ${HDF5_LIBSH_TARGET}
|
2019-07-13 02:04:44 +08:00
|
|
|
PRIVATE $<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:MinGW>>:ws2_32.lib>
|
2018-04-27 05:41:04 +08:00
|
|
|
)
|
2015-08-05 23:56:58 +08:00
|
|
|
if (MINGW)
|
2017-12-21 07:00:24 +08:00
|
|
|
target_link_libraries (${HDF5_TEST_LIBSH_TARGET} PRIVATE "wsock32.lib")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2018-04-10 21:55:17 +08:00
|
|
|
H5_SET_LIB_OPTIONS (${HDF5_TEST_LIBSH_TARGET} ${HDF5_TEST_LIB_NAME} SHARED "LIB")
|
2018-04-27 05:41:04 +08:00
|
|
|
set_target_properties (${HDF5_TEST_LIBSH_TARGET} PROPERTIES FOLDER libraries/test)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-08-05 23:56:58 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
if (NOT ONLY_SHARED_LIBS)
|
|
|
|
clang_format (HDF5_TEST_SRC_FORMAT ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
clang_format (HDF5_TEST_SRC_FORMAT ${HDF5_TEST_LIBSH_TARGET})
|
|
|
|
endif ()
|
|
|
|
endif ()
|
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
#################################################################################
|
2019-04-25 23:43:54 +08:00
|
|
|
# If filter and vol plugin tests can be tested
|
2018-02-28 02:57:07 +08:00
|
|
|
#################################################################################
|
2018-11-07 05:45:58 +08:00
|
|
|
if (BUILD_SHARED_LIBS)
|
2013-04-03 00:27:46 +08:00
|
|
|
# make plugins dir
|
2017-11-09 09:52:44 +08:00
|
|
|
file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/filter_plugin_dir1")
|
|
|
|
file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/filter_plugin_dir2")
|
2013-03-28 00:11:21 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
2017-11-09 09:52:44 +08:00
|
|
|
# Define Filter Plugin Test Sources
|
2013-03-28 00:11:21 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2017-11-09 09:52:44 +08:00
|
|
|
set (FILTER_PLUGINS_FOR_DIR1
|
|
|
|
filter_plugin1_dsets
|
|
|
|
filter_plugin3_dsets
|
2013-03-28 00:11:21 +08:00
|
|
|
)
|
2017-11-09 09:52:44 +08:00
|
|
|
set (FILTER_PLUGINS_FOR_DIR2
|
|
|
|
filter_plugin2_dsets
|
|
|
|
filter_plugin4_groups
|
2013-04-03 03:12:06 +08:00
|
|
|
)
|
2013-03-28 00:11:21 +08:00
|
|
|
|
2017-11-09 09:52:44 +08:00
|
|
|
foreach (plugin_name ${FILTER_PLUGINS_FOR_DIR1})
|
|
|
|
set (HDF5_TEST_PLUGIN_CORENAME "${plugin_name}")
|
|
|
|
set (HDF5_TEST_PLUGIN_NAME "${HDF5_EXTERNAL_LIB_PREFIX}${HDF5_TEST_PLUGIN_CORENAME}")
|
|
|
|
set (HDF5_TEST_PLUGIN_TARGET ${HDF5_TEST_PLUGIN_CORENAME})
|
2013-03-28 00:11:21 +08:00
|
|
|
|
2017-11-09 09:52:44 +08:00
|
|
|
add_library (${HDF5_TEST_PLUGIN_TARGET} SHARED ${HDF5_TEST_SOURCE_DIR}/${plugin_name}.c)
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (${HDF5_TEST_PLUGIN_TARGET} PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2018-04-27 05:41:04 +08:00
|
|
|
TARGET_C_PROPERTIES (${HDF5_TEST_PLUGIN_TARGET} SHARED)
|
2019-06-18 20:46:25 +08:00
|
|
|
target_link_libraries (${HDF5_TEST_PLUGIN_TARGET} PUBLIC ${HDF5_TEST_LIBSH_TARGET})
|
2018-04-10 21:55:17 +08:00
|
|
|
H5_SET_LIB_OPTIONS (${HDF5_TEST_PLUGIN_TARGET} ${HDF5_TEST_PLUGIN_NAME} SHARED "LIB")
|
2017-11-09 09:52:44 +08:00
|
|
|
set_target_properties (${HDF5_TEST_PLUGIN_TARGET} PROPERTIES FOLDER libraries/TEST_PLUGIN)
|
2013-03-28 00:11:21 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_${HDF5_TEST_PLUGIN_TARGET}_FORMAT ${HDF5_TEST_PLUGIN_TARGET})
|
|
|
|
endif ()
|
|
|
|
|
2013-04-03 00:27:46 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2017-11-09 09:52:44 +08:00
|
|
|
# Copy the filter plugin to a plugins folder
|
2013-04-03 00:27:46 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
add_custom_command (
|
2017-11-09 09:52:44 +08:00
|
|
|
TARGET ${HDF5_TEST_PLUGIN_TARGET}
|
2013-04-03 00:27:46 +08:00
|
|
|
POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
2015-06-10 02:48:03 +08:00
|
|
|
ARGS -E copy_if_different
|
2017-11-09 09:52:44 +08:00
|
|
|
"$<TARGET_FILE:${HDF5_TEST_PLUGIN_TARGET}>"
|
|
|
|
"${CMAKE_BINARY_DIR}/filter_plugin_dir1/$<TARGET_FILE_NAME:${HDF5_TEST_PLUGIN_TARGET}>"
|
2013-04-03 00:27:46 +08:00
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endforeach ()
|
2013-04-03 03:12:06 +08:00
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
foreach (plugin_name ${FILTER_PLUGINS_FOR_DIR2})
|
2017-11-09 09:52:44 +08:00
|
|
|
set (HDF5_TEST_PLUGIN_CORENAME "${plugin_name}")
|
|
|
|
set (HDF5_TEST_PLUGIN_NAME "${HDF5_EXTERNAL_LIB_PREFIX}${HDF5_TEST_PLUGIN_CORENAME}")
|
|
|
|
set (HDF5_TEST_PLUGIN_TARGET ${HDF5_TEST_PLUGIN_CORENAME})
|
2013-04-03 03:12:06 +08:00
|
|
|
|
2017-11-09 09:52:44 +08:00
|
|
|
add_library (${HDF5_TEST_PLUGIN_TARGET} SHARED ${HDF5_TEST_SOURCE_DIR}/${plugin_name}.c)
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (${HDF5_TEST_PLUGIN_TARGET} PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2018-04-27 05:41:04 +08:00
|
|
|
TARGET_C_PROPERTIES (${HDF5_TEST_PLUGIN_TARGET} SHARED)
|
2019-06-18 20:46:25 +08:00
|
|
|
target_link_libraries (${HDF5_TEST_PLUGIN_TARGET} PUBLIC ${HDF5_TEST_LIBSH_TARGET})
|
2018-04-10 21:55:17 +08:00
|
|
|
H5_SET_LIB_OPTIONS (${HDF5_TEST_PLUGIN_TARGET} ${HDF5_TEST_PLUGIN_NAME} SHARED "LIB")
|
2017-11-09 09:52:44 +08:00
|
|
|
set_target_properties (${HDF5_TEST_PLUGIN_TARGET} PROPERTIES FOLDER libraries/TEST_PLUGIN)
|
2013-04-03 03:12:06 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_${HDF5_TEST_PLUGIN_TARGET}_FORMAT ${HDF5_TEST_PLUGIN_TARGET})
|
|
|
|
endif ()
|
|
|
|
|
2013-04-03 03:12:06 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2017-11-09 09:52:44 +08:00
|
|
|
# Copy the filter plugin to a plugins folder
|
2013-04-03 03:12:06 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
add_custom_command (
|
2017-11-09 09:52:44 +08:00
|
|
|
TARGET ${HDF5_TEST_PLUGIN_TARGET}
|
2013-04-03 03:12:06 +08:00
|
|
|
POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
2015-06-10 02:48:03 +08:00
|
|
|
ARGS -E copy_if_different
|
2017-11-09 09:52:44 +08:00
|
|
|
"$<TARGET_FILE:${HDF5_TEST_PLUGIN_TARGET}>"
|
|
|
|
"${CMAKE_BINARY_DIR}/filter_plugin_dir2/$<TARGET_FILE_NAME:${HDF5_TEST_PLUGIN_TARGET}>"
|
2013-04-03 03:12:06 +08:00
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endforeach ()
|
2013-03-28 00:11:21 +08:00
|
|
|
|
2019-04-25 23:43:54 +08:00
|
|
|
#################################################################################
|
|
|
|
# make vol plugins dir
|
|
|
|
#################################################################################
|
|
|
|
file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/null_vol_plugin_dir")
|
|
|
|
|
2018-10-10 23:10:15 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Define VOL Plugin Test Sources
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
set (VOL_PLUGIN_LIBS
|
2018-12-28 11:56:21 +08:00
|
|
|
null_vol_connector
|
2018-10-10 23:10:15 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
foreach (vol_lib ${VOL_PLUGIN_LIBS})
|
|
|
|
set (HDF5_VOL_PLUGIN_LIB_CORENAME "${vol_lib}")
|
|
|
|
set (HDF5_VOL_PLUGIN_LIB_NAME "${HDF5_EXTERNAL_LIB_PREFIX}${HDF5_VOL_PLUGIN_LIB_CORENAME}")
|
|
|
|
set (HDF5_VOL_PLUGIN_LIB_TARGET ${HDF5_VOL_PLUGIN_LIB_CORENAME})
|
|
|
|
|
|
|
|
add_library (${HDF5_VOL_PLUGIN_LIB_TARGET} SHARED ${HDF5_TEST_SOURCE_DIR}/${vol_lib}.c)
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (${HDF5_VOL_PLUGIN_LIB_TARGET} PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2018-10-10 23:10:15 +08:00
|
|
|
TARGET_C_PROPERTIES (${HDF5_VOL_PLUGIN_LIB_TARGET} SHARED)
|
2019-06-18 20:46:25 +08:00
|
|
|
target_link_libraries (${HDF5_VOL_PLUGIN_LIB_TARGET} PUBLIC ${HDF5_TEST_LIBSH_TARGET})
|
2018-10-10 23:10:15 +08:00
|
|
|
H5_SET_LIB_OPTIONS (${HDF5_VOL_PLUGIN_LIB_TARGET} ${HDF5_VOL_PLUGIN_LIB_NAME} SHARED "LIB")
|
|
|
|
set_target_properties (${HDF5_VOL_PLUGIN_LIB_TARGET} PROPERTIES FOLDER libraries/TEST_PLUGIN)
|
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_${HDF5_VOL_PLUGIN_LIB_TARGET}_FORMAT ${HDF5_VOL_PLUGIN_LIB_TARGET})
|
|
|
|
endif ()
|
|
|
|
|
2018-10-10 23:10:15 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Copy VOL plugin to a plugins folder
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
add_custom_command (
|
|
|
|
TARGET ${HDF5_VOL_PLUGIN_LIB_TARGET}
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
ARGS -E copy_if_different
|
|
|
|
"$<TARGET_FILE:${HDF5_VOL_PLUGIN_LIB_TARGET}>"
|
2019-04-25 23:43:54 +08:00
|
|
|
"${CMAKE_BINARY_DIR}/null_vol_plugin_dir/$<TARGET_FILE_NAME:${HDF5_VOL_PLUGIN_LIB_TARGET}>"
|
2018-10-10 23:10:15 +08:00
|
|
|
)
|
|
|
|
endforeach ()
|
2018-11-07 05:45:58 +08:00
|
|
|
endif ()
|
2018-10-10 23:10:15 +08:00
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
#################################################################################
|
|
|
|
# Test program sources
|
|
|
|
#################################################################################
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
set (testhdf5_SOURCES
|
2020-09-05 05:36:52 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/testhdf5.h
|
2013-08-23 02:16:27 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/testhdf5.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tarray.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tattr.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tchecksum.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tconfig.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tcoords.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tfile.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tgenprop.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/th5o.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/th5s.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/theap.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tid.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/titerate.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tmeta.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tmisc.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/trefer.c
|
2019-07-17 00:15:43 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/trefer_deprec.c
|
2013-08-23 02:16:27 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/trefstr.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tselect.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tskiplist.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tsohm.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/ttime.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tunicode.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tvltypes.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/tvlstr.c
|
|
|
|
)
|
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
set (cache_image_SOURCES
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/cache_image.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/genall5.c
|
|
|
|
)
|
2013-08-23 02:16:27 +08:00
|
|
|
|
2020-03-14 06:13:17 +08:00
|
|
|
set(mirror_vfd_SOURCES
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/mirror_vfd.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/genall5.c
|
|
|
|
)
|
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
set (ttsafe_SOURCES
|
2020-09-05 05:36:52 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/ttsafe.h
|
2018-02-28 02:57:07 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/ttsafe.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/ttsafe_dcreate.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/ttsafe_error.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/ttsafe_cancel.c
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/ttsafe_acreate.c
|
2020-07-17 05:40:11 +08:00
|
|
|
${HDF5_TEST_SOURCE_DIR}/ttsafe_attr_vlen.c
|
2018-02-28 02:57:07 +08:00
|
|
|
)
|
2013-08-23 02:41:25 +08:00
|
|
|
|
Bring async branch to develop (#166)
* Add H5Fwait, H5Dwait, and other changes for async vol connector
* Revert temporary testing changes
* Add H5Fwait to header file
* Add H5VLreset_lib_state() routine.
* Correct VOL wrap context when retrieving library state for file open & create.
* Manage the API context's VOL connector state as part of the library state.
* Set the 'VOL connector property valid' flag when restoring the library state.
* Don't push new API context on stack when retrieving "current" one.
* Check for NULL VOL wrap context before decrementing refcount on it, when
freeing the API context state.
* Manage recount of underlying connector for VOL wrap context.
* Add H5TSmutex_acquire() and H5TSmutex_release() routines to acquire and
release the global lock on the HDF5 library.
* Update library with new functions related to library global lock
* Add asynchronous token API
* Add new lightweight FUNC_ENTER / LEAVE macros for helping to structure the
threadsafety (H5TS*) routines.
* Sync w/develop
* Initial event set code framework.
* Elaborate on the H5ES routines, starting to add API routines.
Update the "close ID" callbacks to allow asynchronous request tokens to be
passed in from an asynchronous close API call.
Refactor current asynchronous API routines (H5Fopen/H5Fclose and
H5Dread/H5Dread) to use event sets instead of directly working with request
tokens from the application.
Clean up a few other minor warnings & code style issues.
* Implement H5EScreate, H5ESget_count, and H5ESclose.
It should be possible to write a simple application that creates an event
set and uses it with H5Fopen_async, H5Dread_async, H5Dwrite_async, and
H5Fclose_async, then calls H5ESclose (which waits for all async events to
complete).
* Add source file for event set test.
* Refactor sync & async API routines to call common routine.
Move dataset API read / write routines to src/H5D.c, along with all the other
API routines.
Progress on "fake" async VOL connector, for testing.
* Modify async implementation to wrap async requests in a H5VL_object_t
struct so the VOL layer can find the connector when accessing the
request at a later point.
* Free the requests is H5ESclose. Remove comments implying that request
wait, notify, and cancel callbacks should free the request.
* Fix bug in error handling in H5Fclose.
* Fix bugs in async file routines. Rename H5VL_create_object_generic to
H5VL_create_object.
* Add explicit async version of H5Fcreate.
* Add more _async routines
* Correct typo for return value from H5Awrite changes
* Add H5EStest and H5ESwait routines
* Updated with API tracing info
* Fix NULL pointer dereference in H5ES__wait
* Add H5is_library_terminating() routine, so that VOL connectors can detect
when the library is shutting down.
* Fix typo
* Remove event from event set's linked list
* Move block of code so that vol_obj is valid
* Avoid setting properties in the DXPL when reseting the library state (and in
the test code).
* Refactor argument tracing to implement new capability for tracing arguments
of non-API routines, with the H5ARG_TRACE macro. This macro is updated
automatically with the bin/trace script that runs as part of the autogen.sh
process. Major changes were in src/H5trace.c and bin/trace, with the other
changes being cleanups to the argument lists, to improve their presentation
in the tracing output.
Also - added the "managed string" routines, which can dynamically allocate
strings, appending printf-formatted output to the string efficiently.
* Release memory for managed strings
* Fix printf() formats.
* More printf() format fixes.
* Add H5Eappend_stack routine and regression tests
* Clean up a few missed merge conflicts and update the error stacks.
* Remove unnecessary fork() operations and ten second sleep().
* Restore commented out attribute out, to better enable tracking down the previous failure
* Allow multiple H5ARG_TRACE macros within a routine to be updated
* Switch to using "new" H5ES_insert (which takes the arguments for the caller routine) for all event set operations. Renames H5ES_insert_new to H5ES_insert and removes the previous H5ES_insert.
* Merge "managed" string routines into "ref-counted" strings, and refactor code to use them.
* Add missing file.
* Add caller's name and arguments to event, for error reporting
* Refactor event set setup for "API common" internal routines
* Checkin async API routines for H5A* and H5G* modules as listed in ID-283.
Fix couple h5dump expected output files due to the changes.
* Add some of the error query routines needed for event sets.
* Refactor to make async setup / teardown and "common" routines cleaner
* (1) Add async APIs to H5L, H5F, and H5D modules
(2) Fix errors in previous checkins of async APIs in H5A and H5G modules
(3) h5dump expected output changes
* Enhance event info, for better error handling
* Change name of temporary vol_obj variable, to help reduce coding errors
* Fix oversight with vol_obj pointer
* Minor code cleanup
* Add missing \'valid\' flag for VOL wrapper context, when restoring the library\'s state
* Run source formatter
* Change H5TSmutex lock and release to include a lock count
* Update error reporting ideas
* Minor updates to improve sanity checking for retrieving / restoring library state
* Updated with feedback from h5py team members
* Refactor internal event set list and event handling, add implementation for H5ESget_err_info
* Change the VOL request subclass callbacks that switch from using "H5ES_status_t" to "H5VL_request_status_t", and also add a H5VL_request_status_t* parameter to the 'cancel' callback in the request subclass. Also more code quality cleanups to add iterator callbacks to internal event set routines.
* Update API tracing for new H5VL_request_status_t typedef
* Finish converting internal event set operations to use list iterator callbacks, instead of directly accessing the list structure
* Add H5VL_REQUEST_GET_ERR_STACK operation to request subclass, for retrieving a copy of the error stack for a failed asynchronous operation
* Remove 'canceled' event status from Java constants
* Be safer about releasing resources when inserting a newly opened/created object or file into an event set
* Remove H5EStest, add H5ES_WAIT_NONE for 0 timeout, and revise parameters to H5ESwait, to make it more "aggregate".
* Remove H5ES_STATUS_CANCELED from Java wrappers also
* (a) Add async APIs for H5O module as listed in jira issue ID-283.
(b) Remove verification of name parameter in async related routines for H55A and H5L modules
because it is checked in H5VL_setup* routine.
(c) Modify h5dump expected output due to the async changes.
* Corrections based on PR feedback.
* Further changes to make based on PR feedback.
* Fix missed merge marker, and reformatted line
* Clean up some warnings
* Correct level of indirection
* Relocate prototype (and doxygen info) for H5Aclose
* Change non-static function declarations to be static
* Ensure that H5TSpublic.h header gets installed (#129)
* Add 'wrapper' versions of async calls, to allow language wrappers and layers on top of HDF5 to pass in their application information.
* Switch H5Aexists\*_async and H5Lexists\*_async to use flag to return status, instead of return value. Make the corresponding changes through most of the v1 and v2 B-tree code. Clean up warnings in H5public.h and cmpd_dtransform.c.
* Add H5Iregister_future routine and tests.
* Correct return value for H5Lexists_async
* Add H5_DLL macro to public H5ES API routines
* Update supported -> flags parameter for introspect_query callback
* Remove my email address. Update passthrough VOL connector ID.
* Fix comment for post_open_api_common
* Remove unused non-blocking VOL connector
* Minor cleanup in async branch in preparation for merge to develop
* Update CMake and the Autotools to use the new pass-through VOL ID
* Fix for SWMR daily test failures (#160)
The H5I_register_using_existing_id() call did not initialize the future
ID callbacks, causing the library to segfault when it tried to
resolve those function pointers.
* Added selective async APIs (#150)
* Added selective async APIs
Description:
Added the following APIs:
H5Ropen_attr_async
H5Ropen_object_async
H5Ropen_region_async
H5Mcreate_async
H5Mopen_async
H5Mput_async
H5Mget_async
H5Mclose_async
H5Tcommit_async
H5Topen_async
H5Tcopy_async
H5Tclose_async
- Updated an expected output file to include a new internal function
in the error stack for the failure case.
* Updated async APIs per reviews, including removing async version of
H5Tcopy.
* Removed statements that were added by mistake in the previous commit.
* Fix compile issues in H5M and warnings elsewhere
* Reformat code
* Brings VOL_LIST changes from develop. (#163)
Co-authored-by: Houjun Tang <htang4@lbl.gov>
Co-authored-by: Neil Fortner <nfortne2@hdfgroup.org>
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>
Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <derobins@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
2020-12-14 08:02:17 +08:00
|
|
|
set (event_set_SOURCES
|
|
|
|
${HDF5_TEST_SOURCE_DIR}/event_set.c
|
|
|
|
)
|
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
set (H5_TESTS
|
2018-02-28 02:57:07 +08:00
|
|
|
testhdf5 # multiple source
|
2016-05-05 00:29:52 +08:00
|
|
|
cache
|
|
|
|
cache_api
|
2018-02-28 02:57:07 +08:00
|
|
|
cache_image # multiple source
|
2016-05-05 00:29:52 +08:00
|
|
|
cache_tagging
|
2013-08-23 02:41:25 +08:00
|
|
|
lheap
|
|
|
|
ohdr
|
|
|
|
stab
|
|
|
|
gheap
|
2016-09-15 04:50:29 +08:00
|
|
|
evict_on_close
|
2016-05-05 00:29:52 +08:00
|
|
|
farray
|
|
|
|
earray
|
|
|
|
btree2
|
|
|
|
fheap
|
2013-08-23 02:41:25 +08:00
|
|
|
pool
|
2016-05-05 00:29:52 +08:00
|
|
|
accum
|
2018-02-28 02:57:07 +08:00
|
|
|
hyperslab
|
2013-08-23 02:41:25 +08:00
|
|
|
istore
|
|
|
|
bittests
|
|
|
|
dt_arith
|
2018-02-28 02:57:07 +08:00
|
|
|
page_buffer
|
2013-08-23 02:41:25 +08:00
|
|
|
dtypes
|
2014-01-29 06:20:41 +08:00
|
|
|
dsets
|
2019-09-04 01:07:29 +08:00
|
|
|
chunk_info # compression lib link
|
2013-08-23 02:41:25 +08:00
|
|
|
cmpd_dset
|
|
|
|
filter_fail
|
|
|
|
extend
|
2018-06-01 23:09:44 +08:00
|
|
|
direct_chunk # compression lib link
|
2013-08-23 02:41:25 +08:00
|
|
|
external
|
2019-04-11 05:02:28 +08:00
|
|
|
external_env
|
2013-08-23 02:41:25 +08:00
|
|
|
efc
|
2019-07-17 00:15:43 +08:00
|
|
|
objcopy_ref
|
2013-08-23 02:41:25 +08:00
|
|
|
objcopy
|
|
|
|
links
|
|
|
|
unlink
|
2017-01-27 03:34:12 +08:00
|
|
|
twriteorder
|
2013-08-23 02:41:25 +08:00
|
|
|
big
|
|
|
|
mtime
|
|
|
|
fillval
|
|
|
|
mount
|
|
|
|
flush1
|
|
|
|
flush2
|
|
|
|
app_ref
|
|
|
|
enum
|
|
|
|
set_extent
|
2018-02-28 02:57:07 +08:00
|
|
|
ttsafe # multiple source
|
2016-05-05 00:29:52 +08:00
|
|
|
enc_dec_plist
|
|
|
|
enc_dec_plist_cross_platform
|
2013-08-23 02:41:25 +08:00
|
|
|
getname
|
|
|
|
vfd
|
2019-07-26 00:36:37 +08:00
|
|
|
ros3
|
|
|
|
s3comms
|
|
|
|
hdfs
|
2020-03-14 06:13:17 +08:00
|
|
|
mirror_vfd
|
2013-08-23 02:41:25 +08:00
|
|
|
ntypes
|
|
|
|
dangle
|
|
|
|
dtransform
|
2018-09-25 03:38:46 +08:00
|
|
|
# reserved disabled
|
2013-08-23 02:41:25 +08:00
|
|
|
cross_read
|
|
|
|
freespace
|
|
|
|
mf
|
2015-02-24 00:20:53 +08:00
|
|
|
vds
|
2019-04-19 00:35:11 +08:00
|
|
|
vds_env
|
2013-08-23 02:41:25 +08:00
|
|
|
file_image
|
|
|
|
unregister
|
2016-11-04 14:27:10 +08:00
|
|
|
cache_logging
|
2016-06-14 01:49:39 +08:00
|
|
|
cork
|
2016-12-03 00:07:04 +08:00
|
|
|
swmr
|
2020-03-19 04:31:27 +08:00
|
|
|
thread_id # special link
|
2018-10-10 23:10:15 +08:00
|
|
|
vol
|
2020-06-28 11:14:52 +08:00
|
|
|
timer
|
2020-12-03 01:52:09 +08:00
|
|
|
cmpd_dtransform
|
Bring async branch to develop (#166)
* Add H5Fwait, H5Dwait, and other changes for async vol connector
* Revert temporary testing changes
* Add H5Fwait to header file
* Add H5VLreset_lib_state() routine.
* Correct VOL wrap context when retrieving library state for file open & create.
* Manage the API context's VOL connector state as part of the library state.
* Set the 'VOL connector property valid' flag when restoring the library state.
* Don't push new API context on stack when retrieving "current" one.
* Check for NULL VOL wrap context before decrementing refcount on it, when
freeing the API context state.
* Manage recount of underlying connector for VOL wrap context.
* Add H5TSmutex_acquire() and H5TSmutex_release() routines to acquire and
release the global lock on the HDF5 library.
* Update library with new functions related to library global lock
* Add asynchronous token API
* Add new lightweight FUNC_ENTER / LEAVE macros for helping to structure the
threadsafety (H5TS*) routines.
* Sync w/develop
* Initial event set code framework.
* Elaborate on the H5ES routines, starting to add API routines.
Update the "close ID" callbacks to allow asynchronous request tokens to be
passed in from an asynchronous close API call.
Refactor current asynchronous API routines (H5Fopen/H5Fclose and
H5Dread/H5Dread) to use event sets instead of directly working with request
tokens from the application.
Clean up a few other minor warnings & code style issues.
* Implement H5EScreate, H5ESget_count, and H5ESclose.
It should be possible to write a simple application that creates an event
set and uses it with H5Fopen_async, H5Dread_async, H5Dwrite_async, and
H5Fclose_async, then calls H5ESclose (which waits for all async events to
complete).
* Add source file for event set test.
* Refactor sync & async API routines to call common routine.
Move dataset API read / write routines to src/H5D.c, along with all the other
API routines.
Progress on "fake" async VOL connector, for testing.
* Modify async implementation to wrap async requests in a H5VL_object_t
struct so the VOL layer can find the connector when accessing the
request at a later point.
* Free the requests is H5ESclose. Remove comments implying that request
wait, notify, and cancel callbacks should free the request.
* Fix bug in error handling in H5Fclose.
* Fix bugs in async file routines. Rename H5VL_create_object_generic to
H5VL_create_object.
* Add explicit async version of H5Fcreate.
* Add more _async routines
* Correct typo for return value from H5Awrite changes
* Add H5EStest and H5ESwait routines
* Updated with API tracing info
* Fix NULL pointer dereference in H5ES__wait
* Add H5is_library_terminating() routine, so that VOL connectors can detect
when the library is shutting down.
* Fix typo
* Remove event from event set's linked list
* Move block of code so that vol_obj is valid
* Avoid setting properties in the DXPL when reseting the library state (and in
the test code).
* Refactor argument tracing to implement new capability for tracing arguments
of non-API routines, with the H5ARG_TRACE macro. This macro is updated
automatically with the bin/trace script that runs as part of the autogen.sh
process. Major changes were in src/H5trace.c and bin/trace, with the other
changes being cleanups to the argument lists, to improve their presentation
in the tracing output.
Also - added the "managed string" routines, which can dynamically allocate
strings, appending printf-formatted output to the string efficiently.
* Release memory for managed strings
* Fix printf() formats.
* More printf() format fixes.
* Add H5Eappend_stack routine and regression tests
* Clean up a few missed merge conflicts and update the error stacks.
* Remove unnecessary fork() operations and ten second sleep().
* Restore commented out attribute out, to better enable tracking down the previous failure
* Allow multiple H5ARG_TRACE macros within a routine to be updated
* Switch to using "new" H5ES_insert (which takes the arguments for the caller routine) for all event set operations. Renames H5ES_insert_new to H5ES_insert and removes the previous H5ES_insert.
* Merge "managed" string routines into "ref-counted" strings, and refactor code to use them.
* Add missing file.
* Add caller's name and arguments to event, for error reporting
* Refactor event set setup for "API common" internal routines
* Checkin async API routines for H5A* and H5G* modules as listed in ID-283.
Fix couple h5dump expected output files due to the changes.
* Add some of the error query routines needed for event sets.
* Refactor to make async setup / teardown and "common" routines cleaner
* (1) Add async APIs to H5L, H5F, and H5D modules
(2) Fix errors in previous checkins of async APIs in H5A and H5G modules
(3) h5dump expected output changes
* Enhance event info, for better error handling
* Change name of temporary vol_obj variable, to help reduce coding errors
* Fix oversight with vol_obj pointer
* Minor code cleanup
* Add missing \'valid\' flag for VOL wrapper context, when restoring the library\'s state
* Run source formatter
* Change H5TSmutex lock and release to include a lock count
* Update error reporting ideas
* Minor updates to improve sanity checking for retrieving / restoring library state
* Updated with feedback from h5py team members
* Refactor internal event set list and event handling, add implementation for H5ESget_err_info
* Change the VOL request subclass callbacks that switch from using "H5ES_status_t" to "H5VL_request_status_t", and also add a H5VL_request_status_t* parameter to the 'cancel' callback in the request subclass. Also more code quality cleanups to add iterator callbacks to internal event set routines.
* Update API tracing for new H5VL_request_status_t typedef
* Finish converting internal event set operations to use list iterator callbacks, instead of directly accessing the list structure
* Add H5VL_REQUEST_GET_ERR_STACK operation to request subclass, for retrieving a copy of the error stack for a failed asynchronous operation
* Remove 'canceled' event status from Java constants
* Be safer about releasing resources when inserting a newly opened/created object or file into an event set
* Remove H5EStest, add H5ES_WAIT_NONE for 0 timeout, and revise parameters to H5ESwait, to make it more "aggregate".
* Remove H5ES_STATUS_CANCELED from Java wrappers also
* (a) Add async APIs for H5O module as listed in jira issue ID-283.
(b) Remove verification of name parameter in async related routines for H55A and H5L modules
because it is checked in H5VL_setup* routine.
(c) Modify h5dump expected output due to the async changes.
* Corrections based on PR feedback.
* Further changes to make based on PR feedback.
* Fix missed merge marker, and reformatted line
* Clean up some warnings
* Correct level of indirection
* Relocate prototype (and doxygen info) for H5Aclose
* Change non-static function declarations to be static
* Ensure that H5TSpublic.h header gets installed (#129)
* Add 'wrapper' versions of async calls, to allow language wrappers and layers on top of HDF5 to pass in their application information.
* Switch H5Aexists\*_async and H5Lexists\*_async to use flag to return status, instead of return value. Make the corresponding changes through most of the v1 and v2 B-tree code. Clean up warnings in H5public.h and cmpd_dtransform.c.
* Add H5Iregister_future routine and tests.
* Correct return value for H5Lexists_async
* Add H5_DLL macro to public H5ES API routines
* Update supported -> flags parameter for introspect_query callback
* Remove my email address. Update passthrough VOL connector ID.
* Fix comment for post_open_api_common
* Remove unused non-blocking VOL connector
* Minor cleanup in async branch in preparation for merge to develop
* Update CMake and the Autotools to use the new pass-through VOL ID
* Fix for SWMR daily test failures (#160)
The H5I_register_using_existing_id() call did not initialize the future
ID callbacks, causing the library to segfault when it tried to
resolve those function pointers.
* Added selective async APIs (#150)
* Added selective async APIs
Description:
Added the following APIs:
H5Ropen_attr_async
H5Ropen_object_async
H5Ropen_region_async
H5Mcreate_async
H5Mopen_async
H5Mput_async
H5Mget_async
H5Mclose_async
H5Tcommit_async
H5Topen_async
H5Tcopy_async
H5Tclose_async
- Updated an expected output file to include a new internal function
in the error stack for the failure case.
* Updated async APIs per reviews, including removing async version of
H5Tcopy.
* Removed statements that were added by mistake in the previous commit.
* Fix compile issues in H5M and warnings elsewhere
* Reformat code
* Brings VOL_LIST changes from develop. (#163)
Co-authored-by: Houjun Tang <htang4@lbl.gov>
Co-authored-by: Neil Fortner <nfortne2@hdfgroup.org>
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>
Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <derobins@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
2020-12-14 08:02:17 +08:00
|
|
|
event_set # multiple source
|
2013-08-23 02:41:25 +08:00
|
|
|
)
|
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
macro (ADD_H5_EXE file)
|
|
|
|
add_executable (${file} ${HDF5_TEST_SOURCE_DIR}/${file}.c)
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (${file} PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};${HDF5_TEST_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(${file} PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (${file} STATIC)
|
|
|
|
target_link_libraries (${file} PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (${file} SHARED)
|
|
|
|
target_link_libraries (${file} PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
2018-02-28 02:57:07 +08:00
|
|
|
endif ()
|
2019-06-18 20:46:25 +08:00
|
|
|
set_target_properties (${file} PROPERTIES FOLDER test)
|
2020-09-05 05:36:52 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_${file}_FORMAT ${file})
|
|
|
|
endif ()
|
2018-02-28 02:57:07 +08:00
|
|
|
endmacro ()
|
2016-12-30 23:06:07 +08:00
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
set (H5_TESTS_MULTIPLE
|
2019-09-04 01:07:29 +08:00
|
|
|
chunk_info
|
2018-06-01 23:09:44 +08:00
|
|
|
direct_chunk
|
2018-02-28 02:57:07 +08:00
|
|
|
testhdf5
|
|
|
|
cache_image
|
|
|
|
ttsafe
|
2020-03-19 04:31:27 +08:00
|
|
|
thread_id # special link
|
2020-03-14 06:13:17 +08:00
|
|
|
mirror_vfd
|
Bring async branch to develop (#166)
* Add H5Fwait, H5Dwait, and other changes for async vol connector
* Revert temporary testing changes
* Add H5Fwait to header file
* Add H5VLreset_lib_state() routine.
* Correct VOL wrap context when retrieving library state for file open & create.
* Manage the API context's VOL connector state as part of the library state.
* Set the 'VOL connector property valid' flag when restoring the library state.
* Don't push new API context on stack when retrieving "current" one.
* Check for NULL VOL wrap context before decrementing refcount on it, when
freeing the API context state.
* Manage recount of underlying connector for VOL wrap context.
* Add H5TSmutex_acquire() and H5TSmutex_release() routines to acquire and
release the global lock on the HDF5 library.
* Update library with new functions related to library global lock
* Add asynchronous token API
* Add new lightweight FUNC_ENTER / LEAVE macros for helping to structure the
threadsafety (H5TS*) routines.
* Sync w/develop
* Initial event set code framework.
* Elaborate on the H5ES routines, starting to add API routines.
Update the "close ID" callbacks to allow asynchronous request tokens to be
passed in from an asynchronous close API call.
Refactor current asynchronous API routines (H5Fopen/H5Fclose and
H5Dread/H5Dread) to use event sets instead of directly working with request
tokens from the application.
Clean up a few other minor warnings & code style issues.
* Implement H5EScreate, H5ESget_count, and H5ESclose.
It should be possible to write a simple application that creates an event
set and uses it with H5Fopen_async, H5Dread_async, H5Dwrite_async, and
H5Fclose_async, then calls H5ESclose (which waits for all async events to
complete).
* Add source file for event set test.
* Refactor sync & async API routines to call common routine.
Move dataset API read / write routines to src/H5D.c, along with all the other
API routines.
Progress on "fake" async VOL connector, for testing.
* Modify async implementation to wrap async requests in a H5VL_object_t
struct so the VOL layer can find the connector when accessing the
request at a later point.
* Free the requests is H5ESclose. Remove comments implying that request
wait, notify, and cancel callbacks should free the request.
* Fix bug in error handling in H5Fclose.
* Fix bugs in async file routines. Rename H5VL_create_object_generic to
H5VL_create_object.
* Add explicit async version of H5Fcreate.
* Add more _async routines
* Correct typo for return value from H5Awrite changes
* Add H5EStest and H5ESwait routines
* Updated with API tracing info
* Fix NULL pointer dereference in H5ES__wait
* Add H5is_library_terminating() routine, so that VOL connectors can detect
when the library is shutting down.
* Fix typo
* Remove event from event set's linked list
* Move block of code so that vol_obj is valid
* Avoid setting properties in the DXPL when reseting the library state (and in
the test code).
* Refactor argument tracing to implement new capability for tracing arguments
of non-API routines, with the H5ARG_TRACE macro. This macro is updated
automatically with the bin/trace script that runs as part of the autogen.sh
process. Major changes were in src/H5trace.c and bin/trace, with the other
changes being cleanups to the argument lists, to improve their presentation
in the tracing output.
Also - added the "managed string" routines, which can dynamically allocate
strings, appending printf-formatted output to the string efficiently.
* Release memory for managed strings
* Fix printf() formats.
* More printf() format fixes.
* Add H5Eappend_stack routine and regression tests
* Clean up a few missed merge conflicts and update the error stacks.
* Remove unnecessary fork() operations and ten second sleep().
* Restore commented out attribute out, to better enable tracking down the previous failure
* Allow multiple H5ARG_TRACE macros within a routine to be updated
* Switch to using "new" H5ES_insert (which takes the arguments for the caller routine) for all event set operations. Renames H5ES_insert_new to H5ES_insert and removes the previous H5ES_insert.
* Merge "managed" string routines into "ref-counted" strings, and refactor code to use them.
* Add missing file.
* Add caller's name and arguments to event, for error reporting
* Refactor event set setup for "API common" internal routines
* Checkin async API routines for H5A* and H5G* modules as listed in ID-283.
Fix couple h5dump expected output files due to the changes.
* Add some of the error query routines needed for event sets.
* Refactor to make async setup / teardown and "common" routines cleaner
* (1) Add async APIs to H5L, H5F, and H5D modules
(2) Fix errors in previous checkins of async APIs in H5A and H5G modules
(3) h5dump expected output changes
* Enhance event info, for better error handling
* Change name of temporary vol_obj variable, to help reduce coding errors
* Fix oversight with vol_obj pointer
* Minor code cleanup
* Add missing \'valid\' flag for VOL wrapper context, when restoring the library\'s state
* Run source formatter
* Change H5TSmutex lock and release to include a lock count
* Update error reporting ideas
* Minor updates to improve sanity checking for retrieving / restoring library state
* Updated with feedback from h5py team members
* Refactor internal event set list and event handling, add implementation for H5ESget_err_info
* Change the VOL request subclass callbacks that switch from using "H5ES_status_t" to "H5VL_request_status_t", and also add a H5VL_request_status_t* parameter to the 'cancel' callback in the request subclass. Also more code quality cleanups to add iterator callbacks to internal event set routines.
* Update API tracing for new H5VL_request_status_t typedef
* Finish converting internal event set operations to use list iterator callbacks, instead of directly accessing the list structure
* Add H5VL_REQUEST_GET_ERR_STACK operation to request subclass, for retrieving a copy of the error stack for a failed asynchronous operation
* Remove 'canceled' event status from Java constants
* Be safer about releasing resources when inserting a newly opened/created object or file into an event set
* Remove H5EStest, add H5ES_WAIT_NONE for 0 timeout, and revise parameters to H5ESwait, to make it more "aggregate".
* Remove H5ES_STATUS_CANCELED from Java wrappers also
* (a) Add async APIs for H5O module as listed in jira issue ID-283.
(b) Remove verification of name parameter in async related routines for H55A and H5L modules
because it is checked in H5VL_setup* routine.
(c) Modify h5dump expected output due to the async changes.
* Corrections based on PR feedback.
* Further changes to make based on PR feedback.
* Fix missed merge marker, and reformatted line
* Clean up some warnings
* Correct level of indirection
* Relocate prototype (and doxygen info) for H5Aclose
* Change non-static function declarations to be static
* Ensure that H5TSpublic.h header gets installed (#129)
* Add 'wrapper' versions of async calls, to allow language wrappers and layers on top of HDF5 to pass in their application information.
* Switch H5Aexists\*_async and H5Lexists\*_async to use flag to return status, instead of return value. Make the corresponding changes through most of the v1 and v2 B-tree code. Clean up warnings in H5public.h and cmpd_dtransform.c.
* Add H5Iregister_future routine and tests.
* Correct return value for H5Lexists_async
* Add H5_DLL macro to public H5ES API routines
* Update supported -> flags parameter for introspect_query callback
* Remove my email address. Update passthrough VOL connector ID.
* Fix comment for post_open_api_common
* Remove unused non-blocking VOL connector
* Minor cleanup in async branch in preparation for merge to develop
* Update CMake and the Autotools to use the new pass-through VOL ID
* Fix for SWMR daily test failures (#160)
The H5I_register_using_existing_id() call did not initialize the future
ID callbacks, causing the library to segfault when it tried to
resolve those function pointers.
* Added selective async APIs (#150)
* Added selective async APIs
Description:
Added the following APIs:
H5Ropen_attr_async
H5Ropen_object_async
H5Ropen_region_async
H5Mcreate_async
H5Mopen_async
H5Mput_async
H5Mget_async
H5Mclose_async
H5Tcommit_async
H5Topen_async
H5Tcopy_async
H5Tclose_async
- Updated an expected output file to include a new internal function
in the error stack for the failure case.
* Updated async APIs per reviews, including removing async version of
H5Tcopy.
* Removed statements that were added by mistake in the previous commit.
* Fix compile issues in H5M and warnings elsewhere
* Reformat code
* Brings VOL_LIST changes from develop. (#163)
Co-authored-by: Houjun Tang <htang4@lbl.gov>
Co-authored-by: Neil Fortner <nfortne2@hdfgroup.org>
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>
Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <derobins@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
2020-12-14 08:02:17 +08:00
|
|
|
event_set
|
2017-01-27 03:34:12 +08:00
|
|
|
)
|
2018-02-28 02:57:07 +08:00
|
|
|
# Only build single source tests here
|
2019-02-16 05:48:24 +08:00
|
|
|
foreach (h5_test ${H5_TESTS})
|
|
|
|
if (NOT h5_test IN_LIST H5_TESTS_MULTIPLE)
|
|
|
|
ADD_H5_EXE(${h5_test})
|
2018-02-28 02:57:07 +08:00
|
|
|
endif ()
|
2017-03-02 04:47:53 +08:00
|
|
|
endforeach ()
|
2017-01-27 03:34:12 +08:00
|
|
|
|
2013-08-23 02:41:25 +08:00
|
|
|
##############################################################################
|
2018-02-28 02:57:07 +08:00
|
|
|
### M U L T I P L E S O U R C E T E S T S ###
|
2013-08-23 02:41:25 +08:00
|
|
|
##############################################################################
|
2018-06-01 23:09:44 +08:00
|
|
|
######### Also special handling of link libs #############
|
2019-09-04 01:07:29 +08:00
|
|
|
#-- Adding test for chunk_info
|
|
|
|
add_executable (chunk_info ${HDF5_TEST_SOURCE_DIR}/chunk_info.c)
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(chunk_info PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (chunk_info PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};${HDF5_TEST_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-09-04 01:07:29 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (chunk_info STATIC)
|
|
|
|
target_link_libraries (chunk_info PRIVATE ${HDF5_TEST_LIB_TARGET} ${LINK_COMP_LIBS})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (chunk_info SHARED)
|
|
|
|
target_link_libraries (chunk_info PRIVATE ${HDF5_TEST_LIBSH_TARGET} ${LINK_COMP_LIBS})
|
|
|
|
endif ()
|
|
|
|
set_target_properties (chunk_info PROPERTIES FOLDER test)
|
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_SRC_chunk_info_FORMAT chunk_info)
|
|
|
|
endif ()
|
|
|
|
|
2018-06-01 23:09:44 +08:00
|
|
|
#-- Adding test for direct_chunk
|
|
|
|
add_executable (direct_chunk ${HDF5_TEST_SOURCE_DIR}/direct_chunk.c)
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(direct_chunk PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (direct_chunk PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};${HDF5_TEST_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (direct_chunk STATIC)
|
|
|
|
target_link_libraries (direct_chunk PRIVATE ${HDF5_TEST_LIB_TARGET} ${LINK_COMP_LIBS})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (direct_chunk SHARED)
|
|
|
|
target_link_libraries (direct_chunk PRIVATE ${HDF5_TEST_LIBSH_TARGET} ${LINK_COMP_LIBS})
|
2018-06-01 23:09:44 +08:00
|
|
|
endif ()
|
2019-06-18 20:46:25 +08:00
|
|
|
set_target_properties (direct_chunk PROPERTIES FOLDER test)
|
2018-06-01 23:09:44 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_direct_chunk_FORMAT direct_chunk)
|
|
|
|
endif ()
|
2018-02-28 02:57:07 +08:00
|
|
|
|
2018-06-01 23:09:44 +08:00
|
|
|
######### Special handling for multiple sources #############
|
2018-02-28 02:57:07 +08:00
|
|
|
#-- Adding test for testhdf5
|
|
|
|
add_executable (testhdf5 ${testhdf5_SOURCES})
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(testhdf5 PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (testhdf5 PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (testhdf5 STATIC)
|
|
|
|
target_link_libraries (testhdf5 PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (testhdf5 SHARED)
|
|
|
|
target_link_libraries (testhdf5 PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
2018-02-28 02:57:07 +08:00
|
|
|
endif ()
|
2019-06-18 20:46:25 +08:00
|
|
|
set_target_properties (testhdf5 PROPERTIES FOLDER test)
|
2013-08-23 02:41:25 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_testhdf5_FORMAT testhdf5)
|
|
|
|
endif ()
|
|
|
|
|
2017-01-29 15:19:37 +08:00
|
|
|
#-- Adding test for cache_image
|
2018-02-28 02:57:07 +08:00
|
|
|
add_executable (cache_image ${cache_image_SOURCES})
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(cache_image PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (cache_image PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (cache_image STATIC)
|
|
|
|
target_link_libraries (cache_image PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (cache_image SHARED)
|
|
|
|
target_link_libraries (cache_image PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
2017-03-01 23:58:59 +08:00
|
|
|
endif ()
|
2019-06-18 20:46:25 +08:00
|
|
|
set_target_properties (cache_image PROPERTIES FOLDER test)
|
2017-01-29 15:19:37 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_cache_image_FORMAT cache_image)
|
|
|
|
endif ()
|
|
|
|
|
2013-08-23 02:41:25 +08:00
|
|
|
#-- Adding test for ttsafe
|
2018-02-28 02:57:07 +08:00
|
|
|
add_executable (ttsafe ${ttsafe_SOURCES})
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(ttsafe PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (ttsafe PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (ttsafe STATIC)
|
|
|
|
target_link_libraries (ttsafe PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
if (NOT WIN32)
|
|
|
|
target_link_libraries (ttsafe
|
|
|
|
PRIVATE $<$<BOOL:${HDF5_ENABLE_THREADSAFE}>:Threads::Threads>
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (ttsafe SHARED)
|
|
|
|
target_link_libraries (ttsafe PRIVATE ${HDF5_TEST_LIBSH_TARGET} $<$<BOOL:${HDF5_ENABLE_THREADSAFE}>:Threads::Threads>)
|
2019-03-14 02:50:20 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set_target_properties (ttsafe PROPERTIES FOLDER test)
|
2013-08-23 02:41:25 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_ttsafe_FORMAT ttsafe)
|
|
|
|
endif ()
|
|
|
|
|
2020-03-19 04:31:27 +08:00
|
|
|
######### Special handling for extra link lib of threads #############
|
|
|
|
#-- Adding test for thread_id
|
|
|
|
add_executable (thread_id ${HDF5_TEST_SOURCE_DIR}/thread_id.c)
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(thread_id PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (thread_id PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2020-03-19 04:31:27 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (thread_id STATIC)
|
|
|
|
target_link_libraries (thread_id PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
if (NOT WIN32)
|
|
|
|
target_link_libraries (thread_id
|
|
|
|
PRIVATE $<$<BOOL:${HDF5_ENABLE_THREADSAFE}>:Threads::Threads>
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (thread_id SHARED)
|
|
|
|
target_link_libraries (thread_id PRIVATE ${HDF5_TEST_LIBSH_TARGET} $<$<BOOL:${HDF5_ENABLE_THREADSAFE}>:Threads::Threads>)
|
|
|
|
endif ()
|
|
|
|
set_target_properties (thread_id PROPERTIES FOLDER test)
|
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_thread_id_FORMAT thread_id)
|
|
|
|
endif ()
|
|
|
|
|
2020-03-14 06:13:17 +08:00
|
|
|
#-- Adding test for mirror_vfd
|
|
|
|
add_executable (mirror_vfd ${mirror_vfd_SOURCES})
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (mirror_vfd PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2020-03-14 06:13:17 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (mirror_vfd STATIC)
|
|
|
|
target_link_libraries (mirror_vfd PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (mirror_vfd SHARED)
|
|
|
|
target_link_libraries (mirror_vfd PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
|
|
|
endif ()
|
|
|
|
set_target_properties (mirror_vfd PROPERTIES FOLDER test)
|
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_mirror_vfd_FORMAT mirror_vfd)
|
|
|
|
endif ()
|
|
|
|
|
Bring async branch to develop (#166)
* Add H5Fwait, H5Dwait, and other changes for async vol connector
* Revert temporary testing changes
* Add H5Fwait to header file
* Add H5VLreset_lib_state() routine.
* Correct VOL wrap context when retrieving library state for file open & create.
* Manage the API context's VOL connector state as part of the library state.
* Set the 'VOL connector property valid' flag when restoring the library state.
* Don't push new API context on stack when retrieving "current" one.
* Check for NULL VOL wrap context before decrementing refcount on it, when
freeing the API context state.
* Manage recount of underlying connector for VOL wrap context.
* Add H5TSmutex_acquire() and H5TSmutex_release() routines to acquire and
release the global lock on the HDF5 library.
* Update library with new functions related to library global lock
* Add asynchronous token API
* Add new lightweight FUNC_ENTER / LEAVE macros for helping to structure the
threadsafety (H5TS*) routines.
* Sync w/develop
* Initial event set code framework.
* Elaborate on the H5ES routines, starting to add API routines.
Update the "close ID" callbacks to allow asynchronous request tokens to be
passed in from an asynchronous close API call.
Refactor current asynchronous API routines (H5Fopen/H5Fclose and
H5Dread/H5Dread) to use event sets instead of directly working with request
tokens from the application.
Clean up a few other minor warnings & code style issues.
* Implement H5EScreate, H5ESget_count, and H5ESclose.
It should be possible to write a simple application that creates an event
set and uses it with H5Fopen_async, H5Dread_async, H5Dwrite_async, and
H5Fclose_async, then calls H5ESclose (which waits for all async events to
complete).
* Add source file for event set test.
* Refactor sync & async API routines to call common routine.
Move dataset API read / write routines to src/H5D.c, along with all the other
API routines.
Progress on "fake" async VOL connector, for testing.
* Modify async implementation to wrap async requests in a H5VL_object_t
struct so the VOL layer can find the connector when accessing the
request at a later point.
* Free the requests is H5ESclose. Remove comments implying that request
wait, notify, and cancel callbacks should free the request.
* Fix bug in error handling in H5Fclose.
* Fix bugs in async file routines. Rename H5VL_create_object_generic to
H5VL_create_object.
* Add explicit async version of H5Fcreate.
* Add more _async routines
* Correct typo for return value from H5Awrite changes
* Add H5EStest and H5ESwait routines
* Updated with API tracing info
* Fix NULL pointer dereference in H5ES__wait
* Add H5is_library_terminating() routine, so that VOL connectors can detect
when the library is shutting down.
* Fix typo
* Remove event from event set's linked list
* Move block of code so that vol_obj is valid
* Avoid setting properties in the DXPL when reseting the library state (and in
the test code).
* Refactor argument tracing to implement new capability for tracing arguments
of non-API routines, with the H5ARG_TRACE macro. This macro is updated
automatically with the bin/trace script that runs as part of the autogen.sh
process. Major changes were in src/H5trace.c and bin/trace, with the other
changes being cleanups to the argument lists, to improve their presentation
in the tracing output.
Also - added the "managed string" routines, which can dynamically allocate
strings, appending printf-formatted output to the string efficiently.
* Release memory for managed strings
* Fix printf() formats.
* More printf() format fixes.
* Add H5Eappend_stack routine and regression tests
* Clean up a few missed merge conflicts and update the error stacks.
* Remove unnecessary fork() operations and ten second sleep().
* Restore commented out attribute out, to better enable tracking down the previous failure
* Allow multiple H5ARG_TRACE macros within a routine to be updated
* Switch to using "new" H5ES_insert (which takes the arguments for the caller routine) for all event set operations. Renames H5ES_insert_new to H5ES_insert and removes the previous H5ES_insert.
* Merge "managed" string routines into "ref-counted" strings, and refactor code to use them.
* Add missing file.
* Add caller's name and arguments to event, for error reporting
* Refactor event set setup for "API common" internal routines
* Checkin async API routines for H5A* and H5G* modules as listed in ID-283.
Fix couple h5dump expected output files due to the changes.
* Add some of the error query routines needed for event sets.
* Refactor to make async setup / teardown and "common" routines cleaner
* (1) Add async APIs to H5L, H5F, and H5D modules
(2) Fix errors in previous checkins of async APIs in H5A and H5G modules
(3) h5dump expected output changes
* Enhance event info, for better error handling
* Change name of temporary vol_obj variable, to help reduce coding errors
* Fix oversight with vol_obj pointer
* Minor code cleanup
* Add missing \'valid\' flag for VOL wrapper context, when restoring the library\'s state
* Run source formatter
* Change H5TSmutex lock and release to include a lock count
* Update error reporting ideas
* Minor updates to improve sanity checking for retrieving / restoring library state
* Updated with feedback from h5py team members
* Refactor internal event set list and event handling, add implementation for H5ESget_err_info
* Change the VOL request subclass callbacks that switch from using "H5ES_status_t" to "H5VL_request_status_t", and also add a H5VL_request_status_t* parameter to the 'cancel' callback in the request subclass. Also more code quality cleanups to add iterator callbacks to internal event set routines.
* Update API tracing for new H5VL_request_status_t typedef
* Finish converting internal event set operations to use list iterator callbacks, instead of directly accessing the list structure
* Add H5VL_REQUEST_GET_ERR_STACK operation to request subclass, for retrieving a copy of the error stack for a failed asynchronous operation
* Remove 'canceled' event status from Java constants
* Be safer about releasing resources when inserting a newly opened/created object or file into an event set
* Remove H5EStest, add H5ES_WAIT_NONE for 0 timeout, and revise parameters to H5ESwait, to make it more "aggregate".
* Remove H5ES_STATUS_CANCELED from Java wrappers also
* (a) Add async APIs for H5O module as listed in jira issue ID-283.
(b) Remove verification of name parameter in async related routines for H55A and H5L modules
because it is checked in H5VL_setup* routine.
(c) Modify h5dump expected output due to the async changes.
* Corrections based on PR feedback.
* Further changes to make based on PR feedback.
* Fix missed merge marker, and reformatted line
* Clean up some warnings
* Correct level of indirection
* Relocate prototype (and doxygen info) for H5Aclose
* Change non-static function declarations to be static
* Ensure that H5TSpublic.h header gets installed (#129)
* Add 'wrapper' versions of async calls, to allow language wrappers and layers on top of HDF5 to pass in their application information.
* Switch H5Aexists\*_async and H5Lexists\*_async to use flag to return status, instead of return value. Make the corresponding changes through most of the v1 and v2 B-tree code. Clean up warnings in H5public.h and cmpd_dtransform.c.
* Add H5Iregister_future routine and tests.
* Correct return value for H5Lexists_async
* Add H5_DLL macro to public H5ES API routines
* Update supported -> flags parameter for introspect_query callback
* Remove my email address. Update passthrough VOL connector ID.
* Fix comment for post_open_api_common
* Remove unused non-blocking VOL connector
* Minor cleanup in async branch in preparation for merge to develop
* Update CMake and the Autotools to use the new pass-through VOL ID
* Fix for SWMR daily test failures (#160)
The H5I_register_using_existing_id() call did not initialize the future
ID callbacks, causing the library to segfault when it tried to
resolve those function pointers.
* Added selective async APIs (#150)
* Added selective async APIs
Description:
Added the following APIs:
H5Ropen_attr_async
H5Ropen_object_async
H5Ropen_region_async
H5Mcreate_async
H5Mopen_async
H5Mput_async
H5Mget_async
H5Mclose_async
H5Tcommit_async
H5Topen_async
H5Tcopy_async
H5Tclose_async
- Updated an expected output file to include a new internal function
in the error stack for the failure case.
* Updated async APIs per reviews, including removing async version of
H5Tcopy.
* Removed statements that were added by mistake in the previous commit.
* Fix compile issues in H5M and warnings elsewhere
* Reformat code
* Brings VOL_LIST changes from develop. (#163)
Co-authored-by: Houjun Tang <htang4@lbl.gov>
Co-authored-by: Neil Fortner <nfortne2@hdfgroup.org>
Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org>
Co-authored-by: vchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>
Co-authored-by: jhendersonHDF <jhenderson@hdfgroup.org>
Co-authored-by: Dana Robinson <derobins@hdfgroup.org>
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: bmribler <39579120+bmribler@users.noreply.github.com>
2020-12-14 08:02:17 +08:00
|
|
|
#-- Adding test for event_set
|
|
|
|
add_executable (event_set ${event_set_SOURCES})
|
|
|
|
target_compile_options(event_set PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
|
|
|
target_include_directories (event_set PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (event_set STATIC)
|
|
|
|
target_link_libraries (event_set PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (event_set SHARED)
|
|
|
|
target_link_libraries (event_set PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
|
|
|
endif ()
|
|
|
|
set_target_properties (event_set PROPERTIES FOLDER test)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_event_set_FORMAT event_set)
|
|
|
|
endif ()
|
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
##############################################################################
|
|
|
|
### A D D I T I O N A L T E S T S ###
|
|
|
|
##############################################################################
|
|
|
|
|
2016-05-05 00:29:52 +08:00
|
|
|
set (H5_CHECK_TESTS
|
|
|
|
error_test
|
|
|
|
err_compat
|
|
|
|
tcheck_version
|
|
|
|
testmeta
|
2017-01-27 03:34:12 +08:00
|
|
|
atomic_writer
|
|
|
|
atomic_reader
|
2016-05-05 00:29:52 +08:00
|
|
|
links_env
|
2017-06-29 14:11:44 +08:00
|
|
|
filenotclosed
|
2018-12-29 06:49:11 +08:00
|
|
|
del_many_dense_attrs
|
2018-02-28 02:57:07 +08:00
|
|
|
flushrefresh
|
2016-05-05 00:29:52 +08:00
|
|
|
)
|
2013-08-23 02:41:25 +08:00
|
|
|
|
2019-02-16 05:48:24 +08:00
|
|
|
foreach (h5_test ${H5_CHECK_TESTS})
|
|
|
|
ADD_H5_EXE(${h5_test})
|
2017-01-11 07:09:53 +08:00
|
|
|
endforeach ()
|
2013-08-23 02:41:25 +08:00
|
|
|
|
2018-02-28 02:57:07 +08:00
|
|
|
#-- Adding test for libinfo
|
|
|
|
set (GREP_RUNNER ${PROJECT_BINARY_DIR}/GrepRunner.cmake)
|
|
|
|
file (WRITE ${GREP_RUNNER}
|
|
|
|
"file (STRINGS \${TEST_PROGRAM} TEST_RESULT REGEX \"SUMMARY OF THE HDF5 CONFIGURATION\")
|
2019-02-16 05:48:24 +08:00
|
|
|
if (NOT TEST_RESULT)
|
2018-02-28 02:57:07 +08:00
|
|
|
message (FATAL_ERROR \"Failed: The output: \${TEST_RESULT} of \${TEST_PROGRAM} did not contain SUMMARY OF THE HDF5 CONFIGURATION\")
|
|
|
|
else ()
|
|
|
|
message (STATUS \"COMMAND Result: \${TEST_RESULT}\")
|
|
|
|
endif ()
|
|
|
|
"
|
|
|
|
)
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
### S W I M M E R T E S T S ###
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
set (H5_SWMR_TESTS
|
|
|
|
swmr_addrem_writer
|
|
|
|
swmr_check_compat_vfd
|
|
|
|
swmr_generator
|
|
|
|
swmr_reader
|
|
|
|
swmr_remove_reader
|
|
|
|
swmr_remove_writer
|
|
|
|
swmr_sparse_reader
|
|
|
|
swmr_sparse_writer
|
|
|
|
swmr_start_write
|
|
|
|
swmr_writer
|
|
|
|
)
|
|
|
|
|
2019-02-16 05:48:24 +08:00
|
|
|
foreach (h5_test ${H5_SWMR_TESTS})
|
|
|
|
ADD_H5_EXE(${h5_test})
|
2018-02-28 02:57:07 +08:00
|
|
|
endforeach ()
|
|
|
|
|
|
|
|
set (H5_VDS_SWMR_TESTS
|
|
|
|
vds_swmr_gen
|
|
|
|
vds_swmr_reader
|
|
|
|
vds_swmr_writer
|
|
|
|
)
|
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
macro (ADD_H5_VDS_EXE file)
|
|
|
|
add_executable (${file} ${HDF5_TEST_SOURCE_DIR}/${file}.c ${HDF5_TEST_SOURCE_DIR}/vds_swmr.h)
|
|
|
|
target_include_directories (${file} PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};${HDF5_TEST_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
|
|
|
target_compile_options(${file} PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (${file} STATIC)
|
|
|
|
target_link_libraries (${file} PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (${file} SHARED)
|
|
|
|
target_link_libraries (${file} PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
|
|
|
endif ()
|
|
|
|
set_target_properties (${file} PROPERTIES FOLDER test)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_${file}_FORMAT ${file})
|
|
|
|
endif ()
|
|
|
|
endmacro ()
|
|
|
|
|
2019-02-16 05:48:24 +08:00
|
|
|
foreach (h5_test ${H5_VDS_SWMR_TESTS})
|
2020-09-05 05:36:52 +08:00
|
|
|
ADD_H5_VDS_EXE(${h5_test})
|
2018-02-28 02:57:07 +08:00
|
|
|
endforeach ()
|
|
|
|
|
2016-12-18 16:58:46 +08:00
|
|
|
#-- Adding test for accum_swmr_reader
|
|
|
|
# This has to be copied to the test directory for execve() to find it
|
|
|
|
# and it can't be renamed (i.e., no <foo>-shared).
|
|
|
|
add_executable (accum_swmr_reader ${HDF5_TEST_SOURCE_DIR}/accum_swmr_reader.c)
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(accum_swmr_reader PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (accum_swmr_reader PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (accum_swmr_reader STATIC)
|
|
|
|
target_link_libraries (accum_swmr_reader PRIVATE ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (accum_swmr_reader SHARED)
|
|
|
|
target_link_libraries (accum_swmr_reader PRIVATE ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
|
|
|
endif ()
|
2016-12-18 16:58:46 +08:00
|
|
|
set_target_properties (accum_swmr_reader PROPERTIES FOLDER test)
|
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_accum_swmr_reader_FORMAT accum_swmr_reader)
|
|
|
|
endif ()
|
|
|
|
|
2016-12-18 16:58:46 +08:00
|
|
|
#-- Set accum dependencies
|
|
|
|
set_target_properties (accum PROPERTIES DEPENDS accum_swmr_reader)
|
|
|
|
|
2013-08-23 02:41:25 +08:00
|
|
|
##############################################################################
|
|
|
|
### P L U G I N T E S T S
|
|
|
|
##############################################################################
|
2014-03-12 05:14:57 +08:00
|
|
|
if (BUILD_SHARED_LIBS)
|
2017-11-09 09:52:44 +08:00
|
|
|
add_executable (filter_plugin ${HDF5_TEST_SOURCE_DIR}/filter_plugin.c)
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (filter_plugin PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2018-04-27 05:41:04 +08:00
|
|
|
TARGET_C_PROPERTIES (filter_plugin SHARED)
|
2019-06-18 20:46:25 +08:00
|
|
|
target_link_libraries (filter_plugin PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
2017-11-09 09:52:44 +08:00
|
|
|
set_target_properties (filter_plugin PROPERTIES FOLDER test)
|
2019-04-25 23:43:54 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_filter_plugin_FORMAT filter_plugin)
|
|
|
|
endif ()
|
|
|
|
|
2019-04-25 23:43:54 +08:00
|
|
|
add_executable (vol_plugin ${HDF5_TEST_SOURCE_DIR}/vol_plugin.c)
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (vol_plugin PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-04-25 23:43:54 +08:00
|
|
|
TARGET_C_PROPERTIES (vol_plugin SHARED)
|
2019-06-18 20:46:25 +08:00
|
|
|
target_link_libraries (vol_plugin PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
2019-04-25 23:43:54 +08:00
|
|
|
set_target_properties (vol_plugin PROPERTIES FOLDER test)
|
2020-09-05 05:36:52 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_vol_plugin_FORMAT vol_plugin)
|
|
|
|
endif ()
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2013-08-23 02:41:25 +08:00
|
|
|
|
2017-01-27 03:34:12 +08:00
|
|
|
##############################################################################
|
|
|
|
### U S E C A S E S T E S T S
|
|
|
|
##############################################################################
|
2020-09-05 05:36:52 +08:00
|
|
|
set (use_append_chunk_SOURCES ${HDF5_TEST_SOURCE_DIR}/use_append_chunk.c ${HDF5_TEST_SOURCE_DIR}/use_common.c ${HDF5_TEST_SOURCE_DIR}/use.h)
|
2017-01-27 03:34:12 +08:00
|
|
|
add_executable (use_append_chunk ${use_append_chunk_SOURCES})
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(use_append_chunk PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (use_append_chunk PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (use_append_chunk STATIC)
|
|
|
|
target_link_libraries (use_append_chunk PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (use_append_chunk SHARED)
|
|
|
|
target_link_libraries (use_append_chunk PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
2017-01-27 03:34:12 +08:00
|
|
|
endif ()
|
2019-06-18 20:46:25 +08:00
|
|
|
set_target_properties (use_append_chunk PROPERTIES FOLDER test)
|
2017-01-27 03:34:12 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_use_append_chunk_FORMAT use_append_chunk)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
set (use_append_chunk_mirror_SOURCES ${HDF5_TEST_SOURCE_DIR}/use_append_chunk_mirror.c ${HDF5_TEST_SOURCE_DIR}/use_common.c ${HDF5_TEST_SOURCE_DIR}/use.h)
|
|
|
|
add_executable (use_append_chunk_mirror ${use_append_chunk_mirror_SOURCES})
|
|
|
|
target_compile_options(use_append_chunk_mirror PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
|
|
|
target_include_directories (use_append_chunk_mirror PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (use_append_chunk_mirror STATIC)
|
|
|
|
target_link_libraries (use_append_chunk_mirror PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (use_append_chunk_mirror SHARED)
|
|
|
|
target_link_libraries (use_append_chunk_mirror PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
|
|
|
endif ()
|
|
|
|
set_target_properties (use_append_chunk_mirror PROPERTIES FOLDER test)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_use_append_chunk_mirror_FORMAT use_append_chunk_mirror)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
set (use_append_mchunks_SOURCES ${HDF5_TEST_SOURCE_DIR}/use_append_mchunks.c ${HDF5_TEST_SOURCE_DIR}/use_common.c ${HDF5_TEST_SOURCE_DIR}/use.h)
|
2017-01-27 03:34:12 +08:00
|
|
|
add_executable (use_append_mchunks ${use_append_mchunks_SOURCES})
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(use_append_mchunks PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (use_append_mchunks PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (use_append_mchunks STATIC)
|
|
|
|
target_link_libraries (use_append_mchunks PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (use_append_mchunks SHARED)
|
|
|
|
target_link_libraries (use_append_mchunks PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
2017-01-27 03:34:12 +08:00
|
|
|
endif ()
|
2019-06-18 20:46:25 +08:00
|
|
|
set_target_properties (use_append_mchunks PROPERTIES FOLDER test)
|
2017-01-27 03:34:12 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_use_append_mchunks_FORMAT use_append_mchunks)
|
|
|
|
endif ()
|
|
|
|
|
2017-01-27 03:34:12 +08:00
|
|
|
set (use_disable_mdc_flushes_SOURCES ${HDF5_TEST_SOURCE_DIR}/use_disable_mdc_flushes.c)
|
|
|
|
add_executable (use_disable_mdc_flushes ${use_disable_mdc_flushes_SOURCES})
|
2020-04-05 23:50:08 +08:00
|
|
|
target_compile_options(use_disable_mdc_flushes PRIVATE "${HDF5_CMAKE_C_FLAGS}")
|
2020-09-26 05:43:57 +08:00
|
|
|
target_include_directories (use_disable_mdc_flushes PRIVATE "${HDF5_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
2019-06-18 20:46:25 +08:00
|
|
|
if (NOT BUILD_SHARED_LIBS)
|
|
|
|
TARGET_C_PROPERTIES (use_disable_mdc_flushes STATIC)
|
|
|
|
target_link_libraries (use_disable_mdc_flushes PRIVATE ${HDF5_TEST_LIB_TARGET})
|
|
|
|
else ()
|
|
|
|
TARGET_C_PROPERTIES (use_disable_mdc_flushes SHARED)
|
|
|
|
target_link_libraries (use_disable_mdc_flushes PRIVATE ${HDF5_TEST_LIBSH_TARGET})
|
2017-01-27 03:34:12 +08:00
|
|
|
endif ()
|
2019-06-18 20:46:25 +08:00
|
|
|
set_target_properties (use_disable_mdc_flushes PROPERTIES FOLDER test)
|
2017-01-27 03:34:12 +08:00
|
|
|
|
2020-09-05 05:36:52 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target to clang-format
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (HDF5_ENABLE_FORMATTERS)
|
|
|
|
clang_format (HDF5_TEST_use_disable_mdc_flushes_FORMAT use_disable_mdc_flushes)
|
|
|
|
endif ()
|
|
|
|
|
2020-01-16 01:38:06 +08:00
|
|
|
if (HDF5_TEST_SERIAL)
|
|
|
|
include (CMakeTests.cmake)
|
|
|
|
endif ()
|