Commit 087410f2 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Skip 'test_hdf5_fortran_run' if h5dump is not found at the configure-time.

parent d3bc6642
......@@ -431,6 +431,10 @@ AS_IF([test x"$hdf5" != xfalse],
[AC_MSG_FAILURE([HDF5 library and/or header files are not found])])])
AM_CONDITIONAL([HDF5], [test x"$HAVE_LIBHDF5" = xyes])
AM_COND_IF([HDF5],
[AC_PATH_PROG([H5DUMP], [h5dump], [unknown])],
[H5DUMP=unknown])
AM_CONDITIONAL([H5DUMP], [test x"$H5DUMP" != xunknown])
# checks for header files
AC_CHECK_HEADERS([math.h stdio.h limits.h stdlib.h string.h strings.h inttypes.h sys/systemcfg.h])
......
......@@ -17,12 +17,13 @@ if (test $retval != 0) ; then
exit 1
fi
h5dump -a '/report_attributes/test_att_int' $SCT_FILENAME | grep 123 || exit 1
h5dump -a '/report_attributes/test_att_long' $SCT_FILENAME | grep 456 || exit 1
h5dump -a '/report_attributes/test_att_float' $SCT_FILENAME | grep 0.5 || exit 1
h5dump -a '/report_attributes/test_att_double' $SCT_FILENAME | grep 0.25 || exit 1
h5dump -a '/report_attributes/test_att_string' $SCT_FILENAME | grep abc || exit 1
@H5DUMP_TRUE@@H5DUMP@ -a '/report_attributes/test_att_int' $SCT_FILENAME | grep 123 || exit 1
@H5DUMP_TRUE@@H5DUMP@ -a '/report_attributes/test_att_long' $SCT_FILENAME | grep 456 || exit 1
@H5DUMP_TRUE@@H5DUMP@ -a '/report_attributes/test_att_float' $SCT_FILENAME | grep 0.5 || exit 1
@H5DUMP_TRUE@@H5DUMP@ -a '/report_attributes/test_att_double' $SCT_FILENAME | grep 0.25 || exit 1
@H5DUMP_TRUE@@H5DUMP@ -a '/report_attributes/test_att_string' $SCT_FILENAME | grep abc || exit 1
rm -f $SCT_FILENAME
exit 0
@H5DUMP_FALSE@exit 77
@H5DUMP_TRUE@exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment