Skip to content

Commit

Permalink
disable tests in examples/hdf5_examples for Cache VOL as it now requi…
Browse files Browse the repository at this point in the history
…res MPI_Init_thread
  • Loading branch information
wkliao committed Sep 19, 2023
1 parent 3b939b9 commit 9c52782
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/hdf5_examples/parallel_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN_CMD=`echo ${TESTMPIRUN} | ${SED} -e "s/NP/$1/g"`

. $srcdir/../../tests/common/wrap_runs.sh

log_vol_file_only=1
log_vol_file_only=0

# These example programs downloaded from HDF5 repo CANNOT run the second time,
# because some programs add the same attributes to the files created by other
Expand Down
11 changes: 3 additions & 8 deletions examples/hdf5_examples/seq_runs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@ test_example_func() {
export H5VL_LOG_PASSTHRU=1

if test "x$cache_vol" = xyes || test "x$async_vol" = xyes ; then
if test "x$cache_vol" = xyes ; then
if test "x$async_vol" = xyes ; then
echo "---- Run Log + Cache + Async VOLs -------------"
else
echo "---- Run Log + Cache VOLs ---------------------"
fi
fi
run_func $1 $log_vol_file_only $2 $3
# Skip as Async I/O VOL requires to call MPI_Init_thread()
# Skip as Cache VOL requires to call MPI_Init_thread()
return
elif test "x$log_vol" = xyes ; then
echo "---- Run Log VOL as a passthrough connector ---------------------"
run_func $1 $log_vol_file_only $2 $3
Expand Down
13 changes: 12 additions & 1 deletion tests/common/wrap_runs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,21 @@ test_func() {
else
echo "--- Run Log + Cache VOLs -----------------------------------------------"
fi
else
echo " - Run Log + Async VOLs ---------------------------------------"
fi
# When stacking Log on top of other VOLs, we can only run Log as passthru
export H5VL_LOG_PASSTHRU=1
run_func $1 $log_vol_file_only $2 $3
isLogFile=0
if test "x$TEST_NATIVE_VOL_ONLY" != x1 && test "x$HDF5_VOL_CONNECTOR" = x ; then
isLogFile=1
elif test "x$log_vol" = xyes ; then
isLogFile=1
fi
echo " - TEST_NATIVE_VOL_ONLY=$TEST_NATIVE_VOL_ONLY ---------------------------------------"
echo " - HDF5_VOL_CONNECTOR=$HDF5_VOL_CONNECTOR ---------------------------------------"
echo " - isLogFile=$isLogFile ---------------------------------------"
run_func $1 $isLogFile $2 $3
elif test "x$log_vol" = xyes ; then
# test when Log is passthru
echo " - Run Log VOL as a passthrough connector -----------------------------"
Expand Down

0 comments on commit 9c52782

Please sign in to comment.