Skip to content

Commit

Permalink
Update selection IO branch with develop (HDFGroup#1215)
Browse files Browse the repository at this point in the history
Merged branch 'develop' into selection_io
  • Loading branch information
brtnfld authored and jhendersonHDF committed Mar 31, 2022
1 parent b7a1511 commit 13e86e8
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/H5.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,6 @@ H5_init_library(void)
}
/* clang-format on */

/* Check for HDF5_USE_SELECTION_IO env variable */
env_use_select_io = HDgetenv("HDF5_USE_SELECTION_IO");
if (NULL != env_use_select_io && HDstrcmp(env_use_select_io, "") && HDstrcmp(env_use_select_io, "0") &&
HDstrcmp(env_use_select_io, "no") && HDstrcmp(env_use_select_io, "No") &&
HDstrcmp(env_use_select_io, "NO") && HDstrcmp(env_use_select_io, "false") &&
HDstrcmp(env_use_select_io, "False") && HDstrcmp(env_use_select_io, "FALSE"))
H5_use_selection_io_g = TRUE;

/* Check for HDF5_USE_SELECTION_IO env variable */
env_use_select_io = HDgetenv("HDF5_USE_SELECTION_IO");
if (NULL != env_use_select_io && HDstrcmp(env_use_select_io, "") && HDstrcmp(env_use_select_io, "0") &&
Expand Down
3 changes: 1 addition & 2 deletions src/H5FD.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,8 +932,7 @@ H5FD_cmp(const H5FD_t *f1, const H5FD_t *f2)

FUNC_ENTER_NOAPI_NOERR; /* return value is arbitrary */

if ((!f1 || !f1->cls) && (!f2 || !f2->cls))
HGOTO_DONE(0)
if ((!f1 || !f1->cls) && (!f2 || !f2->cls)) HGOTO_DONE(0)
if (!f1 || !f1->cls)
HGOTO_DONE(-1)
if (!f2 || !f2->cls)
Expand Down
8 changes: 8 additions & 0 deletions test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ if MIRROR_VFD_CONDITIONAL
TEST_SCRIPT += test_mirror.sh
endif

if MIRROR_VFD_CONDITIONAL
TEST_SCRIPT += test_mirror.sh
endif

check_SCRIPTS = $(TEST_SCRIPT)

# These are our main targets. They should be listed in the order to be
Expand Down Expand Up @@ -106,6 +110,10 @@ if MIRROR_VFD_CONDITIONAL
check_PROGRAMS+= mirror_vfd
endif

if MIRROR_VFD_CONDITIONAL
check_PROGRAMS+= mirror_vfd
endif

# These programs generate test files for the tests. They don't need to be
# compiled every time we want to test the library. However, putting
# them in a conditional causes automake to generate rules so that they
Expand Down
10 changes: 10 additions & 0 deletions test/test_flush_refresh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ srcdir=@srcdir@
utils_testdir=@abs_top_builddir@/@H5_UTILS_TEST_BUILDDIR@
testdir=@abs_top_builddir@/@H5_TEST_BUILDDIR@

# If the bindir directory is not set just use current (.).
if test -z "$bindir"; then
bindir=.
fi

# If the testdir directory is not set just use current (.).
if test -z "$testdir"; then
testdir=.
fi

# Check to see if the VFD specified by the HDF5_DRIVER environment variable
# supports SWMR.
$utils_testdir/swmr_check_compat_vfd
Expand Down
5 changes: 5 additions & 0 deletions test/test_swmr.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ WAIT_MESSAGE() {
##
###############################################################################

# If the testdir directory is not set just use current (.).
if test -z "$testdir"; then
testdir=.
fi

# Check to see if the VFD specified by the HDF5_DRIVER environment variable
# supports SWMR.
$utils_testdir/swmr_check_compat_vfd
Expand Down
5 changes: 5 additions & 0 deletions test/test_use_cases.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ srcdir=@srcdir@
utils_testdir=@abs_top_builddir@/@H5_UTILS_TEST_BUILDDIR@
testdir=@abs_top_builddir@/@H5_TEST_BUILDDIR@

# If the testdir directory is not set just use current (.).
if test -z "$testdir"; then
testdir=.
fi

# Check to see if the VFD specified by the HDF5_DRIVER environment variable
# supports SWMR.
$utils_testdir/swmr_check_compat_vfd
Expand Down
5 changes: 5 additions & 0 deletions test/test_vds_swmr.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ WAIT_MESSAGE() {
## Main
###############################################################################

# If the testdir directory is not set just use current (.).
if test -z "$testdir"; then
testdir=.
fi

# Check to see if the VFD specified by the HDF5_DRIVER environment variable
# supports SWMR.
$utils_testdir/swmr_check_compat_vfd
Expand Down

0 comments on commit 13e86e8

Please sign in to comment.