Skip to content

Commit

Permalink
Correct Fortran test scripts and remove old files
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF committed Nov 27, 2023
1 parent 6146cd6 commit d39e89c
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 253 deletions.
13 changes: 8 additions & 5 deletions C/H5D/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,14 @@ version_compare "$H5_LIBVER" "1.8.23"
if [ "$version_lt" = 1 ]; then
USE_ALT="22"
else
# check if HDF5 version is < 1.10.8
version_compare "$H5_LIBVER" "1.10.8"
if [ "$version_lt" = 1 ]; then
USE_ALT="07"
nbitdir="110"
# check if HDF5 version is >= 1.10.0 and < 1.10.8
version_compare "$H5_LIBVER" "1.10.0"
if [ "$version_lt" = 0 ]; then
version_compare "$H5_LIBVER" "1.10.8"
if [ "$version_lt" = 1 ]; then
USE_ALT="07"
nbitdir="110"
fi
fi
fi

Expand Down
7 changes: 6 additions & 1 deletion C/H5T/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ do
else
version_compare "$H5_LIBVER" "1.12.0"
if [ "$version_lt" = 1 ]; then
cmp -s tmp.test $srcdir/tfiles/110/$fname$USE_ALT.ddl
version_compare "$H5_LIBVER" "1.10.7"
if [ "$version_lt" = 1 ]; then
cmp -s tmp.test $srcdir/tfiles/110/$fname$USE_ALT.ddl
else
cmp -s tmp.test $srcdir/tfiles/18/$fname.ddl
fi
else
cmp -s tmp.test $srcdir/tfiles/112/$fname.ddl
fi
Expand Down
22 changes: 0 additions & 22 deletions C/H5T/tfiles/18/112/h5ex_t_objref.ddl

This file was deleted.

28 changes: 0 additions & 28 deletions C/H5T/tfiles/18/112/h5ex_t_objrefatt.ddl

This file was deleted.

33 changes: 0 additions & 33 deletions C/H5T/tfiles/18/112/h5ex_t_regref.ddl

This file was deleted.

39 changes: 0 additions & 39 deletions C/H5T/tfiles/18/112/h5ex_t_regrefatt.ddl

This file was deleted.

1 change: 1 addition & 0 deletions FORTRAN/H5D/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ do
echo " FAILED!"
else
echo " *Inconsequential difference* ... Passed"
status=0
fi
else
echo " Passed"
Expand Down
2 changes: 1 addition & 1 deletion FORTRAN/H5T/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ if (HDF5_BUILD_TOOLS)
TARGET ${EXAMPLE_VARNAME}_f90_${example_name}
POST_BUILD
COMMAND ${CMAKE_COMMAND}
ARGS -E copy_if_different ${PROJECT_SOURCE_DIR}/tfiles/18/112/${example_name}.ddl ${example_name}.ddl
ARGS -E copy_if_different ${PROJECT_SOURCE_DIR}/tfiles/112/${example_name}.ddl ${example_name}.ddl
)
else ()
add_custom_command (
Expand Down
13 changes: 11 additions & 2 deletions FORTRAN/H5T/test.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ do
else
version_compare "$H5_LIBVER" "1.12.0"
if [ "$version_lt" = 1 ]; then
cmp -s tmp.test $srcdir/tfiles/110/$fname$USE_ALT.ddl
version_compare "$H5_LIBVER" "1.10.7"
if [ "$version_lt" = 1 ]; then
cmp -s tmp.test $srcdir/tfiles/110/$fname$USE_ALT.ddl
else
cmp -s tmp.test $srcdir/tfiles/18/$fname.ddl
fi
else
cmp -s tmp.test $srcdir/tfiles/112/$fname.ddl
fi
Expand All @@ -156,7 +161,11 @@ do
return_val=`expr $status + $return_val`
done

topics=" vlenatt_F03 vlen_F03"
topics=""
version_compare "$H5_LIBVER" "1.10.0"
if [ "$version_lt" = 0 ]; then
topics=" vlenatt_F03 vlen_F03"
fi

for topic in $topics
do
Expand Down
22 changes: 0 additions & 22 deletions FORTRAN/H5T/tfiles/18/112/h5ex_t_objref_F03.ddl

This file was deleted.

28 changes: 0 additions & 28 deletions FORTRAN/H5T/tfiles/18/112/h5ex_t_objrefatt_F03.ddl

This file was deleted.

33 changes: 0 additions & 33 deletions FORTRAN/H5T/tfiles/18/112/h5ex_t_regref_F03.ddl

This file was deleted.

39 changes: 0 additions & 39 deletions FORTRAN/H5T/tfiles/18/112/h5ex_t_regrefatt_F03.ddl

This file was deleted.

0 comments on commit d39e89c

Please sign in to comment.