Skip to content

Commit

Permalink
added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Dec 20, 2023
1 parent 4cade21 commit c1b7dba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
1 change: 1 addition & 0 deletions HDF5Examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ if (${H5_LIBVER_DIR} GREATER 16)
endif ()

configure_file (${HDF5EX_F90_SRC_DIR}/H5D/h5_version.h.in ${PROJECT_BINARY_DIR}/FORTRAN/H5D/h5_version.h @ONLY)
configure_file (${HDF5EX_F90_SRC_DIR}/H5G/h5_version.h.in ${PROJECT_BINARY_DIR}/FORTRAN/H5G/h5_version.h @ONLY)
else ()
set (HDF_BUILD_FORTRAN OFF CACHE BOOL "Build examples FORTRAN support" FORCE)
endif ()
Expand Down
28 changes: 13 additions & 15 deletions HDF5Examples/FORTRAN/H5G/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,19 @@ endif ()

if (H5EX_BUILD_TESTING)
# if (HDF_ENABLE_F2003)
# set (exfiles
# h5ex_g_iterate
# h5ex_g_traverse
# h5ex_g_visit
# )
# foreach (example ${exfiles})
# add_custom_command (
# TARGET ${EXAMPLE_VARNAME}_f90_${example}
# POST_BUILD
# COMMAND ${CMAKE_COMMAND}
# ARGS -E copy_if_different ${PROJECT_SOURCE_DIR}/${example}.h5 ${PROJECT_BINARY_DIR}/${example}.h5
# )
# endforeach ()
set (exfiles
h5ex_g_iterate
h5ex_g_traverse
h5ex_g_visit
)
foreach (example ${exfiles})
add_custom_command (
TARGET ${EXAMPLE_VARNAME}_f90_${example}
POST_BUILD
COMMAND ${CMAKE_COMMAND}
ARGS -E copy_if_different ${PROJECT_SOURCE_DIR}/${example}.h5 ${PROJECT_BINARY_DIR}/${example}.h5
)
endforeach ()
# endif ()

macro (ADD_DUMP_TEST testname)
Expand Down Expand Up @@ -322,14 +322,12 @@ if (H5EX_BUILD_TESTING)
endmacro ()

macro (ADD_H5_CMP_TEST testname)
MESSAGE(status "LDKJFLDKJF ${testname}")
add_test (
NAME ${EXAMPLE_VARNAME}_f90_${testname}-clearall
COMMAND ${CMAKE_COMMAND}
-E remove
${testname}.out.tmp
)
MESSAGE(status "HERE ${testname}")
add_test (
NAME ${EXAMPLE_VARNAME}_f90_${testname}
COMMAND "${CMAKE_COMMAND}"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
## ----------------------------------------------------------------------
## Initialize configure.
##
AC_PREREQ([2.69])
AC_PREREQ([2.71])

## AC_INIT takes the name of the package, the version number, and an
## email address to report bugs. AC_CONFIG_SRCDIR takes a unique file
Expand Down

0 comments on commit c1b7dba

Please sign in to comment.