Commit Graph

83 Commits

Author SHA1 Message Date
Pedro Vicente Nunes
4cb6c01d7f [svn-r8904] Purpose:
h5diff and h5repack changes

Description:
h5diff
introduced the following four modes of output:
 Normal mode: print the number of differences found and where they occured
  Report mode: print the above plus the differences
   Verbose mode: print the above plus a list of objects and warnings
    Quiet mode: do not print output (h5diff always returns an exit code of 1 when differences are found)

    h5repack
     added an extra parameter for SZIP filter (coding method)
     the new syntax is
     -f SZIP=<pixels per block,coding>
     (pixels per block is a even number in 2-32 and coding method is 'EC' or 'NN')
     Example of use:
     ./h5repack -i file1 -o file2 -f SZIP=8,NN -v

     updated usage messages, test scripts and files accordingly




Solution:

Platforms tested:
linux
AIX
solaris

Misc. update:
2004-07-20 14:21:03 -05:00
Raymond Lu
dd03ef3f27 [svn-r8581] Purpose: new test
Description:  Add test of null dataspace for dataset and attribute in h5repack.


Platforms tested:  RH8(fuss).  Simple change, only h5repack is involved.
2004-05-26 14:43:42 -05:00
Raymond Lu
8ea1793569 [svn-r8578] Purpose: new test
Description:  Add null dataspace test for dataset and attribute to h5diff


Platforms tested:  RH 8(fuss).  Simple change, only h5diff is involved.
2004-05-26 10:46:19 -05:00
Quincey Koziol
583bdf994c [svn-r8495] Purpose:
Bug fixes

Description:
    Updated dependencies

    Fixed error with C++ compiler builds of main library

    Added H5Pset_data_transform to MPE info

Platforms tested:
    FreeBSD 4.9 (sleipnir)
2004-05-08 09:48:42 -05:00
Quincey Koziol
0a29514b9d [svn-r8383] Purpose:
Code cleanup

Description:
    Clean up lots of warnings based on those reported from the SGI compilers
as well as gcc.

Platforms tested:
    SGI O3900, IRIX64 6.5 (Cheryl's SGI machine)
    FreeBSD 4.9 (sleipnir) w/ & w/o parallel
    h5committest
2004-04-17 23:10:09 -05:00
Pedro Vicente Nunes
8eb5f818ba [svn-r8286] Purpose:
bug fix continuation

Description:
the atof return value on a hexadecimal input is different
 on some systems; before checking for the atof return value
 do  a character check for the first 2 characters of the string input



Solution:

Platforms tested:
linux
solaris

Misc. update:
2004-03-29 11:53:52 -05:00
Pedro Vicente Nunes
2e44c48936 [svn-r8283] Purpose:
bug fix (sort of)

Description:
apparently linux and other systems (solaris) return a different value from atof if the
argument is in  hexadecimal .
this return value was used to test if the argument to -p and -d was a valid floating point
number
for now , commented the calls in the script with -p <hexa> until we find a portable solution

Solution:

Platforms tested:
linux
solaris
windows

Misc. update:
2004-03-26 11:20:48 -05:00
Pedro Vicente Nunes
1b008c03aa [svn-r8282] Purpose:
bug fix

Description:
the -p option was not parsing correctly if the input was in the exponential format

Solution:
add a new parse test for floating point numbers

Platforms tested:
linux

Misc. update:
2004-03-25 15:27:47 -05:00
Pedro Vicente Nunes
a9c0f6f616 [svn-r8226] Purpose:
removed a print of a new line

Description:

Solution:

Platforms tested:
linux

Misc. update:
2004-03-01 16:00:40 -05:00
Quincey Koziol
2d8964517b [svn-r8128] Purpose:
Update dependencies after restructuring of MPI stuff
2004-01-30 21:32:19 -05:00
Albert Cheng
aaff647518 [svn-r7914] Purpose:
Regenerate the Dependencies files if needed.

Description:

Solution:

Platforms tested:

Misc. update:
2003-12-05 10:39:53 -05:00
Pedro Vicente Nunes
967a04fdec [svn-r7912] Purpose:
code clean, bug fix

Description:
the attributes of the root group were not being compared
removed compiler warnings on IRIX and solaris

Solution:
added a special function to compare the attributes of the root group

Platforms tested:
linux
IRIX 6.5
solaris 2.7

Misc. update:
2003-12-04 10:31:05 -05:00
Pedro Vicente Nunes
2d011283a3 [svn-r7908] Purpose:
code clean, bug fix

Description:
cleaned warnings on IRIX
fixed bug in parse command line

Solution:

Platforms tested:
linux
IRIX 6.5 64

Misc. update:
2003-12-03 10:35:32 -05:00
Pedro Vicente Nunes
486c13d307 [svn-r7904] Purpose:
h5diff new features

Description:
added comparison for attributes
adeded comparison for all dataset datatypes
added tests for the new features
changed the output format

Solution:

Platforms tested:
linux
solaris 5.7
IRIX 6.5 (64)

Misc. update:
2003-12-02 18:13:27 -05:00
Pedro Vicente Nunes
75a5e8a0e6 [svn-r7813] Purpose:
h5diff new feature


Description:

added compare for attributes
a new options flag (-a) was added to the options structure. it is 0 by default (no compare )
the output of the compare is the same that for datasets, and all the other flags also apply for attributes
(the memory compare is done in the same function diff_array)
all the other requirements for compare of datasets (type, space) are identical too




Platforms tested:
linux
solaris 2.7
IRIX


Misc. update:
2003-11-03 17:10:57 -05:00
Pedro Vicente Nunes
61d964625e [svn-r7804] Purpose:
h5diff new feature

Description:
added diff for the class ENUM

Solution:

Platforms tested:
linux
solaris 2.7
IRIX

Misc. update:
2003-10-31 16:18:09 -05:00
Pedro Vicente Nunes
8b45b9a5f0 [svn-r7785] Purpose:
h5repack new features


Description:
added a copy routine for all types
added a copy routine for attributes
commnented some debug messages in h5trav
added the verbose option to some h5diff messages


Platforms tested:
linux
solaris 2.5
IRIX


Misc. update:
2003-10-29 12:46:11 -05:00
Bill Wendling
0a2a91f24a [svn-r7777] Purpose:
Regenerated

Description:
    Regenerated Dependencies files because of changes to the h5diff and
    tools library.

Platforms tested:
    Linux (small change and just needed to be checked once).
2003-10-28 15:52:00 -05:00
Pedro Vicente Nunes
5bcb1054d1 [svn-r7774] Purpose:
changed the name of one struct in this file



Platforms tested:
linux,
solaris
IRIX

Misc. update:
2003-10-28 13:22:05 -05:00
Pedro Vicente Nunes
f2b52777f4 [svn-r7769] Purpose:
moved h5diff "public API" routines to tools/lib folder



Platforms tested:
linux
solaris 2.7
IRIX

Misc. update:
2003-10-28 12:40:05 -05:00
Pedro Vicente Nunes
ac104ba0a7 [svn-r7706] Purpose:
h5diff now has a .h file. which I forgot to CVS add previously






Misc. update:
2003-10-22 16:56:21 -05:00
Pedro Vicente Nunes
ce5c245a95 [svn-r7702] Purpose:
h5diff maitainance


Description:
separated the h5diff source between several modules
there is a public module with a new function "h5diff" that can be called by an application
program (h5repack will use it )
added a new verbose option that can turn off all printf



Platforms tested:
linux
solaris
IRIX


Misc. update:
2003-10-22 16:30:19 -05:00
Quincey Koziol
e2518919c9 [svn-r7626] Purpose:
Update dependencies and tracing information

Platforms tested:
    Linux 2.4 (verbena) w/FORTRAN
    too minor for h5committest
2003-10-14 10:46:38 -05:00
Quincey Koziol
c58d85f10e [svn-r7527] Purpose:
Code cleanup

Description:
    Clean up a few loose ends and warnings for the 1.6 compatibility changes
to the error API.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-09-30 11:20:46 -05:00
Albert Cheng
6d647e5406 [svn-r7418] Purpose:
bug fix

Description:
h5diff would incur a segmentation fault in Alpha clusters when
the percentage option is used.  This was due to memory aliagment
issue when the options variable is declared as a local variable
in main().

Moved the declaration to a global declaration.

Platforms tested:
"h5committested"
And tested at cluster QT of SNL.

Misc. update:
2003-08-27 10:27:56 -05:00
Quincey Koziol
32220914a5 [svn-r7401] Purpose:
Code cleanup

Description:
    Remove various "fixtype" routines which duplicate (and actually pre-date)
    the functionality in H5Tget_native_type in favor of having the tools call
    H5Tget_native_type().  This provides the same functionality (actually better
    functionality, since the old "fixtype" routines didn't handle alignment of
    compound fields correctly) and reduces the amount of code to maintain.

    Add additional tests to dump out a "complex" compound datatype which
    exercises more code in the library for aligning compound fields correctly.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-08-25 15:00:56 -05:00
Quincey Koziol
500b5f904f [svn-r7389] Purpose:
Code cleanup

Description:
    Return -1 for failed group iteration instead of 1

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-08-22 08:45:40 -05:00
Albert Cheng
374ad0ef30 [svn-r7361] Description:
Updated the copyright notice--mostly by rearranging
some text to make them consistent.

Solution:

Platforms tested:
"h5committested"--sol is down, so, no SUn test.

Misc. update:
2003-08-13 23:58:29 -05:00
Quincey Koziol
7f119036d3 [svn-r7352] Purpose:
Updated dependencies

Platforms tested:
    h5committested
2003-08-12 20:50:11 -05:00
Quincey Koziol
a91e5a22c4 [svn-r7323] Purpose:
Refactored code

Description:
    Added 'unsigned flags[2]' field and changed 'objno' field from 'unsigned
long[2]' to 'haddr_t' (to reflect changes in H5G_stat_t)

Platforms tested:
    h5committested
2003-08-08 14:31:37 -05:00
Quincey Koziol
64b045691c [svn-r7322] Purpose:
Refactored code

Description:
   Use H5E_BEGIN_TRY/H5E_END_TRY macros around blocks where errors shouldn't
be printed, instead of managing 'automatic error' information.

    Use new 'flags' field in table objects where appropriate

    Chase changes to 'fileno' and 'objno' fields of H5G_stat_t

Platforms tested:
    h5committested
2003-08-08 14:30:19 -05:00
Quincey Koziol
21c1f05808 [svn-r7321] Purpose:
Code cleanup & refactoring

Description:
    Use H5E_BEGIN_TRY/H5E_END_TRY macros around blocks where errors shouldn't
be printed, instead of managing 'automatic error' information.

    Changes to use new 'flags' fields in the table of objects, since the 'objno'
field can't be [ab]used any longer.

Platforms tested:
    h5committested
2003-08-08 14:27:54 -05:00
Raymond Lu
0d22a663df [svn-r7265] *** empty log message *** 2003-07-25 21:55:47 -05:00
Pedro Vicente Nunes
77f6e46b81 [svn-r7257] Purpose:
bug fix

Description:
if the user incorrectly put the option -n20 (instead of -n 20) as the last argument
h5diff tried to parse the 20 as an extra argument, causing a failure

if ('-' !=argv[i+1][0] )


Solution:
add an extra test for the case that option is the last argument

if ( i<argc-1 && '-' !=argv[i+1][0] )


Platforms tested:
linux . this is too trivial for all platforms test




Misc. update:
2003-07-23 13:52:18 -05:00
Bill Wendling
3e297166b8 [svn-r7124]
Purpose:
	Bug Fix

Description:
	LIBTOOLS macro was being used but not defined.

Solution:
	Removed the LIBTOOLS macro as it wasn't necessary

Platforms tested:
	Modi4 (small fix)

Misc. update:
2003-06-30 11:59:27 -05:00
Bill Wendling
6c41212cc4 [svn-r7123] Purpose:
Bug Fix

Description:
    The SUBDIRS macro is now defined as "" in the config/commence.in
    file. We shouldn't have definitions of this macro before the
    inclusion of config/commence.in.

Solution:
    Placed all definitions of SUBDIRS after config/commence.in inclusion.

Platforms tested:
    Modi4 (Small fix yet again).

Misc. update:
2003-06-30 11:26:46 -05:00
Quincey Koziol
2629b6e4d3 [svn-r7109] Purpose:
Code cleanup

Description:
    Clean up varios compiler warnings flagged by SGI compiler and gcc 3.3

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-25 21:10:33 -05:00
Quincey Koziol
df5ca0fa1d [svn-r7002] Purpose:
Code cleanup

Description:
    Clean up warnings about unused stuff...

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-06-09 14:18:47 -05:00
Quincey Koziol
bdf3620e62 [svn-r6962] Purpose:
Code cleanup

Description:
    Update dependencies and tracing information

Platforms tested:
    h5committested
2003-06-04 15:25:43 -05:00
Pedro Vicente Nunes
12b00a5dd4 [svn-r6947] Purpose:
added some comments

Description:

Solution:

Platforms tested:
linux

Misc. update:
2003-06-03 10:50:19 -05:00
Pedro Vicente Nunes
6273d8beee [svn-r6943] Purpose:
bug fix

Description:
unsigned integers were not printed out correctly

Solution:
added %u and %lu to the list of formats

Platforms tested:

Windows 2000 (octopus)
Linux 2.4 (rockaway)
SunOS 5.7 (arabica)
IRIX 6.5 (modi4)




Misc. update:
2003-06-02 11:30:40 -05:00
Pedro Vicente Nunes
614490a83a [svn-r6928] Purpose:
h5diff support for long_long

Description:
added h5diff support for long_long;

No automatic test was added because
it seems that the printf format of long_long is  slightly different in Linux and IRIX(modi4),
because the diff command complained about a difference in the 2 test files for long_long;
visually, it seems that in IRIX an extra space is added after the print (or maybe it is
just me that is seeing extra spaces :=)
this test is test 5.8,  commented in testh5diff.sh





Platforms tested:
Windows 2000 (octopus)
Linux 2.4 (rockaway)
SunOS 5.7 (arabica)
IRIX 6.5 (modi4)




Misc. update:
2003-05-30 17:38:46 -05:00
Pedro Vicente Nunes
4eb8aa7d83 [svn-r6925] Purpose:
bug fix

Description:
the signed / unsigned comparison was not properly handled.
the fixtype function sets the sign for the memory type the same sign as found on disk
and the array_diff function only handled signed cases

Solution:
addded for each INTEGER size type an OR condition with the unsigned version
if the datatypes have different signs , comparison is NOT supported


Platforms tested:

Windows 2000 (octopus)
Linux 2.4 (rockaway)
SunOS 5.7 (arabica)
IRIX 6.5 (modi4)


Misc. update:
2003-05-29 16:53:46 -05:00
Elena Pourmal
6790a626c8 [svn-r6915]
Purpose: bug fix for Tru64 and test of the latest szip library.

Description: h5diff uses basename function that also is defined
             in the system string.h file. That caused compilation to
             fail.

Solution:  renamed basename to h5diff_basename

Platforms tested: verbena, arabica, arabica-64,
                  and PSC Compaq machine.

Misc. update:
2003-05-22 17:41:27 -05:00
Pedro Vicente Nunes
68caabdfd5 [svn-r6911] Purpose:
made the test file to compare be created if it does not exist

Description:

Solution:

Platforms tested:

Misc. update:
2003-05-22 17:22:02 -05:00
Pedro Vicente Nunes
eaf0b25546 [svn-r6897] Purpose:
fixed a typo on the usage message, redone the test files that deal with with

Description:

Solution:

Platforms tested:
Windows 2000 (octopus)
Linux 2.4 (rockaway)
SunOS 5.7 (arabica)
IRIX 6.5 (modi4)




Misc. update:
2003-05-19 11:14:26 -05:00
Pedro Vicente Nunes
17d0b72815 [svn-r6894] Purpose:
changes of input/ output  format

Description:
on web page /RFC/h5diff

Solution:

Platforms tested:

Windows 2000 (octopus)
Linux 2.4 (rockaway)
SunOS 5.7 (arabica)
IRIX 6.5 (modi4)


Misc. update:
2003-05-19 00:09:08 -05:00
Pedro Vicente Nunes
a23049f488 [svn-r6849] Purpose:
changed algorythm

Description:
changed the array_diff function to increment the read buffer with a size selected
by an appropriate native data type.
previously it was assumed, e.g. int size = 4 bytes

Solution:

Platforms tested:

Linux 2.4 (rockaway)
SunOS 5.7 (arabica, 64bit mode)
IRIX 6.5 (modi4)


Misc. update:
2003-05-12 12:10:27 -05:00
Pedro Vicente Nunes
f2c1d0e162 [svn-r6844] Purpose:
bug fix

Description:
datasets with different storage datatypes where not read to memory to same size types

Solution:
obtain the memory type and size, for the TWO datasets ,
with the "fixtype" function
"upgrade" the smaller size to the larger if they are different
added H5DIFF_DEBUG flag for print information

Platforms tested:
Linux 2.4 (rockaway)
SunOS 5.7 (arabica, 64bit mode)
IRIX 6.5 (modi4)



Misc. update:
2003-05-10 14:38:57 -05:00
Pedro Vicente Nunes
401c1bc318 [svn-r6827] Purpose:
added new test files for h5diff
bug fix

Description:
the criteria for determining the correct switch case cast to void* to type* was the data size read from disk.
this was causing problems on Cray T3E, where all integer except char are 8 bytes long

Solution:
changed the criteria for using the memory size instead, which is determined by the same function
that reads the data into memory

the messages " using memory NATIVE_TYPE_X" were  removed, because they might not coincid on different
platforms.

Platforms tested:
Linux 2.4 (rockaway)
SunOS 5.7 (arabica)
IRIX 6.5 (modi4)


Misc. update:
2003-05-07 17:28:09 -05:00