ea3f926057
* Rework tools.cmake and add C flags (#3110) * Fix gh pages so that the doxygen files are uploaded (#3102) * Add workspace path * add debug * Make one job so workspace files are available * Put doxygen docs under docs folder in gh-pages * Fix a misc warning in test/vol.c (#3112) The compiler complains about using integers instead of size_t for some sizes. * Remove H5detect and H5make_libsettings (#3104) Removes H5detect and H5make_libsettings from the build and replaces their functionality with things that don't affect cross-compiling. H5detect --> floating-point types are now detected on library load H5make_libsettings --> Moved functionality to a new H5build_settings.c template file * clang-tidy clang-analyzer-core issues addressed (#3113) src/H5system.c:1293:13: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] src/H5trace.c:4048:17: warning: Passed-by-value struct argument contains uninitialized data (e.g., via the field chain: 'initial.user') [clang-analyzer-core.CallAndMessage] * Add note for issue 3056 (#3117) * Use 1.14 toolchain (#3116) * Remove the checkposix script (#3122) This script was used to ensure that all non-HDF5 calls were prefixed with 'HD'. We are removing this scheme so this script is no longer needed. * Remove unused HD macros (#3120) * Remove unused HD macros The library prefixes most C and POSIX API calls with 'HD'. We are going to start removing these so the code looks like normal C. This PR removes most of the unused HD markup macros. * Replace ntohl/ntohs * Adds an optional version arg to bin/format_source (#3119) * Clean up mirror VFD code in utils dir (#3121) * Remove dead code * Replace mybzero with memset * Replace hbool_t/TRUE/FALSE with bool/true/false * Fix spelling issues flagged by codespell (#3130) * Make autogen.sh output message consistent (#3128) * Add Python for HDF-EOS zoo description (#3129) * Fix function name in comment in ros3 VFD (#3131) * Revert long double checks (#3133) * Revert "Remove long double conversion work-arounds (#3097)" This reverts commit |
||
---|---|---|
.. | ||
driver | ||
CMakeLists.txt | ||
H5_api_async_test.c | ||
H5_api_async_test.h | ||
H5_api_attribute_test.c | ||
H5_api_attribute_test.h | ||
H5_api_dataset_test.c | ||
H5_api_dataset_test.h | ||
H5_api_datatype_test.c | ||
H5_api_datatype_test.h | ||
H5_api_file_test.c | ||
H5_api_file_test.h | ||
H5_api_group_test.c | ||
H5_api_group_test.h | ||
H5_api_link_test.c | ||
H5_api_link_test.h | ||
H5_api_misc_test.c | ||
H5_api_misc_test.h | ||
H5_api_object_test.c | ||
H5_api_object_test.h | ||
H5_api_test_config.h.in | ||
H5_api_test_util.c | ||
H5_api_test_util.h | ||
H5_api_test.c | ||
H5_api_test.h | ||
README.md | ||
tarray.c | ||
tattr.c | ||
tchecksum.c | ||
tconfig.c | ||
tcoords.c | ||
testhdf5.c | ||
testhdf5.h | ||
tfile.c | ||
tgenprop.c | ||
th5o.c | ||
th5s.c | ||
tid.c | ||
titerate.c | ||
tmisc.c | ||
trefer.c | ||
tselect.c | ||
ttime.c | ||
tunicode.c | ||
tvlstr.c | ||
tvltypes.c |
HDF5 API Tests
This directory contains several test applications that exercise HDF5's public API and serve as regression tests for HDF5 VOL Connectors.
Build Process and options
These HDF5 API tests are disabled by default, but can be enabled by passing the
-DHDF5_TEST_API=ON
option to CMake. The following build options are available
to influence how the API tests get built:
CMake
To set an option, it should be prepended with -D
when passed to the cmake
command.
For example,
cmake -DHDF5_TEST_API=OFF ..
HDF5_TEST_API
(Default: ON
) - Determines whether the API tests will be built.
HDF5_TEST_API_INSTALL
(Default: ON
) - Determines whether the API tests should be installed
on the system.
HDF5_TEST_API_ENABLE_ASYNC
(Default: OFF
) - Determines whether tests for HDF5's asynchronous
I/O capabilities should be enabled. Note that the "native" HDF5 VOL connector doesn't support
this functionality, so these tests are directed towards VOL connectors that do.
HDF5_TEST_ENABLE_DRIVER
(Default: OFF
) - Determines whether the API test driver program should
be built. This driver program is useful when a VOL connector relies upon a server executable
(as well as possible additional executables) in order to function. The driver program can be
supplied with a server executable and
HDF5_TEST_API_SERVER
(Default: empty string) - If HDF5_TEST_ENABLE_DRIVER
is set to ON
, this
option should be edited to point to the server executable that the driver program should attempt
to launch before running the API tests.
Autotools
Currently unsupported
Usage
These API tests currently only support usage with the native HDF5 VOL connector and HDF5 VOL connectors that can be loaded dynamically as a plugin. For information on how to build a VOL connector in this manner, refer to section 2.3 of the HDF5 VOL Connector Author Guide.
TODO: section on building VOL connectors alongside HDF5 for use with tests
These API tests can also be used to test an HDF5 VOL connector that is external to the library.
For convenience, the HDF5_TEST_API_INSTALL
option can be used to install these tests on the
system where other HDF5 executables (such as h5dump
) are installed.
To run these tests with your VOL connector, set the following two environment variables:
HDF5_VOL_CONNECTOR
- This environment variable should be set to the name chosen for the VOL connector
to be used. For example, HDF5's DAOS VOL connector uses the name "daos" and would therefore set:
HDF5_VOL_CONNECTOR=daos
HDF5_PLUGIN_PATH
- This environment variable should be set to the directory that contains the built
library for the VOL connector to be used.
Once these are set, the HDF5 API tests will attempt to automatically load the specified VOL connector and use it when running tests. If HDF5 is unable to locate or load the VOL connector specified, it will fall back to running the tests with the native HDF5 VOL connector and an error similar to the following will appear in the test output:
HDF5-DIAG: Error detected in HDF5 (X.XX.X) MPI-process 0:
#000: /home/user/git/hdf5/src/H5.c line 1010 in H5open(): library initialization failed
major: Function entry/exit
minor: Unable to initialize object
#001: /home/user/git/hdf5/src/H5.c line 277 in H5_init_library(): unable to initialize vol interface
major: Function entry/exit
minor: Unable to initialize object
#002: /home/user/git/hdf5/src/H5VLint.c line 199 in H5VL_init_phase2(): unable to set default VOL connector
major: Virtual Object Layer
minor: Can't set value
#003: /home/user/git/hdf5/src/H5VLint.c line 429 in H5VL__set_def_conn(): can't register connector
major: Virtual Object Layer
minor: Unable to register new ID
#004: /home/user/git/hdf5/src/H5VLint.c line 1321 in H5VL__register_connector_by_name(): unable to load VOL connector
major: Virtual Object Layer
minor: Unable to initialize object
Help and Support
For help with building or using the HDF5 API tests, please contact the HDF Help Desk.