mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
HDFFV-9407 Add test
This commit is contained in:
parent
4e06d523d5
commit
a03d35dc22
1
MANIFEST
1
MANIFEST
@ -1698,6 +1698,7 @@
|
||||
./tools/testfiles/h5dump-help.txt
|
||||
./tools/testfiles/non_existing.ddl
|
||||
./tools/testfiles/packedbits.ddl
|
||||
./tools/testfiles/t128bit_float.h5
|
||||
./tools/testfiles/taindices.h5
|
||||
./tools/testfiles/tall-1.ddl
|
||||
./tools/testfiles/tall-2.ddl
|
||||
|
@ -59,11 +59,11 @@ New Features
|
||||
(ADB - 2019/06/12, HDFFV-10805)
|
||||
|
||||
- Add options to enable or disable building tools and tests
|
||||
|
||||
Configure options --enable-tests and --enable-tools were added for
|
||||
|
||||
Configure options --enable-tests and --enable-tools were added for
|
||||
autotools configure. These options are enabled by default, and can be
|
||||
disabled with either --disable-tests (or tools) or --enable-tests=no
|
||||
(or --enable-tools=no). Build time is reduced ~20% when tools are
|
||||
disabled with either --disable-tests (or tools) or --enable-tests=no
|
||||
(or --enable-tools=no). Build time is reduced ~20% when tools are
|
||||
disabled, 35% when tests are disabled, 45% when both are disabled.
|
||||
Reenabling them after the initial build requires running configure
|
||||
again with the option(s) enabled.
|
||||
@ -240,7 +240,6 @@ New Features
|
||||
|
||||
(ADB - 2018/12/12, HDFVIEW-4)
|
||||
|
||||
|
||||
- Removed H5I_REFERENCE from the Java wrappers
|
||||
|
||||
This ID class was never used by the library and has been removed
|
||||
@ -251,7 +250,12 @@ New Features
|
||||
|
||||
Tools:
|
||||
------
|
||||
-
|
||||
- h5dump was fixed for 128-bit floats, but was missing a test.
|
||||
|
||||
New test greps for the first 15 numbers of the 128-bit value.
|
||||
|
||||
(ADB - 2019/06/23, HDFFV-9407)
|
||||
|
||||
|
||||
High-Level APIs:
|
||||
---------------
|
||||
@ -286,7 +290,7 @@ Bug Fixes since HDF5-1.10.3 release
|
||||
H5F_LIBVER_V18, the H5Ocopy() call will fail with the error stack indicating
|
||||
that the fill value version is out of bounds.
|
||||
|
||||
This was fixed by changing the fill value message version to H5O_FILL_VERSION_3
|
||||
This was fixed by changing the fill value message version to H5O_FILL_VERSION_3
|
||||
(from H5O_FILL_VERSION_2) for H5F_LIBVER_V18.
|
||||
|
||||
(VC - 2019/6/14, HDFFV-10800)
|
||||
|
@ -320,6 +320,7 @@
|
||||
${HDF5_TOOLS_DIR}/testfiles/tvlenstr_array.h5
|
||||
${HDF5_TOOLS_DIR}/testfiles/tvlstr.h5
|
||||
${HDF5_TOOLS_DIR}/testfiles/tvms.h5
|
||||
${HDF5_TOOLS_DIR}/testfiles/t128bit_float.h5
|
||||
${HDF5_TOOLS_DIR}/testfiles/zerodim.h5
|
||||
)
|
||||
set (HDF5_ERROR_REFERENCE_TEST_FILES
|
||||
@ -674,6 +675,32 @@
|
||||
endif ()
|
||||
endmacro ()
|
||||
|
||||
macro (ADD_H5_GREP_TEST resultfile resultcode result_check)
|
||||
if (NOT HDF5_ENABLE_USING_MEMCHECKER)
|
||||
# Remove any output file left over from previous test run
|
||||
add_test (
|
||||
NAME H5DUMP-${resultfile}-clear-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
${resultfile}.out
|
||||
${resultfile}.out.err
|
||||
)
|
||||
set_tests_properties (H5DUMP-${resultfile}-clear-objects PROPERTIES WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles/std")
|
||||
add_test (
|
||||
NAME H5DUMP-${resultfile}
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:h5dump${tgt_ext}>"
|
||||
-D "TEST_ARGS:STRING=${ARGN}"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/testfiles/std"
|
||||
-D "TEST_OUTPUT=${resultfile}.out"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_REFERENCE=${result_check}"
|
||||
-P "${HDF_RESOURCES_EXT_DIR}/grepTest.cmake"
|
||||
)
|
||||
set_tests_properties (H5DUMP-${resultfile} PROPERTIES DEPENDS "H5DUMP-${resultfile}-clear-objects")
|
||||
endif ()
|
||||
endmacro ()
|
||||
|
||||
macro (ADD_H5ERR_MASK_TEST resultfile resultcode result_errcheck)
|
||||
if (NOT HDF5_ENABLE_USING_MEMCHECKER)
|
||||
# Remove any output file left over from previous test run
|
||||
@ -1551,6 +1578,9 @@
|
||||
# test to verify HDFFV-10333: error similar to H5O_attr_decode in the jira issue
|
||||
ADD_H5_TEST (err_attr_dspace 1 err_attr_dspace.h5)
|
||||
|
||||
# test to verify HDFFV-9407: long double full precision
|
||||
ADD_H5_GREP_TEST (t128bit_float 1 "1.123456789012345" -m %.35Lf t128bit_float.h5)
|
||||
|
||||
##############################################################################
|
||||
### P L U G I N T E S T S
|
||||
##############################################################################
|
||||
|
BIN
tools/testfiles/t128bit_float.h5
Normal file
BIN
tools/testfiles/t128bit_float.h5
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user