mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-15 07:40:23 +08:00
Merge pull request #614 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_10 to hdf5_1_10
* commit 'fe0ca45e13960fca175c4cea75b6239bf79161a6': Parallel needs copy of file in PAR folder Insure zip_perf program does not run concurrently Add check for plugin initialize HDFFV-10246 Fix vl string compare in h5diff
This commit is contained in:
commit
91542d4ef7
1
MANIFEST
1
MANIFEST
@ -2399,6 +2399,7 @@
|
|||||||
./tools/test/h5diff/testfiles/h5diff_udfail.txt
|
./tools/test/h5diff/testfiles/h5diff_udfail.txt
|
||||||
./tools/test/h5diff/testfiles/diff_strings1.h5
|
./tools/test/h5diff/testfiles/diff_strings1.h5
|
||||||
./tools/test/h5diff/testfiles/diff_strings2.h5
|
./tools/test/h5diff/testfiles/diff_strings2.h5
|
||||||
|
./tools/test/h5diff/testfiles/h5diff_vlstr.txt
|
||||||
#vds
|
#vds
|
||||||
./tools/test/h5diff/testfiles/h5diff_v1.txt
|
./tools/test/h5diff/testfiles/h5diff_v1.txt
|
||||||
./tools/test/h5diff/testfiles/h5diff_v2.txt
|
./tools/test/h5diff/testfiles/h5diff_v2.txt
|
||||||
|
@ -225,6 +225,15 @@ Bug Fixes since HDF5-1.10.0-patch1 release
|
|||||||
|
|
||||||
Tools
|
Tools
|
||||||
-----
|
-----
|
||||||
|
- h5diff
|
||||||
|
|
||||||
|
h5diff segfaulted on compare of a NULL variable length string.
|
||||||
|
|
||||||
|
Improved h5diff compare of strings by adding a check for
|
||||||
|
NULL strings and setting the lengths to zero.
|
||||||
|
|
||||||
|
(ADB - 2017/07/25, HDFFV-10246)
|
||||||
|
|
||||||
- h5repack
|
- h5repack
|
||||||
|
|
||||||
h5repack did not maintain the creation order flag of the root
|
h5repack did not maintain the creation order flag of the root
|
||||||
|
@ -733,7 +733,10 @@ test_filter_path_apis(void)
|
|||||||
|
|
||||||
if(H5Zfilter_avail(H5Z_FILTER_DYNLIB1) != TRUE) TEST_ERROR
|
if(H5Zfilter_avail(H5Z_FILTER_DYNLIB1) != TRUE) TEST_ERROR
|
||||||
|
|
||||||
|
TESTING(" initialize");
|
||||||
H5PLsize(&ndx);
|
H5PLsize(&ndx);
|
||||||
|
if(ndx!=2) TEST_ERROR
|
||||||
|
PASSED();
|
||||||
|
|
||||||
TESTING(" remove");
|
TESTING(" remove");
|
||||||
/* Remove all existing paths*/
|
/* Remove all existing paths*/
|
||||||
|
@ -673,21 +673,33 @@ static hsize_t diff_datum(void *_mem1,
|
|||||||
h5difftrace("diff_datum H5T_STRING variable\n");
|
h5difftrace("diff_datum H5T_STRING variable\n");
|
||||||
/* Get pointer to first string */
|
/* Get pointer to first string */
|
||||||
s1 = *(char**) mem1;
|
s1 = *(char**) mem1;
|
||||||
|
if(s1)
|
||||||
size1 = HDstrlen(s1);
|
size1 = HDstrlen(s1);
|
||||||
|
else
|
||||||
|
size1 = 0;
|
||||||
/* Get pointer to second string */
|
/* Get pointer to second string */
|
||||||
s2 = *(char**) mem2;
|
s2 = *(char**) mem2;
|
||||||
|
if(s2)
|
||||||
size2 = HDstrlen(s2);
|
size2 = HDstrlen(s2);
|
||||||
|
else
|
||||||
|
size2 = 0;
|
||||||
}
|
}
|
||||||
else if (H5T_STR_NULLTERM == pad) {
|
else if (H5T_STR_NULLTERM == pad) {
|
||||||
h5difftrace("diff_datum H5T_STRING null term\n");
|
h5difftrace("diff_datum H5T_STRING null term\n");
|
||||||
/* Get pointer to first string */
|
/* Get pointer to first string */
|
||||||
s1 = (char*) mem1;
|
s1 = (char*) mem1;
|
||||||
|
if(s1)
|
||||||
size1 = HDstrlen(s1);
|
size1 = HDstrlen(s1);
|
||||||
|
else
|
||||||
|
size1 = 0;
|
||||||
if (size1 > size_mtype)
|
if (size1 > size_mtype)
|
||||||
size1 = size_mtype;
|
size1 = size_mtype;
|
||||||
/* Get pointer to second string */
|
/* Get pointer to second string */
|
||||||
s2 = (char*) mem2;
|
s2 = (char*) mem2;
|
||||||
|
if(s2)
|
||||||
size2 = HDstrlen(s2);
|
size2 = HDstrlen(s2);
|
||||||
|
else
|
||||||
|
size2 = 0;
|
||||||
if (size2 > size_mtype)
|
if (size2 > size_mtype)
|
||||||
size2 = size_mtype;
|
size2 = size_mtype;
|
||||||
}
|
}
|
||||||
|
@ -95,6 +95,8 @@
|
|||||||
${HDF5_TOOLS_DIR}/testfiles/vds/5_b.h5
|
${HDF5_TOOLS_DIR}/testfiles/vds/5_b.h5
|
||||||
${HDF5_TOOLS_DIR}/testfiles/vds/5_c.h5
|
${HDF5_TOOLS_DIR}/testfiles/vds/5_c.h5
|
||||||
${HDF5_TOOLS_DIR}/testfiles/vds/5_vds.h5
|
${HDF5_TOOLS_DIR}/testfiles/vds/5_vds.h5
|
||||||
|
# tools/testfiles
|
||||||
|
${HDF5_TOOLS_DIR}/testfiles/tvlstr.h5
|
||||||
)
|
)
|
||||||
|
|
||||||
set (LIST_OTHER_TEST_FILES
|
set (LIST_OTHER_TEST_FILES
|
||||||
@ -286,6 +288,7 @@
|
|||||||
${HDF5_TOOLS_TEST_H5DIFF_SOURCE_DIR}/testfiles/h5diff_v1.txt
|
${HDF5_TOOLS_TEST_H5DIFF_SOURCE_DIR}/testfiles/h5diff_v1.txt
|
||||||
${HDF5_TOOLS_TEST_H5DIFF_SOURCE_DIR}/testfiles/h5diff_v2.txt
|
${HDF5_TOOLS_TEST_H5DIFF_SOURCE_DIR}/testfiles/h5diff_v2.txt
|
||||||
${HDF5_TOOLS_TEST_H5DIFF_SOURCE_DIR}/testfiles/h5diff_v3.txt
|
${HDF5_TOOLS_TEST_H5DIFF_SOURCE_DIR}/testfiles/h5diff_v3.txt
|
||||||
|
${HDF5_TOOLS_TEST_H5DIFF_SOURCE_DIR}/testfiles/h5diff_vlstr.txt
|
||||||
)
|
)
|
||||||
|
|
||||||
set (LIST_WIN_TEST_FILES
|
set (LIST_WIN_TEST_FILES
|
||||||
@ -311,6 +314,11 @@
|
|||||||
HDFTEST_COPY_FILE("${h5_tstfiles}" "${PROJECT_BINARY_DIR}/PAR/testfiles/${fname}" "h5diff_files")
|
HDFTEST_COPY_FILE("${h5_tstfiles}" "${PROJECT_BINARY_DIR}/PAR/testfiles/${fname}" "h5diff_files")
|
||||||
endif ()
|
endif ()
|
||||||
endforeach ()
|
endforeach ()
|
||||||
|
# copy second version of tvlstr.h5
|
||||||
|
HDFTEST_COPY_FILE("${HDF5_TOOLS_DIR}/testfiles/tvlstr.h5" "${PROJECT_BINARY_DIR}/testfiles/tvlstr2.h5" "h5diff_files")
|
||||||
|
if (H5_HAVE_PARALLEL)
|
||||||
|
HDFTEST_COPY_FILE("${HDF5_TOOLS_DIR}/testfiles/tvlstr.h5" "${PROJECT_BINARY_DIR}/PAR/testfiles/tvlstr2.h5" "h5diff_files")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -888,6 +896,8 @@
|
|||||||
h5diff_v2.out.err
|
h5diff_v2.out.err
|
||||||
h5diff_v3.out
|
h5diff_v3.out
|
||||||
h5diff_v3.out.err
|
h5diff_v3.out.err
|
||||||
|
h5diff_vlstr.out
|
||||||
|
h5diff_vlstr.out.err
|
||||||
)
|
)
|
||||||
set_tests_properties (H5DIFF-clearall-objects PROPERTIES WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles")
|
set_tests_properties (H5DIFF-clearall-objects PROPERTIES WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/testfiles")
|
||||||
if (NOT "${last_test}" STREQUAL "")
|
if (NOT "${last_test}" STREQUAL "")
|
||||||
@ -1465,6 +1475,7 @@ ADD_H5_TEST (h5diff_487 1 -v --exclude-path "/group1/dset" h5diff_exclude3-1.h5
|
|||||||
# # diff various multiple vlen and fixed strings in a compound type dataset
|
# # diff various multiple vlen and fixed strings in a compound type dataset
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
ADD_H5_TEST (h5diff_530 0 -v ${COMP_VL_STRS_FILE} ${COMP_VL_STRS_FILE} /group /group_copy)
|
ADD_H5_TEST (h5diff_530 0 -v ${COMP_VL_STRS_FILE} ${COMP_VL_STRS_FILE} /group /group_copy)
|
||||||
|
ADD_H5_TEST (h5diff_vlstr 0 -v tvlstr.h5 tvlstr2.h5)
|
||||||
|
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
# # Test container types (array,vlen) with multiple nested compound types
|
# # Test container types (array,vlen) with multiple nested compound types
|
||||||
|
16
tools/test/h5diff/testfiles/h5diff_vlstr.txt
Normal file
16
tools/test/h5diff/testfiles/h5diff_vlstr.txt
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
file1 file2
|
||||||
|
---------------------------------------
|
||||||
|
x x /
|
||||||
|
x x /Dataset1
|
||||||
|
x x /vl_string_type
|
||||||
|
|
||||||
|
group : </> and </>
|
||||||
|
0 differences found
|
||||||
|
attribute: <test_scalar of </>> and <test_scalar of </>>
|
||||||
|
0 differences found
|
||||||
|
dataset: </Dataset1> and </Dataset1>
|
||||||
|
0 differences found
|
||||||
|
datatype: </vl_string_type> and </vl_string_type>
|
||||||
|
0 differences found
|
||||||
|
EXIT CODE: 0
|
@ -124,6 +124,7 @@ $SRC_H5DIFF_TESTFILES/tmpSingleSiteBethe.reference.h5
|
|||||||
$SRC_H5DIFF_TESTFILES/tmpSingleSiteBethe.output.h5
|
$SRC_H5DIFF_TESTFILES/tmpSingleSiteBethe.output.h5
|
||||||
$SRC_H5DIFF_TESTFILES/diff_strings1.h5
|
$SRC_H5DIFF_TESTFILES/diff_strings1.h5
|
||||||
$SRC_H5DIFF_TESTFILES/diff_strings2.h5
|
$SRC_H5DIFF_TESTFILES/diff_strings2.h5
|
||||||
|
$SRC_TOOLS_TESTFILES/tvlstr.h5
|
||||||
"
|
"
|
||||||
|
|
||||||
LIST_HDF5_VDS_TEST_FILES="
|
LIST_HDF5_VDS_TEST_FILES="
|
||||||
@ -341,6 +342,7 @@ $SRC_H5DIFF_TESTFILES/h5diff_tmp2.txt
|
|||||||
$SRC_H5DIFF_TESTFILES/h5diff_v1.txt
|
$SRC_H5DIFF_TESTFILES/h5diff_v1.txt
|
||||||
$SRC_H5DIFF_TESTFILES/h5diff_v2.txt
|
$SRC_H5DIFF_TESTFILES/h5diff_v2.txt
|
||||||
$SRC_H5DIFF_TESTFILES/h5diff_v3.txt
|
$SRC_H5DIFF_TESTFILES/h5diff_v3.txt
|
||||||
|
$SRC_H5DIFF_TESTFILES/h5diff_vlstr.txt
|
||||||
"
|
"
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -566,6 +568,8 @@ SKIP() {
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
# prepare for test
|
# prepare for test
|
||||||
COPY_TESTFILES_TO_TESTDIR
|
COPY_TESTFILES_TO_TESTDIR
|
||||||
|
# second copy of tvlstr.h5
|
||||||
|
$CP -f $SRC_TOOLS_TESTFILES/tvlstr.h5 $TESTDIR/tvlstr2.h5
|
||||||
|
|
||||||
# ############################################################################
|
# ############################################################################
|
||||||
# # Common usage
|
# # Common usage
|
||||||
@ -1141,6 +1145,7 @@ TOOLTEST h5diff_487.txt -v --exclude-path "/group1/dset" h5diff_exclude3-1.h5 h5
|
|||||||
# # diff various multiple vlen and fixed strings in a compound type dataset
|
# # diff various multiple vlen and fixed strings in a compound type dataset
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
TOOLTEST h5diff_530.txt -v h5diff_comp_vl_strs.h5 h5diff_comp_vl_strs.h5 /group /group_copy
|
TOOLTEST h5diff_530.txt -v h5diff_comp_vl_strs.h5 h5diff_comp_vl_strs.h5 /group /group_copy
|
||||||
|
TOOLTEST h5diff_vlstr.txt -v tvlstr.h5 tvlstr2.h5
|
||||||
|
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
# # Test container types (array,vlen) with multiple nested compound types
|
# # Test container types (array,vlen) with multiple nested compound types
|
||||||
|
@ -146,6 +146,7 @@ else ()
|
|||||||
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
||||||
)
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
set_tests_properties (PERFORM_zip_perf PROPERTIES DEPENDS PERFORM_zip_perf_help)
|
||||||
|
|
||||||
if (H5_HAVE_PARALLEL)
|
if (H5_HAVE_PARALLEL)
|
||||||
add_test (NAME PERFORM_h5perf COMMAND ${MPIEXEC} ${MPIEXEC_PREFLAGS} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_POSTFLAGS} $<TARGET_FILE:h5perf>)
|
add_test (NAME PERFORM_h5perf COMMAND ${MPIEXEC} ${MPIEXEC_PREFLAGS} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_POSTFLAGS} $<TARGET_FILE:h5perf>)
|
||||||
|
Loading…
Reference in New Issue
Block a user