Commit Graph

12185 Commits

Author SHA1 Message Date
Raymond Lu
3e8dc8cccc [svn-r20315] brought revisions 19868:20300 from the 1.8.6_vms branch to the trunk for VMS work 2011-03-24 13:33:45 -05:00
Allen Byrne
f960ff573e [svn-r20312] Change incorrect use of "struct stat" to use "h5_stat_t".
Also removed includes from top of file - they are included with proper config checks in h5private.h.
Changed name of Windows only gettimeofday function to avoid a define loop according to VS2008

Tested: local linux, windows
2011-03-24 12:21:42 -05:00
Allen Byrne
b2120ac993 [svn-r20310] Change incorrect use of "struct stat" to use "h5_stat_t". On windows, this used the wrong structure and caused crashes. Also removed includes from top of file - they are included with proper config checks in h5private.h.
Tested: local linux, windows
2011-03-24 10:32:58 -05:00
Allen Byrne
3c866e69a6 [svn-r20307] The TEST_REFERENCE EOL adjustment block needs to be included in the SKIP_COMPARE IF block 2011-03-24 08:30:29 -05:00
Allen Byrne
76abbdeff0 [svn-r20305] Add tests to h5import and 80% of h5jam
Tested: local linux
2011-03-23 16:23:11 -05:00
Jonathan Kim
4147de8d02 [svn-r20294] Purpose:
Fixed CHICAGO: Bug 2121 - h5diff - incorrect and lack of output for the 
    different set of attributes (different number and names)

Description:
    Previously h5diff compared attributes correctly only when two objects have 
    the same number of attributes and attribute names are identical.
    This fix covers all other cases.
    Also didn't display useful information about attribute difference.
    This fixes both issues.

     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
2011-03-22 10:47:07 -05:00
Jonathan Kim
f92d2371ff [svn-r20285] Purpose:
Improve the previous fix for Bug 2216 - GMQS: h5diff - memory leak when 
    compares vlen string in dataset or attributes

Description:
    Related to the previous checkin r20270 and r20266.
    Improve h5tools_detect_vlen() code for better performance. H5Tdetect_class
    already recusive on given type so don't need to be part of recusive call
    again. Also improve error handlings in h5tools_detect_vlen and 
    h5tools_detect_vlen_str functions.
    Also updated h5ls and h5dump code accordingly.

     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake - jam
2011-03-21 18:02:31 -05:00
Allen Byrne
0fcb094698 [svn-r20282] Corrected expected fail tests for use during valgrind 2011-03-19 10:54:12 -05:00
Jonathan Kim
f845e716bc [svn-r20274] Purpose:
Fixed Bug 2214 - GMQS: h5diff - memory leak in diff()

Description:
    Memory leaks occurred when accessing symbolic links with --follow-symlink
    option. 
    Test cases are in testing script. (400 - 456, 501 - 518)
    An example test : valgrind  --leak-check=full  h5diff --follow-symlinks -v h5diff_softlinks.h5 h5diff_softlinks.h5

     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake - jam
2011-03-18 15:13:16 -05:00
Jonathan Kim
d697acbfb5 [svn-r20270] Purpose:
Improve the previous fix for Bug 2216 - GMQS: h5diff - memory leak when 
    compares vlen string in dataset or attributes

Description:
    Improve the fix along with the previous checkin r20266.
    Add a new function to tool lib, h5tools_detect_vlen_data() which return 
    TRUE if include any kind of vlen data all at once, either VLEN-data or 
    VLEN-string and so on.
    Also updated h5ls and h5dump code accordingly.

     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake - jam
2011-03-18 13:50:19 -05:00
Allen Byrne
e038bf6eb7 [svn-r20267] Corrected expected fail tests for use during valgrind 2011-03-18 08:58:18 -05:00
Jonathan Kim
e8d97aef7d [svn-r20266] Purpose:
Fixed Bug 2216 - GMQS: h5diff - memory leak when compares vlen string in 
    dataset or attributes

Description:
    Test for dataset : valgrind  --leak-check=full  ./h5diff -v h5diff_dset1.h5 h5diff_dset2.h5 /g1/VLstring
    Test for attr : valgrind --leak-check=full ./h5diff h5diff_attr1.h5 h5diff_attr2.h5
    Both test cases are in testing script.

     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake - jam
2011-03-17 18:00:14 -05:00
Allen Byrne
e54ede0976 [svn-r20265] Cleanup due to project file syncing with 1.8 branch 2011-03-17 09:23:02 -05:00
Raymond Lu
ebd388882b [svn-r20262] In my previous checkin (20255), I used H5Gcreate instead of H5Gcreate2 in my test. I just corrected it
.

Tested on jam.
2011-03-16 15:08:34 -05:00
Allen Byrne
3134225d82 [svn-r20260] Windows compilers insist that variable declarations are before assignement statements 2011-03-16 14:18:59 -05:00
Allen Byrne
825047de52 [svn-r20257] Corect name of test in test property 2011-03-16 10:47:50 -05:00
Raymond Lu
00b1747297 [svn-r20255] Bug 2115 - add H5_VERSION_GE and H5_VERSION_LE macros. I added a new test case to show how to use them.
Tested on jam and amani.
2011-03-15 15:55:05 -05:00
Jonathan Kim
bebb6059f9 [svn-r20254] Description:
h5ls is used to verify for the result, so change the two tests not to run 
    h5diff like others.
    This is related to the previous checkin SVN r18398 for Bug#1733.

Tested:
    jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), cmake (jam)
2011-03-15 15:37:17 -05:00
Allen Byrne
ab74a291f7 [svn-r20252] Add comment that indicates a "2" in the resultcode param means "skip h5diff" component of test 2011-03-15 13:42:13 -05:00
Allen Byrne
34dd499cdb [svn-r20251] Correct expected fail tests to check a result code of NOT 0 2011-03-15 12:43:50 -05:00
Allen Byrne
82b64c5e97 [svn-r20250] Enable memcheck of h5stat and h5diff tools 2011-03-15 12:32:34 -05:00
Allen Byrne
b72157681c [svn-r20249] Add test properties to H5LS for expected fail
Add SKIPPED to test name if test skipped, also do not run skipped tests if doing memcheck
2011-03-15 12:28:18 -05:00
Allen Byrne
5ed4eda59e [svn-r20247] Change name of new VLEN function from H5Tdetect_vlen_str to h5tools_detect_vlen_str to match other functions in tools lib.
Added back test for H5Tdetect_class of H5T_VLEN after each instance of above function to catch all VLEN types in h5dump.

Tested: local linux
2011-03-14 16:03:20 -05:00
Allen Byrne
92f79b6734 [svn-r20243] Update CMake version to 2.8.4 2011-03-14 14:13:15 -05:00
Raymond Lu
9cfc4f8af3 [svn-r20241] Corrected an error in the comments for H5Oget_comment(_by_name) and H5G_loc_get_comment_cb: the return
value is the size of the comment excluding NULL terminator.

No test is needed.
2011-03-14 11:52:52 -05:00
Allen Byrne
ac3b230f0b [svn-r20239] Add HDFGroup to PACKAGE_NAME, as parent folder name for CPack installation configuration. 2011-03-14 11:49:31 -05:00
Jonathan Kim
af499b53eb [svn-r20231] Purpose:
Fixed Bug 1904 - h5ls : usage of '-a' option is not clear to display expected output

Description:
    Fixed incorrect content and improved help page for -a option of h5ls.
     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), Cmake (jam)
2011-03-11 10:48:24 -05:00
Allen Byrne
6182661d91 [svn-r20228] Add tools bin folder to installation variables 2011-03-10 16:12:42 -05:00
Albert Cheng
35e5cce530 [svn-r20226] Entered known problem of --with-mpe does not work with mpich2. 2011-03-10 14:11:02 -05:00
Allen Byrne
3a2d132d79 [svn-r20224] Add enable-error-stack option to new features-tools section.
Enable h5stat tests for valgrind testing.
2011-03-10 08:54:21 -05:00
Peter Cao
d9f4633983 [svn-r20223] Adding notes for fixing h5dump bug on -y -o options. 2011-03-10 08:38:42 -05:00
Allen Byrne
1eedd5b750 [svn-r20222] Correct mistake by declaring indexing variable removed from for at top of function. 2011-03-10 08:27:29 -05:00
Allen Byrne
55cd5326f3 [svn-r20221] Remove rougue 'int' inside for loop (cut-paste error) - windows complained. 2011-03-10 07:10:36 -05:00
Quincey Koziol
c956c2f03b [svn-r20219] Description:
Tell the VFL flush call that the file will be closing, allowing
the VFDs to avoid sync'ing the file (particularly valuable in parallel).

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
                w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
                w/C++ & FORTRAN, in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                w/szip filter, w/threadsafe, in production mode
        Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
2011-03-09 21:56:55 -05:00
Allen Byrne
0ff7a2d6e8 [svn-r20218] Valgrind fix for memory leak in print_datatype which used an allocation function in a printf().
Tested: local linux and valgrind
2011-03-09 16:12:04 -05:00
Allen Byrne
a76a2e1620 [svn-r20217] Valgrind indicated error in reading past end of buffer.
Tested: local linux and valgrind
2011-03-09 15:31:39 -05:00
Allen Byrne
5b3223c7c5 [svn-r20216] Valgrind fix for memory leak in h5tools_dump_xxx which is fixed by adding a new function;
htri_t H5Tdetect_vlen_str(hid_t tid) to h5tools. This needs to be called before any H5Aread/H5Dread and if TRUE, then call vlen_reclaim function after the corresponding h5tools_dump_xxx().

Tested: local linux and valgrind
2011-03-09 15:00:20 -05:00
Allen Byrne
2a492f23a1 [svn-r20211] Valgrind indicated error in writing past buffer. Contary to ref man H5O_get_comment does not return null char in size.
Tested: local linux and valgrind
2011-03-09 10:49:46 -05:00
Peter Cao
d97523f47c [svn-r20209] add test case for -y -o for h5dump 2011-03-09 10:09:53 -05:00
Allen Byrne
a60f8c8f5e [svn-r20208] Valgrind fix for memory leak in free_tables - 2nd malloc was freed by free_table calls but not the first malloc. Added HDfree('table') after each free_table() call.
Tested: local linux and valgrind
2011-03-09 08:57:41 -05:00
Peter Cao
10aa3f98d6 [svn-r20207] removed duplicate line. 2011-03-09 08:44:24 -05:00
Peter Cao
a56b49aaba [svn-r20206] Updated manifest and source code for fixing h5dump -y -o problem 2011-03-09 08:07:38 -05:00
Jonathan Kim
b22867e42b [svn-r20205] Add tall-6.ddl from previous commit r20204.
Test file for Bug 2183 - h5dump -y -o prints out attribute values
2011-03-08 17:46:34 -05:00
Peter Cao
869a942926 [svn-r20204] Add test case for check -y -o options 2011-03-08 17:11:39 -05:00
Jonathan Kim
8245bf1572 [svn-r20203] Purpose:
Fix Bug 2120 - h5copy: improve to copy an object into same HDF file

Description:
    Before the fix users can't copy an object (dataset or group) with 
    different name if input file (-i) and output file (-o) is same.   
    This feature would be useful to clone any object with different name and 
    reuse contents.
     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake (jam)
2011-03-08 15:17:17 -05:00
Allen Byrne
9d115d89f2 [svn-r20202] Correct order of tests DEPENDS 2011-03-08 15:03:14 -05:00
Allen Byrne
1a12719753 [svn-r20201] Order fflush tests - fflush2 DEPENDS on fflush1 2011-03-08 14:50:51 -05:00
Allen Byrne
233d0574aa [svn-r20200] Add expected fail condition to memcheck alternate tests. 2011-03-08 14:42:50 -05:00
Allen Byrne
fe660a8da4 [svn-r20197] Change test macro to allow control of infile and outfile parameters 2011-03-08 10:11:02 -05:00
Scot Breitenfeld
6d350b4112 [svn-r20195] Description: Fixed memory leaks (valgrind detected) in field_info and make tables routines.
Tested: jam (gnu and intel compilers)
2011-03-07 10:13:51 -05:00