summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-11-03 22:10:57 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-11-03 22:10:57 (GMT)
commit75a5e8a0e697d7f109d5db5bb7747d3d5412abe5 (patch)
tree16ee6b325bb8cb95dc55a862b138ef2f4a96666b /tools/h5diff
parent15505bd890fab8e42bfd32ad3c1b967b26f0ad35 (diff)
downloadhdf5-75a5e8a0e697d7f109d5db5bb7747d3d5412abe5.zip
hdf5-75a5e8a0e697d7f109d5db5bb7747d3d5412abe5.tar.gz
hdf5-75a5e8a0e697d7f109d5db5bb7747d3d5412abe5.tar.bz2
[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:
Diffstat (limited to 'tools/h5diff')
-rw-r--r--tools/h5diff/h5diff_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/h5diff/h5diff_main.c b/tools/h5diff/h5diff_main.c
index 206e5de..2ac3703 100644
--- a/tools/h5diff/h5diff_main.c
+++ b/tools/h5diff/h5diff_main.c
@@ -19,7 +19,7 @@
/* Due to alignment issue in Alpha clusters, options must be declared here
* not as a local variable in main().
*/
-diff_opt_t options = {0,0,0,0,0,0,0,0};
+diff_opt_t options = {0,0,0,0,0,0,0,0,0};
static void usage(void);
static int check_n_input( const char* );
@@ -116,6 +116,9 @@ int main(int argc, const char *argv[])
case 'v':
options.verbose = 1;
break;
+ case 'a':
+ options.attr = 1;
+ break;
case 'r':
options.r = 1;
break;
@@ -304,6 +307,7 @@ void usage(void)
printf("[-n count] Print difference up to count number\n");
printf("[-d delta] Print difference when it is greater than limit delta\n");
printf("[-p relative] Print difference when it is greater than a relative limit\n");
+ printf("[-a] Compare attributes\n");
printf("\n");
printf("Items in [] are optional\n");
printf("[obj1] and [obj2] are HDF5 objects (datasets, groups or datatypes)\n");