Commit Graph

193 Commits

Author SHA1 Message Date
Jonathan Kim
7a6f281a8b [svn-r21237] Description:
Add test cases for HDFFV-7656 - "--delta=something" considers two NaN of the same type are different.
  The fix was added (r21105) before but test cases were incorrectly added and missing for cmake script.

Tested:
  jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), cmake
2011-08-16 17:40:36 -05:00
Jonathan Kim
5e69ec06ff [svn-r21072] Purpose:
Work for HDFFV-7600 - GMQS: h5diff - argument options -d, -p and --use-system-epsilon should be mutually exclusive.

Description:
    Fixed h5diff to display instructive error message and exit with 1
    when mutually exclusive options (-d, -p and --use-system-epsilon)
    are used together.

Tested:
    jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake (jam)
2011-07-07 18:12:51 -05:00
Allen Byrne
de14c332f9 [svn-r20903] Removed PACKED_BITS check to match removal of option in code 2011-05-25 10:17:53 -05:00
Jonathan Kim
170e7e53a5 [svn-r20676] Purpose:
- HDFFV-5928 - GMQS: h5diff problem and improvement on comparsing the same objects

Description:
    Fixed:
    1) adding h5tools_is_obj_same() function to check if two given IDs or paths point to the same object. This function can be very useful for other tools and applications.
    2) using h5tools_is_obj_same() at h5diff() and diff() in h5diff.c. If two paths point to the same object, there is no need to check the details of the object since we know there is no difference. The fix will increase the performance by skipping the content comparison. It also fixed the problem of reporting difference for some cases of comparing the same file, e.g. empty files or files with incomparable objects the same file.

    Test update:
    Updat prvious test cases (171, 172, 530) affected by this fix, so they
    still perfrom originally intended testing without bypassing.

Tested:
 jam (linux32-LE), koala (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), cmake
2011-04-29 12:02:31 -05:00
Jonathan Kim
553e452ce4 [svn-r20384] Purpose:
Fixed Bug 2184 - GMQS: h5diff - incorrect calculation code for 
    --use-system-epsilon option

Description:
    Merged from HDF5 1.8 branch r20369.
    Fixed h5diff for --use-system-epsilon option: the calculation changed
    from ( |a - b| / b ) to ( |a - b| ). This was decided for better 
    performance and was corrected only in HDF5 trunk, so 1.8 got updated.
    Also comments for equal_XXX() function were updated correctly. 
    Also help page and RM got updated correctly.
    Also add test cases for testing the differences w/wo the option.

     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Windows (32-LE)
2011-03-31 16:43:46 -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
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
5d320f5c89 [svn-r20141] Bring 1.8 r20139 cmake and windows changes to trunk 2011-02-22 09:55:04 -05:00
Jonathan Kim
cf7f31f0c6 [svn-r20132] Purpose:
Fixing Bug 2092 - h5dump does not display index for a dataset

Description:
    improve the test case from previous checkin r20108, which also display 
    dataset via region reference.
    Previous Log:
    h5dump skip displaying array indices every certain number when the 
    array type dataset is relatively big. The certain number varies 
    according to the size of each array. 
    This checkin fix the skipping array indices problem. This fix also
    correct indentation of the dataset data output.
     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake - jam
2011-02-21 16:53:36 -05:00
Jonathan Kim
bb294c2b1e [svn-r20108] Purpose:
Fixing Bug 2092 - h5dump does not display index for a dataset

Description:
    h5dump skip displaying array indices every certain number when the 
    array type dataset is relatively big. The certain number varies 
    according to the size of each array. 
    This checkin fix the skipping array indices problem. This fix also
    correct indentation of the dataset data output.
     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
2011-02-15 14:28:48 -05:00
Jonathan Kim
64651d6954 [svn-r19971] Purpose:
h5dump: add dangling external link test case as part of Chicago project.

Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
2011-01-21 13:29:56 -05:00
Allen Byrne
0ffd938eae [svn-r19936] Add new signed/unsigned test to legacy test script 2011-01-10 08:52:38 -05:00
Jonathan Kim
40b3a8dee9 [svn-r19751] Purpose:
Fixed Bug# 1979 Output from h5ls -rdlS on nested compound datatypes is 
    difficult to parse.

Description:
    Update to add curly brackets for the nested compound members, when
    S (--simple) option is used with -l (--label), so user can tell 
    which members blong to which compound type.


Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32)
2010-11-09 16:13:53 -05:00
Jonathan Kim
e45cfcb9ee [svn-r19712] Purpose:
Fixed h5diff to handle variable-length strings in a compound dataset 
    correctly. Also variable-length string array in a compound dataset.
    Bug #1989.
    

Description:
    Garbage values were displayed when h5diff compared variable-length 
    strings (or string array) in a compound type dataset. 


Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (Mac32)
2010-11-02 11:39:42 -05:00
Jonathan Kim
eb059764bb [svn-r19628] Because h5diff fix (bug1975) which can compare groups recursively, h5copy diff tests no longer should fail. 2010-10-18 16:40:56 -05:00
Jonathan Kim
ba71366f98 [svn-r19447] Fix for Windows legacy test added for 1890 h5diff exclude-path 2010-09-21 09:17:26 -05:00
Jonathan Kim
04a7315138 [svn-r19443] Purpose:
Fix for group comparison with exclude-path case. Use relative path.

Description:
 Related to "1890:  h5diff excluding object for file comparison via command line" checkins. (r19406)

Tested:
 jam, amani and heiwa
2010-09-20 17:11:50 -05:00
Allen Byrne
47ef939ba6 [svn-r19430] Update to H5REPACK tests for layout info required a new function in batch file
Tested: Windows
2010-09-20 11:36:45 -05:00
Jonathan Kim
0396ee557b [svn-r19425] Fix for legay Windows test for h5diff updates. 2010-09-20 10:18:12 -05:00
Jonathan Kim
a436e41203 [svn-r19409] Purpose:
Add extra test cases for bug1975 h5diff - support recursive comparison on group when specified as an object.

Description:
 Additional tests for combination of group recursive and --follow-symlinks 
 with multi-linked external links with several files (same name/strucure).

Tested:
 jam, amani, heiwa
2010-09-16 18:58:35 -05:00
Jonathan Kim
eb7b5b2cef [svn-r19406] Purpose:
Add --exclude-path option

Description:
 Specified path to an object will be excluded from comparing the two files or two groups. If group is specified all the member objects will be excluded.
 Related to "1890:  h5diff excluding object for file comparison via command line"

Tested:
 jam, amani and heiwa
2010-09-16 16:46:16 -05:00
Jonathan Kim
c561dc7183 [svn-r19400] Purpose:
Fix for Bug1975 h5diff - support recursive comparison on group when specified as an object

Description:
 Compare member objects and groups recursively when two files or groups are specified to be compared. Support parallel diff and handling symbolic links accordingly.

Tested:
 jam, amani, heiwa
2010-09-16 12:48:06 -05:00
Jonathan Kim
af749bafb7 [svn-r19051] Purpose:
Add --no-dangling-links option to h5ls. 

Description:
Related to "Bug 1830 - Following an dangling external link in h5ls should set non-zero return code."
If --no-dangling-links option is specified and any dangling link is found, return exit code 1 (error).

Tested:
 jam, amani and heiwa
2010-07-07 13:52:04 -05:00
Jonathan Kim
4c6738388e [svn-r18947] Purpose:
Update Windows testing for h5ls according to the updates for 
    Support follow symbolic links.

Description:
    Sync with hdf5 trunk SVN r18943
2010-06-02 15:17:47 -05:00
Allen Byrne
00d38d62f7 [svn-r18877] Update testh5diff.bat for --follow-symlinks change
Tested:  windows
2010-05-21 16:46:36 -05:00
Allen Byrne
616e1be117 [svn-r18675] Updated scripts for H5copy r18398 and H5ls r18642 2010-04-29 17:05:47 -05:00
Allen Byrne
efb94f8949 [svn-r18430] Add windows define BIND_TO_CURRENT_VCLIBS_VERSION=1 to project files.
Corrected copy H5srcdir_str.h commands in script.
Added libsettings project to behave like h5tinit.vcproj.
2010-03-19 09:48:49 -05:00
Quincey Koziol
1809f040c9 [svn-r18419] Description:
Clean up srcdir querying code more, extracting it into single header file,
to avoid compiler warnings.

Tested on:
    Mac OS X/32 10.6.2 (amazon) w/debug & prod
    Linux/32 2.6 (jam)
2010-03-18 07:23:04 -05:00
Quincey Koziol
cd2534d9ba [svn-r18418] Description:
Centralize common code for srcdir lookups.

Tested on:
    Mac OS X/32 10.6.2 (amazon) w/debug & prod
    Linux/32 2.6 (jam)
2010-03-18 07:04:39 -05:00
Quincey Koziol
0ac03c7890 [svn-r18414] Description:
Add copyright to new files
2010-03-17 16:48:09 -05:00
Quincey Koziol
fd547cd11f [svn-r18413] Description:
Unify srcdir handling for test executables and allow them to use the srcdir
setting from configure time without requiring the 'srcdir' environment variable
be set (although you still can, to override the built in setting).  Attempted
to get this right for Windows builds also.

    Also add dependency between src/H5Tinit.c and src/libhdf5.settings, so
that the test/testcheck_version.sh script works correctly.

Tested on:
    Linux/32 2.6 (jam)
    Mac OS X/32 10.6.2 (amazon)
2010-03-17 16:38:20 -05:00
Allen Byrne
ef844be70d [svn-r18360] Updated project files and release docs to VS2008 and IVF101 based.
Made change to cpp version of testhdf5 for the elimination of dsets standalone.

Tested: Windows
2010-03-03 15:20:16 -05:00
Allen Byrne
8a6d2e02be [svn-r18325] Updated test script to match *nix shell script.
Tested: windows
2010-02-23 16:18:41 -05:00
Allen Byrne
525f639a91 [svn-r18322] Updated test script to match *nix shell script.
Tested: windows
2010-02-23 16:06:35 -05:00
Allen Byrne
28a9bf5f47 [svn-r18317] Updated test script to match *nix shell script. Also corrected 629 file exit code 2010-02-23 14:02:27 -05:00
Allen Byrne
5d27012937 [svn-r17726] Updated the errorlevel checking for better error handling in the windows batch files. 2009-10-22 16:23:59 -05:00
Allen Byrne
b0883a206f [svn-r17494] Added missing test for display buffer resize. 2009-09-17 15:57:51 -05:00
Allen Byrne
b19d0fb868 [svn-r17478] Update Windows project file for test refactored out of tools lib.
Tested: Windows
2009-09-14 17:03:53 -05:00
Allen Byrne
5a5ca3f12c [svn-r17471] Corrected use of _DEBUG preprocessor value in release configurations of hdf5_f90cstubdll.vcproj
Corrected debug configuration of examples project file
Updated windows batch file to match the testh5diff.sh script change in rev 17466.

Tested: windows
2009-09-11 17:13:56 -05:00
Allen Byrne
cf421eaa74 [svn-r17373] Added new file to library project.
Also removed unused project settings. These were per file settings that should not be used unless a file needs them.

Tested: Windows
2009-08-18 09:56:54 -05:00
Allen Byrne
8d1ccbfd44 [svn-r17287] Added the two infinity tests to the windows batch script to match the linux test script. 2009-07-31 13:26:59 -05:00
Allen Byrne
5e8d84b421 [svn-r17056] Rev 17052 added new test to h5repack test script, which requires that the windows batch file be updated.
Tested: Windows XP32
2009-06-16 11:46:34 -05:00
Scott Wegner
b8036fc5f6 [svn-r16806] Purpose: Add new h5repack tests to Windows
Description:
Three new tests were added to the h5repack test script in rev.16802.  This checkin brings those new tests to Windows as well.

Tested:
VS2005 on WinXP x64
2009-04-20 13:24:28 -05:00
Allen Byrne
e6f83cf57e [svn-r16666] Added h5tools.h to h5difftst.vcproj.
Added new test to h5repack.bat.

Tested on XP32-VS2005-IVF101
2009-04-03 16:31:19 -05:00
Allen Byrne
d75cd486e1 [svn-r16521] Changed windows batch file due r16518. As all windows OS are always LE on all platforms, simply added le to the two locations where these files are used.
Tested:
Vista 32 VS2008
2009-02-26 16:33:31 -05:00
Allen Byrne
6b0bf98d32 [svn-r16469] Added new cases for compound types to batch file per the updated script file of rev #16461
Tested:
   Vista32, XP64 - VS2005, VS2008
2009-02-11 17:16:22 -05:00
Allen Byrne
b99ed1e18f [svn-r16442] Update windows batch file to match *nix script due to rev 16351
Tested:
 XP 32 VNET, XP64 VS2008
2009-02-05 13:49:24 -05:00
Allen Byrne
9ada07ef3a [svn-r16412] testh5ls.bat - added tests to match script file from rev 16310
h5repack.bat - added test to match script file from rev 16402
set_extent.vcproj - added WS2_32.lib for change to set_extent from rev 16406
h5pubconf.h - added C99 undef to sync with *nix configuration

Tested:
 Vista32, XP32, XP64 using VNET, VS2005 VS2008
2009-02-03 16:38:14 -05:00
Scott Wegner
b3b538cf58 [svn-r16084] Purpose: Update Windows tool test scripts
Description: Bring changes from the various tool test scripts to Windows.

testh5copy.bat: add syntax for tests which expect h5diff to fail, and apply them to existing tests
testh5diff.bat: add a new test for "contents mode"
testh5dump.bat: modify some tests to use the new "-b *" and "-b NATIVE" syntax
h5repack.bat: call h5dump without the -c switch

Tested:
VS2005 on WinXP
2008-11-17 14:12:14 -05:00
Scott Wegner
59309308f1 [svn-r15904] Purpose: Add new h5dump test to Windows
Description:
Two new test cases for h5dump were recently added to the test script on Unix.  This checkin also adds the new cases to Windows.

Tested:
VS2005 on WinXP
2008-10-20 09:56:01 -05:00