summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/h5diff_main.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r21195] Correct windows exports for h5diff.Allen Byrne2011-08-081-0/+22
|
* [svn-r21072] Purpose:Jonathan Kim2011-07-071-2/+0
| | | | | | | | | | | | 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)
* [svn-r20476] Removed all references to memory.hDana Robinson2011-04-111-1/+0
|
* [svn-r18759] pull r18757 from 1.8 branchAllen Byrne2010-05-111-3/+5
| | | | | | | | | Enable tools lib to be built as a dll on windows. Added two get/set functions for progname and d_status. Also add windows import/export declarations to functions. Updated error_mesg() and warn_mesg() to remove progname argument and use get functions Tested: Windows, linux
* [svn-r18273] Purpose:Jonathan Kim2010-02-181-19/+0
| | | | | | | | | | | | | | | | | | bugzilla 1754: h5diff: support comparing through links. Description: Fix incorrect (or hanging) behavior in parallel mode when specifying invalid combination of command options. (ex: -v and -q , --no-dangling-links without --follow-links) Add relate test case Update h5diffgentest.c due to add test files this and previous time Note: svn #18266 (prior to this) svn #18164 (original check-in) Tested: h5committest (jam, amani and linew)
* [svn-r18266] Purpose:Jonathan Kim2010-02-161-0/+20
| | | | | | | | | | | | | | | bugzilla 1754: h5diff: support comparing through links. (original check-in svn revision #18164) Description: fix the hang issue in parallel mode when compare external-link. add --no-dangling-links option. add test cases (#450-#459) relate to the new option. improve test script to check exit code. update --help relate to the new options. correct some indentations. Tested: h5committest (jam, amani and linew)
* [svn-r17052] Add a run to the h5repack shell script to read a family filePedro Vicente Nunes2009-06-151-0/+3
| | | | | | | | The file used for input is located in the common source tools for testfiles, in tools/testfiles Modified the h5repack shell script to read files from this location (h5repack reads its input files from a dedicated testfiles location in h5repack/testfiles) Changed the h5diff open file call to use h5tools_fopen, so that it can open all file drivers Tested: windows, linux, solaris
* [svn-r15988] Merge with 1.8 up to rev 15871Pedro Vicente Nunes2008-10-291-12/+21
| | | | | | Regarding h5diff, h5copy Tested: linux
* [svn-r15987] Merge with 1.8 rev 15871Pedro Vicente Nunes2008-10-291-3/+3
| | | | | | Eliminate -c option and make that behavior the default and return 2 instead of -1 on error status tested: linux
* [svn-r15628] Description:Quincey Koziol2008-09-161-5/+5
| | | | | | | | | | | | | 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-r15445] added some commentsPedro Vicente Nunes2008-08-071-0/+6
| | | | tested: windows, linux
* [svn-r15428] http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1170Pedro Vicente Nunes2008-08-041-0/+4
| | | | | | | | | | 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, solaris
* [svn-r14268] enhancement: commnents and correct syntax for h5repack optionsPedro Vicente Nunes2007-11-191-0/+3
| | | | tested: linux
* [svn-r14267] enhancement: formatted h5diff usage Pedro Vicente Nunes2007-11-191-2/+2
| | | | tested: linux
* [svn-r14258] new feature: make h5diff use the same command line parsing code ↵Pedro Vicente Nunes2007-11-131-5/+5
| | | | | | | | | and syntax than h5dump usage is now h5diff [OPTIONS] file1 file2 [obj1[obj2]] tested: windows, linux, solaris
* [svn-r14144] Description:Quincey Koziol2007-09-131-19/+19
| | | | | | | | | | | | | | | | Move H5Gget_objinfo() to deprecated symbols section and retarget internal usage to H5Lget_info()/H5Oget_info(). Misc. other code cleanups... Tested on: FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (kagiso) Linux/64 2.6 (smirom) AIX/32 5.3 (copper) Solaris/32 2.10 (linew) Mac OS X/32 10.4.10 (amazon)
* [svn-r13391] code cleaning and formated usage messagePedro Vicente Nunes2007-02-261-1/+14
|
* [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-r12687] reverted back some changes that inadvertedely added some ↵Pedro Vicente Nunes2006-09-261-1/+1
| | | | | | | | output to the parallel part of h5diff tested : heping parallel
* [svn-r12678] bug fixPedro Vicente Nunes2006-09-251-1/+1
| | | | | the number of atribute differences was not added to the total sum of differences
* [svn-r12440] Purpose:Quincey Koziol2006-06-271-5/+5
| | | | | | | | | | | 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-r12134] Purpose:Pedro Vicente Nunes2006-03-221-28/+28
| | | | | | | | | | | | | | | | | | 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-r11245] Purpose:Quincey Koziol2005-08-131-4/+4
| | | | | | | | | | | | | | | | | | | | 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-r10017] Purpose:Albert Cheng2005-02-161-518/+18
| | | | | | | | | | | | | | | | | 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:
* [svn-r9998] Leon Arber2005-02-131-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | Purpose: Bug fix Description: Fixed the error on copper where output would match, except the worker tasks are forcefuly terminated at the end. Solution: If an exit code other than 0 was returned, the parallel environment would assume that there was an error and would terminate all other tasks. Because h5repack relies on the return value of h5diff, it was necessary to return values other than 0. Fixed by having parallel runs of h5diff always return 0, whereas the return value of serial runs is unchanged. Platforms tested: copper Misc. update:
* [svn-r9969] Purpose:Leon Arber2005-02-091-0/+3
| | | | | | | | | | | | | | | | | | | Correction to previous print_manager_output bugfix Description: Although the previous bugfix did fix all the errors, it was not the correct way to fix the problem. Since the manager will only buffer output when run in parallel mode, in serial mode this function should not even be called. Solution: Wrapped print_manager_output in #define's to prevent it from being included in serial builds. Platforms tested: heping (serial + parallel) Misc. update:
* [svn-r9956] Purpose:Leon Arber2005-02-081-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed numerous ph5diff bugs. Description: Fixed manager output printing Fixed out of order output printing Fixed test script execution problem Temporary fix for large amounts of output overflowing buffer. Solution: The manager task buffers its output. However, since the manager task never gets a print token, this output was lost. Solution: new function called print_manager_output that prints buffered output is called in places where the manager buffers its output. printf was apparently buffering output. This means that a task would sometimes print even after it had given up its print token. Added fflush() call after printf() calls, which seems to have fixed the problem. calling rsh multiple times in succession seems to overwhelm something in Linux, as it begins to refuse new connections until the old ones reset. Since each call to mpirun in the test script starts up 4 rsh sessions, the test script eventually is unable to run any further tests. Solution: Added a short delay in the testscript between successive calls to mpirun to allow old connections to reset. The 10k output buffer was of insufficient size to hold the large amounts of output generated by some of the tests. Since code to buffer to a file has not been implemented yet, a temporary fix was to increase the size of the output buffer to 50k. Platforms tested: heping Misc. update:
* [svn-r9949] Purpose:Albert Cheng2005-02-071-63/+122
| | | | | | | | | | | | | | | | | Bug fix Description: h5diff sometimes will 'exit(status)' but if it is in parallel mode, it needs to close up the workers and the MPI environment before exit(..). Solution: Created h5diff_exit() that will just exit in serial mode but does all the shutdown properly if in parallel mode. Platforms tested: tested in heping, serial and parallel. Misc. update:
* [svn-r9945] Purpose:Albert Cheng2005-02-061-2/+3
| | | | | | | | | | | | | | | Bug fix Description: h5diff_main.c contained some debug printf statment that produced unexpected output. Commented them out. testh5diff.sh: implemented code to test ph5diff tests but ph5diff has some errors that generated unexpected output. Temporary hacked to skip tests if run by daily test account. Platforms tested: Tested in heping, serial and parallel.
* [svn-r9925] Purpose:Leon Arber2005-02-021-23/+40
| | | | | | | | | | | | | | | | | | | Bug Fix Description: Permanent fix for the incompatibilities between h5diff and h5repack. Solution: h5diff now contains the code to run both parallel and serial diffs. Depending on how the binary is called, it will run either the serial or the parallel versions respectively. Platforms tested: heping(serial + parallel), copper. Misc. update:
* [svn-r9877] Purpose:Leon Arber2005-01-271-9/+6
| | | | | | | | | | | | | | | | | Bug fix: Temporary fix for h5repack failures in all parallel builds. Description: The parallel additions to h5diff interfered with h5repack. Solution: Added a second set of "parallel" functions to h5diff.c. h5repack uses the serial versions, whereas h5diff will use the parallel versions. Also, h5diff will now be smart about when to enter parallel mode. If is run with mpirun with more than 1 task, it will enter parallel mode. Otherwise, it will stay in serial mode as before. Platforms tested: heping (serial and parallel) Misc. update:
* [svn-r9872] Purpose:Albert Cheng2005-01-261-257/+374
| | | | | | | | | | | | New feature. Description: Added new tool ph5diff. (Code done by Leon Arber.) Code is changed but test is not working yet. For now, it skipped all tests. Platforms tested: Tested in heping, serial and parallel modes.
* [svn-r8904] Purpose:Pedro Vicente Nunes2004-07-201-31/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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:
* [svn-r8286] Purpose:Pedro Vicente Nunes2004-03-291-1/+8
| | | | | | | | | | | | | | | | | | | 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:
* [svn-r8282] Purpose:Pedro Vicente Nunes2004-03-251-24/+16
| | | | | | | | | | | | | | | 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:
* [svn-r8226] Purpose:Pedro Vicente Nunes2004-03-011-1/+1
| | | | | | | | | | | | | removed a print of a new line Description: Solution: Platforms tested: linux Misc. update:
* [svn-r7912] Purpose:Pedro Vicente Nunes2003-12-041-1/+0
| | | | | | | | | | | | | | | | | | 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:
* [svn-r7908] Purpose:Pedro Vicente Nunes2003-12-031-1/+6
| | | | | | | | | | | | | | | | 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:
* [svn-r7904] Purpose:Pedro Vicente Nunes2003-12-021-22/+25
| | | | | | | | | | | | | | | | | | | 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:
* [svn-r7813] Purpose:Pedro Vicente Nunes2003-11-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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:
* [svn-r7785] Purpose:Pedro Vicente Nunes2003-10-291-2/+7
| | | | | | | | | | | | | | | | | | | | 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:
* [svn-r7774] Purpose:Pedro Vicente Nunes2003-10-281-1/+1
| | | | | | | | | | | | | changed the name of one struct in this file Platforms tested: linux, solaris IRIX Misc. update:
* [svn-r7702] Purpose:Pedro Vicente Nunes2003-10-221-0/+328
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: