summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/h5diff_common.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r18279] Purpose:Jonathan Kim2010-02-191-41/+74
| | | | | | | | | | Work for bugzilla 1754: h5diff: support comparing through links. Description: merged from hdf5 trunk (18164, 18165, 18166, 18167, 18170, 18266, 18273) Tested: h5committest (jam, amani and linew)
* [svn-r18198] Description:Quincey Koziol2010-01-301-4/+4
| | | | | | | | | Trim trailing whitespace from source code files, with following command: find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.f90" \) -print |xargs -n 1 sed -i "" 's/[[:blank:]]*$//' Tested on: None - eyeballed only
* [svn-r17467] " Use strict equality as defaultPeter Cao2009-09-111-14/+32
| | | | | | " Use "--use-system-epsilon" for system EPSILON " Use "-p" or "-d" for whatever user's choice of epsilon " Use "-p 0" or "-d 0" for strict equality (same as default)
* [svn-r16566] Description:Quincey Koziol2009-03-111-6/+9
| | | | | | | | Bring r16560 back from trunk. Tested on: Mac OS X/32 10.5.6 (amazon) debug & production (Following up with tests on more platforms)
* [svn-r16437] merge from trunkPedro Vicente Nunes2009-02-051-1/+1
| | | | | bug fix: typo in usage message tested: linux
* [svn-r16351] merge 16348Pedro Vicente Nunes2009-01-261-6/+15
| | | | | | | | #1368 (E1) h5diff: implement "not comparable" messages. Implemented RFC. The new option is <-c, --compare List objects that are not comparable> added some test cases tested: windows, linux
* [svn-r16312] merge 16300Pedro Vicente Nunes2009-01-141-1/+10
| | | | | | | | | Added an option to avoid dealing with NaNs -N, --nan Avoid NaNs detection Note: there is no shell script run for datasets with NaN because the output is non portable (different results and NaN strings for different systems) Tested: windows, linux
* [svn-r15901] undo some changes in the list of parameters of ↵Pedro Vicente Nunes2008-10-181-2/+30
| | | | | | parse_command_line (forgot that this function is called both on serial and parallel) tested: linux
* [svn-r15900] Make the h5copy test that renames a group to return 1 on the ↵Pedro Vicente Nunes2008-10-171-12/+1
| | | | | | | | h5diff call and assume 1 is the correct result Drop the -c flag for h5diff Tested: linux
* [svn-r15899] Extend the -c flag for ignore graph differences to ignore ↵Pedro Vicente Nunes2008-10-171-25/+2
| | | | | | | | different group names This is used in the h5copy test that compares renaming of groups Tested: linux
* [svn-r15896] Introduced a -c flag to ignore file contents differences in the ↵Pedro Vicente Nunes2008-10-161-1/+7
| | | | | | | | return value (return 0 id -c is present) Introduced for h5copy validation Tested: windows, linux
* [svn-r15889] When comparing individual objects the file graph is not ↵Pedro Vicente Nunes2008-10-161-0/+3
| | | | | | currently compared, so make h5diff return 0 (no diffrences) Tested: windows, linux
* [svn-r15871] Eliminate -c option and make that behavior the default and ↵Pedro Vicente Nunes2008-10-151-12/+4
| | | | | | return 2 instead of -1 on error status Tested: windows, linux
* [svn-r15629] Description:Quincey Koziol2008-09-161-29/+29
| | | | | | | | | | | | | Remove trailing whitespace from C/C++ source files, with the following script: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Tested on: Mac OS X/32 10.5.5 (amazon) No need for h5committest, just whitespace changes...
* [svn-r15433] http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1170Pedro Vicente Nunes2008-08-051-8/+26
| | | | | | | | | | | | | Summary: when using h5diff to compare the results of h5repack (or other tools that copy one HDF5 file to another), a new option is needed to allow h5diff to make an "absolute" comparison of the 2 files. This is the "contents" mode explained in the usage below. If this mode is present, objects in both files must match (must be exactly the same). If this does not happen, the tool returns an error code of 1 (instead of the success code of 0) Changes to the h5repack test script: the call to h5diff was changed to include -c (maintaining the previous -q). tested: windows, linux
* [svn-r14380] Eliminate old code not used and that was replaced (command line)Pedro Vicente Nunes2008-01-071-308/+73
| | | | tested: windows, linux
* [svn-r14267] enhancement: formatted h5diff usage Pedro Vicente Nunes2007-11-191-19/+29
| | | | tested: linux
* [svn-r14264] new features: 1) new usage for h5diff " A la" h5dump formatPedro Vicente Nunes2007-11-161-0/+69
| | | | | | 2) new usage for h5repack and new command line parsing using the tools library parsing code tested: windows, linux, solaris
* [svn-r14258] new feature: make h5diff use the same command line parsing code ↵Pedro Vicente Nunes2007-11-131-15/+184
| | | | | | | | | and syntax than h5dump usage is now h5diff [OPTIONS] file1 file2 [obj1[obj2]] tested: windows, linux, solaris
* [svn-r14221] Pedro Vicente Nunes2007-10-301-1/+1
| | | | | | | | bug fix: avoid a segmentation fault when number of arguments is just one solution: test if number of arguments is more than 1 tested: windows, linux
* [svn-r14216] add a -V version information for h5diffPedro Vicente Nunes2007-10-221-0/+13
| | | | tested: windows, linux
* [svn-r13805] Pedro Vicente Nunes2007-05-241-1/+0
| | | | | | Early detection of no arguments, print usage and exit Tested: linux
* [svn-r13391] code cleaning and formated usage messagePedro Vicente Nunes2007-02-261-4/+4
|
* [svn-r13253] Updated all C and C++ style source code files with the THG ↵Albert Cheng2007-02-071-2/+3
| | | | | | | | | copyright notice. Tested platform: Kagiso only since it is only a comment block change. If it works in one machine, it should work in all, I hope. Still need to check the parallel build on copper.
* [svn-r13033] Pedro Vicente Nunes2006-12-071-12/+17
| | | | avoid usage to call exit(1), it makes processes to stop in parallel.
* [svn-r13027] Pedro Vicente Nunes2006-12-061-19/+20
| | | | | | | | fixed warning ../../../hdf5/tools/h5diff/h5diff_common.c: In function `usage': ../../../hdf5/tools/h5diff/h5diff_common.c:346: warning: function might be possible candidate for attribute `noreturn'
* [svn-r13003] Pedro Vicente Nunes2006-12-011-2/+2
| | | | | | | | Cleaned warnings h5diff_array.c:804: warning: passing arg 1 of `fabs' as floating rather than integer due to prototype introduced double precision arithmetic when possible instead of single precision
* [svn-r12980] Pedro Vicente Nunes2006-11-271-1/+1
| | | | | changed the usage message relative to the relative error formula to a more common and easy to understand form | (b-a) / a |
* [svn-r12815] Pedro Vicente Nunes2006-10-251-1/+1
| | | | | | | | | | | | | | 1) added a new parameter to the h5diff function diff_array that contains the beginning position of the hyperslab, so that the total position in the array is printed correctly when reading by hyperslabs. 2) added a new test to h5diff that reads and diffs by hyperslabs. The test reads a 1GB dataset, from which a 1KB hyperslab was written with differences . 3) added the generation of 2 files to the generator program to test the h5diff hyperslab read. 4) changed the h5diff binary pre-generated file names to be more descriptive (e.g, instead of file1.h5, made it h5diff_basic1.h5) 5) changed the name of the h5repack options text file to info.h5repack
* [svn-r12687] reverted back some changes that inadvertedely added some ↵Pedro Vicente Nunes2006-09-261-3/+1
| | | | | | | | output to the parallel part of h5diff tested : heping parallel
* [svn-r12678] bug fixPedro Vicente Nunes2006-09-251-1/+3
| | | | | the number of atribute differences was not added to the total sum of differences
* [svn-r12440] Purpose:Quincey Koziol2006-06-271-16/+16
| | | | | | | | | | | Code cleanup Description: Trim trailing whitespace in Makefile.am and C/C++ source files to make diffing changes easier. Platforms tested: None necessary, whitespace only change
* [svn-r12199] Purpose:Pedro Vicente Nunes2006-04-041-2/+2
| | | | | | | | | | | | | | | | | | | bug fix Description: the percent error calculation in h5diff using double precision floating point were causing different results on the release and debug versions of Visual Studio version 6, due to a compiler bug Solution: used single precision (float) Platforms tested: windows linux solaris AIX Misc. update:
* [svn-r12134] Purpose:Pedro Vicente Nunes2006-03-221-243/+249
| | | | | | | | | | | | | | | | | | bug fix Description: 1) added a more explainative usage message 2) the percent relative error for the integer type (division) was being done using integer arythmetic; use floating point arythmetic instead 3) added a new test for integer percent Solution: Platforms tested: linux (32,64) AIX solaris Misc. update:
* [svn-r11886] Purpose:Quincey Koziol2006-01-231-1/+1
| | | | | | | | | | | | | Code cleanup Description: Check in some of the code cleanups from working on the external link support. (This doesn't include any of the external link features) Platforms tested: FreeBSD 4.11 (sleipnir) Mac OSX.4 (amazon) Linux 2.4
* [svn-r11445] Purpose:Pedro Vicente Nunes2005-09-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | h5diff new feature Description: a user asked for the message "Some objects are not comparable" to be more noticeable Solution: -------------------------------- Some objects are not comparable -------------------------------- Platforms tested: linux Misc. update:
* [svn-r11245] Purpose:Quincey Koziol2005-08-131-19/+19
| | | | | | | | | | | | | | | | | | | | Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r11215] Purpose:Quincey Koziol2005-08-081-1/+1
| | | | | | | | | | | | | Bug fix & code cleanup Description: Fix another bug in the file mounting code and refactor the unmount code that it is simpler. Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4 Too minor to require h5committest
* [svn-r11005] Purpose:Pedro Vicente Nunes2005-06-301-33/+21
| | | | | | | | | | | | | | | | | | | bug fix Description: the numbers of differences was not printed for each object Solution: print it Platforms tested: linux solaris aix Misc. update:
* [svn-r10996] Purpose:Leon Arber2005-06-281-33/+29
| | | | | | | | | | | | | | | | | | | | | | | Bug fix for parallel case for new "Some objects were not comparable" patch to h5diff. Description: The parallel h5diff wouldn't print out "Some objects were not comparable" because the worker tasks were not communicating the not_cmp flag of the diff_opt_t struct back to the manager, who ultimately prints everything. Also, some miscellaneous fixes for error printing. Some errors were printed out with printf instead of fprintf(stderr,...). In parallel environments, this can result in output getting lost. Solution: Had the worker tasks pass along the not_cmp flag to the manager when they sent along the number of differences they found. Platforms tested: heping (pp), sol (pp) Misc. update:
* [svn-r10994] Purpose:Pedro Vicente Nunes2005-06-281-144/+170
| | | | | | | | | | | | | | | | | | | | | bug fix Description: when 2 objects were not comparable, the final print information for the non verbose mode printed "0 differences found" Solution: replaced instead with a Summary message that says "Some objects were not comparable" Platforms tested: linux solaris Misc. update:
* [svn-r10144] Purpose:Quincey Koziol2005-03-041-0/+1
| | | | | | | | | | | | | | | | Bug fix Description: The GASS VFL driver header file was bringing in the <string.h> header file, which several other source code modules needed also, but weren't including explicitly themselves. Solution: Add includes for <string.h> to files which actually need them. Platforms tested: FreeBSD 4.11 (sleipnir) w/C++ as CC Configuration not tested by h5committest...
* [svn-r10017] Purpose:Albert Cheng2005-02-161-0/+358
bug fix/new feature. Description: (committing changes made by Leon.) ph5diff now is a real program by itself. It has its own main (ph5diff_main.c). Codes common to h5diff and ph5diff are in h5diff_common.c. Removed the hack that hide failures from testh5diff.sh. Platforms tested: heping(serial, pp), sol (pp), copper(pp). Misc. update: