Commit Graph

410 Commits

Author SHA1 Message Date
Bill Wendling
2145039107 [svn-r2888] The VL dumping isn't ready for prime time just yet. Can't get the H5 file
to be platform independent. Commenting this out so that the nightly tests
don't bomb...
2000-11-13 16:31:42 -05:00
Bill Wendling
7b5c102536 [svn-r2878] Purpose:
Feature
Description:
	Variable length data dumping for simple (i.e., either SCALAR or
	1-Dim array variable length datatypes) should work. Added to the
	tests...
Platforms tested:
	Linux
2000-11-13 12:17:04 -05:00
Bill Wendling
e8745849af [svn-r2876] Purpose:
Test files
Description:
	Test files for the h5dumping of variable length datasets.
Platforms tested:
	Linux
2000-11-13 12:13:21 -05:00
Quincey Koziol
6c603f3e77 [svn-r2875] Purpose:
Code cleanup
Description:
    Eliminated some warnings on O2K platform.
Platforms tested:
    SGI O2K (modi4)
2000-11-13 12:03:59 -05:00
Quincey Koziol
04223a18f4 [svn-r2866] Purpose:
Code cleanup
Description:
    Found more "Have_foo" usage and converted them to "H5_HAVE_foo"
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-11 10:58:12 -05:00
Quincey Koziol
ab5bf9f979 [svn-r2851] Purpose:
Updated for new array datatypes.
Description:
    I missed these tools earlier when I wasn't compiling with HDF4...
Solution:
    Updated them (correctly, I hope) to use the new array datatype instead of
    compound datatype array fields.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-09 18:01:29 -05:00
Quincey Koziol
2ce142b6ee [svn-r2846] Purpose:
New Feature
Description:
    Updated DDL files for new array output from h5dump.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-09 16:49:01 -05:00
Quincey Koziol
3499de1b53 [svn-r2845] Purpose:
New Feature
Description:
    Added dumping array datatypes to h5dump and the tool library.
Platforms tested:
    FreeBSD 4.1.1 (hawkwind)
2000-11-09 16:48:33 -05:00
Bill Wendling
796b4daf83 [svn-r2842] Purpose:
Recoding of VL dumping.
Description:
	I'm using hyperslabs to select the variable length data. I don't
	have any tests which I've checked in just yet. I'll create those
	later.
Platforms tested:
	Linux
2000-11-09 13:59:41 -05:00
MuQun Yang
a219b97a88 [svn-r2839]
Purpose:
     check in beta release h4toh5 converter
Description:
     1. add copy right and other comments to all .h and .c files
     2. fix bugs on sds unlimited dimension, hdf5 dimensional scale attribute and vdata translating
         from h4 to h5.

Solution:
     2.
        1) for sds with unlimited dimension to be converted into extensible hdf5 dataset,
        on hdf5 side, has to set a default chunk size even though the corresponding hdf4 file is not
	chunked.
        2) in this version, if sds object doesn't have dimensional scale data, we will not show
           the default hdf4 dimensional name ("fakedim0", etc.) in the new hdf5 dimensional scale
	   name attribute.
        3) fix a bug transferring vdata of which the field includes a character array. Make it correctly transfer into the corresponding hdf5 compound data type.


Platforms tested:

      eirene,arabica,baldric,hawkwind,paz,gondolin on new set of hdf4 test files.
2000-11-08 18:14:41 -05:00
MuQun Yang
b62d0a1366 [svn-r2837]
Purpose:
     Adding more expected files for testing h4toh5 converter
     These test files include hdf5 files that are expected converted from hdf4 files for various vdata
     and vgroup cases.
Description:
Solution:
Platforms tested:
     eirene,arabica,hawkwind,paz
2000-11-08 18:01:16 -05:00
MuQun Yang
9486965c4a [svn-r2836]
Purpose:
     Add testing files for h4toh5 converter
     Two more files for testing native float data type sds objects
Description:
Solution:
Platforms tested:
      arabica,eirene,hawkwind,paz
2000-11-08 17:57:35 -05:00
MuQun Yang
c9ec2cdc4d [svn-r2835]
Purpose:
     Adding expected hdf5 files for h4toh5 converter
     Expected files for different testing hdf4 files for sds objects
Description:
Solution:
Platforms tested:
     eirene,arabica,gondolin,paz
2000-11-08 17:53:09 -05:00
MuQun Yang
7fe0f3bb25 [svn-r2833]
Purpose:
    Adding expected testing files for h4toh5 converter
    expected files converted from image object
Description:
Solution:
Platforms tested:
      eirene,arabica,paz,hawkwind,gondolin
2000-11-08 17:37:21 -05:00
MuQun Yang
3846f6a785 [svn-r2831]
Purpose:
    update main test files for h4toh5 converter
Description:
Solution:
Platforms tested:
     eirene,arabica,hawkwind,paz,gondolin
2000-11-08 17:34:12 -05:00
MuQun Yang
50333fe515 [svn-r2829]
Purpose:
    Adding expected files for h4toh5 converter
    two test files for annotation
Description:
Solution:
Platforms tested:
    arabica,eirene,paz,gondolin,hawkwind
2000-11-08 17:32:54 -05:00
MuQun Yang
3baf0d41a7 [svn-r2828]
Purpose:
     Adding testing files for h4toh5 converter
     hdf4 test files for various tests on vgroup(including, hardlink,loop,nameclashing etc.)
Description:
Solution:
Platforms tested:
     arabica,eirene,paz,gondolin,hawkwind
2000-11-08 17:30:05 -05:00
MuQun Yang
69ada20b2a [svn-r2827]
Purpose:
     Adding testing files for h4toh5 converter
     testing files for independent vdatas
Description:
Platforms tested:
    eirene,hawkwind,arabica,paz
2000-11-08 17:26:50 -05:00
MuQun Yang
a1980a656a [svn-r2826]
Purpose:
    Adding testfiles for h4toh5 converter
    more testing files for sds objects in various datatypes
Description:
    see above
Solution:
Platforms tested:
     eirene,arabica,gondolin,paz,hawkwind
2000-11-08 17:24:36 -05:00
MuQun Yang
27dd362814 [svn-r2825]
Purpose:
    Adding testing files for h4toh5 converter
    these files are parts of files that test different datatype sds objects.
Description:
    see above
Solution:
Platforms tested:
     eirene,arabica,gondolin,paz,hawkwind
2000-11-08 17:16:57 -05:00
MuQun Yang
1e7480ad63 [svn-r2824]
Purpose:
     Add testing files for h4toh5 converter
     test files for testing dimensional scale dataset and unlimited dimension case
Description:
     see above
Solution:
Platforms tested:
     eirene,arabica,hawkwind,paz,gondolin
2000-11-08 17:09:31 -05:00
MuQun Yang
f1fb40c1a1 [svn-r2823]
Purpose:
    add several files to test h4toh5 converter on hdf image with different datatype
Description:
    see above
Solution:
Platforms tested:
    eirene,hawkwind,arabica
2000-11-08 17:02:58 -05:00
MuQun Yang
900701f5ae [svn-r2822]
Purpose:
     Add two test files for testing h4toh5 converter to convert image objects associated with attribute and image.
Description:
    see above
Solution:
Platforms tested:
    arabica,eirene,hawkwind
2000-11-08 16:59:02 -05:00
MuQun Yang
73b643a697 [svn-r2821]
Purpose:
     add a hdf4 file to test converter for converter object annotation into hdf5 attribute
Description:
     see above
Solution:
Platforms tested:
     eirene,hawkwind,arabica
2000-11-08 16:54:14 -05:00
MuQun Yang
771c8b333c [svn-r2820]
Purpose:
    adding an hdf4 testing file for annotation
Description:
    see above
Solution:
Platforms tested:
     eirene,hawkwind,arabica
2000-11-08 16:51:26 -05:00
MuQun Yang
7ae3c459ad [svn-r2819]
Purpose:
    add more hdf4 test files for converter
Description:
    in this script, run CONVERT test files
Solution:
    Add CONVERT h4file h5file in this script
Platforms tested:
     eirene,hawkwind,arabica
2000-11-08 16:42:28 -05:00
Albert Cheng
0556db98e2 [svn-r2794] Purpose:
"bug fix"
Description:
    the h5ls tests sometimes failed because the tool sometimes prints
    the tool name in the help message as "lt-h5ls" while the
    expected result has it as "h5ls".  This was the tools pulled its
    name from argv[0].
Solution:
    Hardcode the progname as "h5ls" and blocked out the code that
    pulls the program name from argv[0].  The better solution is
    to find a way to create the real binary with the orginal tool
    name.
Platforms tested:
    linux
2000-11-03 00:12:47 -05:00
Albert Cheng
48b4b45481 [svn-r2790] Purpose:
new feature
Description:
h5tools.c:
    Created h5tools_init() and h5tools_close() for the initialization
    of the h5tools library and closing of it.  With this, the rawdatastream
    and other internal structures can be initialized properly.
h5tools.h:
    added prototypes for h5tools_init and h5tools_close.
h5dump.c:
h5ls.c:
    Added the calls for h5tools_init() and h5tools_close().
Platforms tested:
    IRIX64 -64 parallel and Linux
2000-11-01 23:59:51 -05:00
Robb Matzke
189ed5eb75 [svn-r2785] ./hdf5/tools/h5ls.c
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (main)
	Backed out last change -- h5ls is a serial application and is
	never run with mpirun.
2000-10-31 15:51:58 -05:00
Robb Matzke
350fa2af78 [svn-r2781] ./hdf5/tools/h5ls.c
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (main)
	Added calls to MPI_Init() and MPI_Finalize() for parallel
	versions in order to prevent errors about unrecognized
	command-line options.
2000-10-31 14:40:59 -05:00
Robb Matzke
e6f4a8d4fa [svn-r2779] ./hdf5/tools/testfiles/tnestcomp-1.ls
* 2000-10-31 Robb Matzke  <matzke@llnl.gov>
	Expected h5ls output.
2000-10-31 13:10:21 -05:00
Robb Matzke
334d130322 [svn-r2778] ./hdf5/tools/testfiles/tcomp-1.ls
* 2000-10-31 Robb Matzke  <matzke@llnl.gov>
	Expected h5ls output.
2000-10-31 13:10:19 -05:00
Robb Matzke
f5d8780b66 [svn-r2777] ./hdf5/tools/testfiles/tall-2.ls
* 2000-10-31 Robb Matzke  <matzke@llnl.gov>
	Expected h5ls output.
2000-10-31 13:10:18 -05:00
Robb Matzke
acf6b83365 [svn-r2776] ./hdf5/tools/h5ls.c
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (dump_dataset_values)
	The `float' and `double'
	values are displayed with the full precision instead of just the
	default `%g'.
2000-10-31 13:10:17 -05:00
Bill Wendling
972b9252b8 [svn-r2771] Purpose:
Reformatting
Platforms tested:
	Linux
2000-10-31 11:32:21 -05:00
Robb Matzke
718b67a143 [svn-r2770]
Purpose:
	Testing
Description:
	The h5ls test script only looked at exit status.
Solution:
	Created expected output files and compare actual output
	with expected output.
Platforms tested:
	i686-pc-linux
2000-10-31 11:29:57 -05:00
Robb Matzke
9a6bb96913 [svn-r2769] ./hdf5/tools/testh5ls.sh
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (verbose)
	Compares output to expected
	files. This should work just fine because we're not using the `-v'
	option which prints datatypes in a machine-dependent way.
2000-10-31 11:18:49 -05:00
Robb Matzke
18e823ff42 [svn-r2768] ./hdf5/tools/h5tools.h
* 2000-10-31 Robb Matzke  <matzke@llnl.gov>
	Reindented.
2000-10-31 11:18:47 -05:00
Robb Matzke
3c2dfa4bab [svn-r2767] ./hdf5/tools/h5tools.c
* 2000-10-31 Robb Matzke  <matzke@llnl.gov> (h5dump_sprint)
	The whitespace added for
	indentation after the line-feed kludge is performed only if a
	line-feed was actually inserted.  This fixes funny-looking h5ls
	output that had `    %s' sequences appearing in nested compound
	datatypes.
	Also added a prominent warning in the code to indicate that when a
	line-feed is inserted into the string that column number
	calculations will be incorrect and object indices will be missing.
2000-10-31 11:18:45 -05:00
Bill Wendling
bf78260a06 [svn-r2738] Purpose:
Bug Fix
Description:
	People need to type in the full-path to the
	attribute/dataset/etc. and weren't being told to do so by the
	"usage" statement.
Solution:
	Added an example and changed <names> to <path> to be more
	explicit...
2000-10-25 14:25:55 -05:00
Bill Wendling
47c0884e1f [svn-r2737] Purpose:
Feature
Description:
	Allow dumping of variable length records. This is a first-time
	stab at this. It doesn't break any tests on my Linux box and it
	does output the variable length data, but it might look ugly (it
	doesn't handle new-lines as of yet)...I'm open to suggestions on
	what should be done next, what new features to add/remove...
Platforms tested:
	Linux
2000-10-25 14:07:05 -05:00
Albert Cheng
136fbe5335 [svn-r2733] Purpose:
New tests
Description:
    Added a new test file (tsaf.h5) for h5dump and h5ls.  The test file was
    created by lib SAF team.  This file used to cause previous version
    of hdf5 tools to core dump.
    tsaf.ddl is the expected output from h5dump.
Platforms tested:
    IRIX64 -64, linux
2000-10-24 17:07:09 -05:00
Albert Cheng
2f3e8498cb [svn-r2732] Purpose:
New tests
Description:
    Added a new test file (tsaf.h5) for h5dump and h5ls.  The test file was
    created by lib SAF team.  This file used to cause previous version
    of hdf5 tools to core dump.
Platforms tested:
    IRIX64 -64, linux
2000-10-24 17:06:39 -05:00
Albert Cheng
810d2979cc [svn-r2724] Purpose:
new feature
Description:
    h5ls was not tested
Solution:
    Added a test script, testh5ls.sh, to give h5ls some tests.
    Since the output from h5ls is sometime machine dependent (e.g.,
    Datatypes), can not compare them with expected output.  For now,
    run it against various hdf5 binary files.  If it exits with 0,
    consider it passes.
Platforms tested:
    IRIX64, eirene, arabica.
2000-10-24 13:31:49 -05:00
Albert Cheng
7b7a34b33d [svn-r2723] Purpose:
tidy it up
Description:
    Change the variable names so that it looks more generic.  Plan to
    make it a generic script test template.
Platforms tested:
    IRIX64-64, linux, solaris 2.7
2000-10-24 13:28:54 -05:00
Quincey Koziol
6aa0dd1620 [svn-r2722] Purpose:
Feature symmetry
Description:
    A while ago I needed to get the 'type' of data being accessed during writes
    to the VFL driver, so I put in code to get the information down there.
    Albert asked for the same information during reads, so I've added that in.
Tested:
    FreeBSD 4.1.1 (hawkwind)
2000-10-24 13:18:09 -05:00
MuQun Yang
3cea3093c8 [svn-r2691]
Purpose:
    1. fix multiple defination warnings at sgi platform
    2. adding chunking information from hdf4 to hdf5 property list.
Description:
    1. Orginally global varibles were defined at one header file and this
       header file were included by other .c file and .h file so multiple warnings are
       generated.
    2. Chunking information was not included in the previous version.
Solution:
    1. use "extern" to define global variables at h4toh5util.h file and define global variables
       at h4toh5main.c
    2. retrieve the chunking info from sdgetchunkinfo and GRgetchunkinfo and store these information
	into hdf5 property list.
Platforms tested:
      eirene,arabica,paz,gondolin
2000-10-17 22:48:10 -05:00
Albert Cheng
3609fc24e7 [svn-r2682] Purpose:
Bug fix
Description:
    gmake check had been failing because of errors in the Makefile.
Solution:
    Fixed it so that libtools.a got build first.
Platforms tested:
    Eirene (Linux)
2000-10-13 00:09:30 -05:00
Albert Cheng
fcfecf9ff2 [svn-r2680] Purpose:
Bug fix (ID 419)
Description:
    Converted strings class types (in dataset and attributes) to
    HDF4 type of DFNT_INT8.  Should have been DFNT_CHAR type.
Solution:
h5toh4.c:
    Changed the HDF4 type from DFNT_INT8 to DFNT_CHAR type.
    Converted all hdf5 strings (be it NULLTERM, NULLPAD, SPACEPAD)
    all to fixed width space padded HDF4 DFNT_CHAR.
testh5toh4:
    Added the testing of $HDF_NOCLEANUP before cleaning away the result files.
testfiles/Expected/tattr.hdf:
testfiles/Expected/tstr.hdf:
testfiles/Expected/tstr2.hdf:
    Updated with the corrected DFNT_CHAR type.
Platforms tested:
    Solaris 2.7, Linux, Irix 6.5.
2000-10-12 21:32:25 -05:00
MuQun Yang
0c70d84368 [svn-r2678]
Purpose:
    fixing output format of character array converted from hdf4 vdata.
Description:
    Now one dimensional chactacter array can be outputed as one H5 string instead of string of array before.
Solution:
   modify gen_h5comtype() so that when we detect the datatype is hdf5 string, we will merge hdf4 fieldorder into H5T string size and output the whole character array into  hdf5 string(with string size = size of the array length).
Platforms tested:
    eirene(LINUX), arabica(sun 5.6)
2000-10-12 18:33:22 -05:00