Commit Graph

184 Commits

Author SHA1 Message Date
Patrick Lu
970c3a06b9 [svn-r1409]
updated the functions that create the tstr.h5 and tdset.h5 so they have
different values in the integer parts of the data.

for the tdset: it is i+j for the values instead of just i.(i and j are variables
used in a set of nested for loops)

for the tstr.h5: changed the data(originally just l to (l+k+j) squared).
these 3 variables are from 3 nested for loops.

more changes to tests to come
1999-07-02 12:52:18 -05:00
Patrick Lu
98a9636474 [svn-r1408]
new testfiles for the references.  created by h5dumptst
1999-07-02 09:52:31 -05:00
Patrick Lu
d619a1d3e6 [svn-r1407]
the ddl's for the new test files
1999-07-02 09:51:27 -05:00
Patrick Lu
95064e6f60 [svn-r1406]
a test file that is created from the h5dumptst.  ues it to test enums
1999-07-02 09:48:57 -05:00
Patrick Lu
ccc388ba1c [svn-r1405]
converted all the types to native types to fix the errors
1999-07-02 09:47:52 -05:00
Patrick Lu
cc2be92e78 [svn-r1397]
changed the name of 3 files so that it would have a t in front like the other
files in this program
1999-06-30 13:20:31 -05:00
Albert Cheng
2133b0120f [svn-r1395] Moved to the upper directory. 1999-06-30 13:09:37 -05:00
Albert Cheng
b004a76a47 [svn-r1394] Changes made by Patrick to the h5dumptst.c in testfiles. 1999-06-30 13:08:14 -05:00
Albert Cheng
191943c2c2 [svn-r1393] Added entry for h5dumptst.c which creates test files for h5dump tool
tests.  h5dumptst should be run from inside testfiles directory.
1999-06-30 13:04:16 -05:00
Patrick Lu
903bc4b955 [svn-r1391]
added a break for the H5T_ENUM case in the switch in the dump_simple_dset
1999-06-28 13:12:25 -05:00
Patrick Lu
43af17182c [svn-r1390]
fixed a bug that was making references get printed twice
1999-06-28 13:09:20 -05:00
Patrick Lu
f623908727 [svn-r1389]
added 2 functions to create a file for data regions and obj references
1999-06-28 13:00:03 -05:00
Patrick Lu
78f622071f [svn-r1384]
added a function to create an enum test file
1999-06-25 14:25:52 -05:00
Patrick Lu
7d7c7af92d [svn-r1382]
oooops i forgot to include a case statement in two switch statements (1 in each file)
that print the actual data of the enum datasets

i had to change a line of h5dump_sprint.
when it checks to see that is an enum val isn't an escape sequence i appended
this result onto the end of the str
1999-06-25 13:52:06 -05:00
Patrick Lu
7f0f77be1e [svn-r1377]
removed teh TYPE define since it was already there as DATATYPE
1999-06-24 14:01:54 -05:00
Patrick Lu
99cd249d1b [svn-r1376]
changed some of the output format for the dumper(show object ids now)
1999-06-24 14:01:21 -05:00
Patrick Lu
0350710f5b [svn-r1370]
added a new line before a bracket was pritned in the enum stuff
1999-06-23 09:58:51 -05:00
Patrick Lu
941cf3a134 [svn-r1369]
added semicolons after the print out of the enum info
1999-06-22 14:10:18 -05:00
Patrick Lu
71500ff8e1 [svn-r1367]
made a small change so that windows would stop complaining.  the change involved
using some type casting.  the change was surrounded by a #define WIN32
1999-06-21 10:26:00 -05:00
Patrick Lu
ca9f4c3888 [svn-r1361]
made the output for the dataset regions look like how Albert wanted it to
1999-06-17 10:53:14 -05:00
Patrick Lu
99478cd128 [svn-r1360]
dumps dataset regions now.  uses robb's code to get all the info.
modified display_numeric_data to display the info
1999-06-17 10:32:41 -05:00
Albert Cheng
8de95dd697 [svn-r1355] Bug fix: compiler complained about errno not defined. That was
because it is predefined in <errno.h>, not <sys/errno.h> which
contains the system error codes.
Fixed and tested in IRIX6.5 (also got rid of the few K&R C-style
function declaration statements.)
1999-06-16 14:15:16 -05:00
Robb Matzke
06c7d8fbbf [svn-r1354]
Changes since 19990615
----------------------

./README
	Version number synchronized with library.

./bin/h5vers
	If the version number of the library is changed then the first
	line of the README file is also changed to something like

	     This is hdf5-1.2.3 currently under development

	The `release' script (which also gets run by `snapshot')
	changes that line to include the release date but keeps the
	version number the same.  The net effect is that the version
	numbers in README and H5public.h should now always stay
	synchronized.

./bin/snapshot
	The CVS checkin comment includes the version number for the
	snapshot that was just made.

./tools/testh5toh4
	Changed `*-SKIP-*' to `-SKIP-' to be consistent with the other
	tests.
1999-06-16 10:09:56 -05:00
Albert Cheng
231e8a2e96 [svn-r1352] Changed the '\n' argument to '\012' since some other machines (solaris,
irix) misinterpreted it to mean deleting the letter 'n'.
Tested in IRIX and solaris and FreeBSD machines.
1999-06-15 21:06:25 -05:00
Albert Cheng
004cf630d5 [svn-r1351] Bug fix:
hdp before HDF 4.1r3 does not handle Vgroups loops correctly.
Solution:
Added codes to detect the library version of hdp command. Skipped
tests for loops.  Tested in an old solaris with HDF 4.1r2, Solaris 2.6
and Hawkwind.
1999-06-15 20:05:03 -05:00
Patrick Lu
dfbdfb60a2 [svn-r1350]
added the #defines for the string macros here
1999-06-15 14:02:11 -05:00
Patrick Lu
a594d02131 [svn-r1349]
moved the #define for the string macros to the h5tools.h from h5dump.h5
1999-06-15 13:46:58 -05:00
Patrick Lu
4fce9ceeb9 [svn-r1348]
got the regions working in the dumper.  all the hard stuff was already done.
it doesn't work perfectly yet but it is getting better
1999-06-15 12:25:30 -05:00
Robb Matzke
1c0597aa74 [svn-r1347]
Changes since 19990614
----------------------

./src/H5D.c
	Changed the way the plist_id argument of H5Dvlen_reclaim() is
	checked so that it's more specific and works when debugging is
	turned off.

./src/H5TB.c
	Removed an unused local variable.

./test/fillval.c
./test/h5test.c
./test/h5test.h
	Changed `basename' variables to `base_name' to prevent a
	warning about a global with the same name.

./tools/h5ls.c
	Changed `indent' variables to `ind' to prevent a warning about
	a global with the same name.

./tools/h5toh4.c
	Commented out declarations for things that normally appear in
	system header files since our definitions might be
	incompatible with the system and prevent h5toh4 from
	compiling.  If all looks good on other systems then we can
	permanently remove these declarations...
1999-06-15 09:58:25 -05:00
Albert Cheng
401b37c1c3 [svn-r1343] Filter out the reference number values during comparison of the hdp
output.
1999-06-14 15:18:16 -05:00
Robb Matzke
1c5f6ffb70 [svn-r1341]
Changes since 19990611
----------------------

./doc/html/H5.format.html
	Added documentation for opaque data types (bitfield types were
	already documented but they were out of order).

./src/H5E.c
	Fixed a bug with glibc2 on linux systems where `stdout' is an
	extern and can't be used to initialize static data.

./src/H5T.c
./src/H5Tpkg.h
./src/H5Tpublic.h
./src/H5detect.c
	Removed the `_T' from the new C9x types I just added so the
	names are consistent with existing types. Besides, the fact
	that something is a datatype is obvious because it starts with
	H5T_NATIVE_.

./tools/h5ls.c
	Added the new C9x data types. H5ls prints one of these types
	only if it doesn't match one of the builtin C types.

	Prints the OID for shared data types.

	Fixed a formatting bug with symbolic links which was
	introduced a few changes ago.

	The commandline has been changed so that objects from multiple
	files can be listed with a single command. Instead of
	specifying a file name and an optional list of objects, each
	thing to print is a file name and object concatenated. H5ls
	figures out how to devide the name into a file name and object
	name even when the file name part doesn't correspond to an
	actual Unix file.

	   Old syntax: h5ls [OPTIONS] FILE [OBJECTS]
	   New syntax: h5ls [OPTIONS] FILE[/OBJECT] [FILE[/OBJECT]]...

	   Example ({X,Y} is expanded by the shell)

	   Old command: h5ls -d ../test/x.data dir1 dir2
	   New command: h5ls -d ../test/x.data/{dir1,dir2}

	The filename is printed as part of the object name when full
	names are requested (--full or --recursive). If people really
	don't like this they can undefine a constant at the top of
	h5ls.

	Errors from the hdf5 library are turned off.

	Commandline switches of the form `--width 80' are accepted in
	addition to `--width=80'. This is more symmetric with
	single-letter switches that take two forms: `-w 80' and
	`-w80'.

./src/H5D.c
	Added tracing instrumentation for H5Dvlen_reclaim().

./src/H5private.h
	Added casts to int for the isalpha() et al macros to shut up
	solaris warnings about char subscripts.
1999-06-14 10:07:58 -05:00
Patrick Lu
da12109cfa [svn-r1339]
added a print_enum function to it that is just taken from a similar funtion
in h5ls.c
1999-06-13 21:40:52 -05:00
Albert Cheng
855d10e8ee [svn-r1338] Removed the tools/testfiles/*.dmp which are no longer used. 1999-06-13 20:55:17 -05:00
Albert Cheng
a45d0d96a2 [svn-r1336] h5toh4 test script used to compare the output of hdp applied on
the generanted hdf files against saved output of hdp.  This did not
work well because whenever the hdp changes its output format, the
tests failed unnecessarily.  The tests also failed if the test machine
uses a different version of HDF library from the HDF5 development
machine.

Changed the algorithm to compare the generated HDF files against
saved HDF files (first by a simple cmp; if that fails, compare the
output of the host machine's hdp on both HDF files.)

Saved HDF files are stored in testfiles/Expected.

Tested on Hawkwind (FreeBSD) with srcdir option and Baldric (Solaris)
without srcdir option.
1999-06-13 19:39:25 -05:00
Albert Cheng
6337d6e6a1 [svn-r1335] h5toh4 test script used to compare the output of hdp applied on
the generanted hdf files against saved output of hdp.  This did not
work well because whenever the hdp changes its output format, the
tests failed unnecessarily.  The tests also failed if the test machine
uses a different version of HDF library from the HDF5 development
machine.

Changed the algorithm to compare the generated HDF files against
saved HDF files (first by a simple cmp; if that fails, compare the
output of the host machine's hdp on both HDF files.)

Tested on Hawkwind (FreeBSD) with srcdir option and Baldric (Solaris)
without srcdir option.
1999-06-13 19:38:29 -05:00
Patrick Lu
6c9b3a99d4 [svn-r1330]
removed a // frm the code
1999-06-11 12:04:16 -05:00
Patrick Lu
531fda4d78 [svn-r1329]
started to add the enum code in.
just wanted to get something checked in before i mess it up
1999-06-11 12:01:51 -05:00
Albert Cheng
d6ba8a5095 [svn-r1327] Got rid of the extra line of setting dim_n_size incorrectly.
Tested in O2K.
1999-06-10 23:22:59 -05:00
Albert Cheng
55b5e0fe94 [svn-r1326] Replaced the non-general if-then-elif-... code with a general
while-loop.  Prepare it for the next revision in which the hdp
will apply to both the converted hdf4 file and a preserved hdf4
file, then compare the hdp output from both for h5toh4 converter
correctness.
1999-06-10 22:22:11 -05:00
Patrick Lu
0780cc508e [svn-r1325] fixed a bug that was due to settign the dim_n_size wrong for the dump_attr function
for scalar data
1999-06-10 14:14:40 -05:00
Patrick Lu
40aa67003b [svn-r1324]
moved the ATTRIBUTE_DATA definition from h5dump.h to h5tools.h
also created a ENUM_DATA in th5tools.h
1999-06-10 12:41:06 -05:00
Patrick Lu
bcc9f5ad96 [svn-r1323]
removed a c++ style comment i put in by accident
1999-06-10 10:21:40 -05:00
Albert Cheng
93a359dd57 [svn-r1322] Removed the reformating part. The output of h5dump should
be identical in all platforms.  Tested in O2K.
1999-06-09 17:26:28 -05:00
Patrick Lu
fd02ea947d [svn-r1321]
added some support for the object references.  uses robb's h5dump_sprint to
print out the info
1999-06-09 13:43:07 -05:00
Patrick Lu
bbe6a75cd0 [svn-r1320]
just made the h5dump_attr function
1999-06-08 12:46:33 -05:00
Patrick Lu
9c71da9893 [svn-r1319]
fixed bug that was printing out the "unable to print data message"
1999-06-08 12:27:13 -05:00
Patrick Lu
e69fe58b23 [svn-r1318]
separated the dumping of the attributes and datasets.  works on nt but
on unix(baldric) adds an extra line that says cannot print data.
this is just a temporary checkin until i can figure out what is wrong
1999-06-08 12:03:36 -05:00
Patrick Lu
ba3276554c [svn-r1317]
rolled back my changes so Robb's last set are still there.
merged my hcanges back in
1999-06-08 11:46:41 -05:00
Patrick Lu
006e67409b [svn-r1312]
fixed the dumb error with the concatenator macro
1999-06-07 18:27:44 -05:00
Robb Matzke
58eb9c4aa0 [svn-r1311] Changes since 19990607
----------------------

./tools/h5ls.c
./tools/h5tools.c
	Added support for printing bitfields and opaque data.

./test/dsets.c
	Added bitfield and opaque datasets to the output file so h5ls
	has something interesting to print.

./test/trefer.c
	Resync'd

./src/H5Tconv.c
	Fixed bitfield conversion which resulted in possible garbage
	in high-order bits of destination when the destination type is
	larger than the source type. Thanks for spotting it, Quincey.
1999-06-07 15:20:32 -05:00