Commit Graph

758 Commits

Author SHA1 Message Date
Albert Cheng
0642ae58be [svn-r8273] Purpose:
Code cleanup.

Description:
The routines residing in testframe.c was defined in testhdf5.h due to
historical reason.  It really belongs to h5test.h because those routines
reside in libh55test.a.

Solution:
Moved them to the right place.  Also removed the duplicated occurance
of testframe.c in the TEST_SRC.

Platforms tested:
Tested in o2 (SGI) parallel.
2004-03-22 23:43:10 -05:00
Pedro Vicente Nunes
8737c9ff2b [svn-r8256] Purpose:
bug fix

Description:
the added binary files to read did not have the construction of the "srcdir" path

Solution:
add it

Platforms tested:
linux

Misc. update:
2004-03-11 22:51:33 -05:00
Pedro Vicente Nunes
7fe2ed7f91 [svn-r8253] Purpose:
bug fix
new test for the bug



Description:
the fletcher filter used a 2 byte word buffer to compute the checksum.
this is non portable between big-endian/little endian.



Solution:

replaced with a buffer of 1 byte type
added a test that reads 2  pre-saved files (one LE, other BE) with that filter enabled



Platforms tested:
linux
solaris
AIX


Misc. update:
2004-03-10 19:28:10 -05:00
Pedro Vicente Nunes
87f80226a8 [svn-r8249] Purpose:
added 2 binary files for a new dsets test

Description:

Solution:

Platforms tested:

Misc. update:
2004-03-10 18:00:36 -05:00
cvs2svn
cdcf0e1e12 [svn-r8248] This commit was manufactured by cvs2svn to create branch 'hdf5_1_6'. 2004-03-10 18:00:36 -05:00
Elena Pourmal
2bb3534b8f [svn-r8238] Purpose: A small bug fix
Description:  Wrong datatype (unsigned instead of hsize_t) was used
              to calculate the length of the buffer that hold the data.
              As a result, only part of the data was compared with the
              original data.

Solution: Use the correct datatype.

Platforms tested: Tried h5committest, but forgot to do it on AFS.
                  As a resulti, only verbena test was completed.
                  I decided to go ahead and check the change in and do it
                  correctly for the development branch (later today).

Misc. update:
2004-03-08 12:54:06 -05:00
Quincey Koziol
6e0a562d25 [svn-r8138] Purpose:
Bug fix.

Description:
    Allow H5Tget_native_type() to handle opaque fields in compound datatypes.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2004-01-31 13:01:35 -05:00
Albert Cheng
c2d20f62d4 [svn-r8101] Purpose:
Removed debug print statements committed by mistake.

Platforms tested:
eirene.
2004-01-23 09:07:52 -05:00
Albert Cheng
be0a322db3 [svn-r8099] Purpose:
Added the function ParseTestVerbosity() to be shared by all programs.

Platforms tested:
Eirene.
2004-01-23 01:29:55 -05:00
Albert Cheng
36ad158dd2 [svn-r8098] Purpose:
Bug fix

Description:
C++ compilers do not like the variable name new which is a kind word
for C++.  Changed it to newval instead.

Platforms tested:
Tested in Copper which is the one complained about the name.
2004-01-22 22:34:31 -05:00
Albert Cheng
c84e2ff653 [svn-r8093] Purpose:
New feature.

Description:
Added function SetTestVerbosity() so that other applications can
set the verbosity explicitedly without the whole testframe taking
over.
Added Verbose queries shorthands to make code more readable and
easier to change the levels of low, medium and high.

Platforms tested:
Eirene (both serial and parallel).

Misc. update:
2004-01-22 18:05:47 -05:00
Albert Cheng
f8cd97a833 [svn-r8085] Purpose:
Improvement.

Description:
Verbosity level were specified by numbers which are not meaningful
and prone to typos.

Solution:
Adapted the Verbosity predefined level symbols from HDF4
and changed all numberic verbosity to symbolic values.
(Still need to convert some left over macros like MESSAGE.)

Platforms tested:
Eirene.
No h5committest since this is trivial.
2004-01-22 15:58:02 -05:00
Quincey Koziol
60437a575a [svn-r8080] Purpose:
Add tests & docs

Description:
    Added tests for the recent B-tree bug fixes & document their fix in the
release notes.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Too minor to require h5committest
2004-01-19 13:48:50 -05:00
Quincey Koziol
a847246eb4 [svn-r8054] Purpose:
Bug fix

Description:
    Correct two problems with variable-length datatypes in datasets:
        - When overwriting an entire dataset, writing the fill value to the
            file would be skipped, causing problems for VL datatypes when
            objects in the file had been unlinked (and thus the space in the
            file was not all zeros)
        - When an application has set a fill-value for a dataset and the
            dataset's datatype contained a VL datatype, the library was filling
            space on disk with the memory form of the VL information, instead
            of the disk form.


Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2004-01-13 13:01:04 -05:00
Quincey Koziol
7f6fbe6b60 [svn-r8049] Purpose:
Code cleanup & reorganization

Description:
    Move further in the testing framework cleanup, eliminating all the
global variables (moving them into testframe.c as static variables) from the
testing framework code and moving it into the libh5test.a.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w & w/o thread-safety, c++ & parallel
    h5committested
2004-01-09 20:41:34 -05:00
Quincey Koziol
300af1d809 [svn-r8039] Purpose:
Bug fix

Description:
    When two property lists are compared, the H5Pequal routine was just
comparing the raw information for the property values.  This causes problems
when the raw information contains pointers to other information.

Solution:
    Allow a 'compare' callback to be registered for properties, so that a user
application get perform the comparison itself, allowing for "deep" compares of
the property value.
    This was exported to the H5Pregister & H5Pinsert routines in the development
branch, but not the release branch.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2004-01-08 09:55:19 -05:00
Quincey Koziol
0e53db4964 [svn-r8024] Purpose:
Code cleanup

Description:
    Refactor library testing framework (used for the testhdf5 & ttsafe tests)
to remove almost all of the duplicated code, moving the common code into a
new 'testframe.c' source file.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w & w/o thread-safety
    h5committest
2004-01-06 12:53:16 -05:00
cvs2svn
64e365a48f [svn-r8023] This commit was manufactured by cvs2svn to create branch 'hdf5_1_6'. 2004-01-06 12:53:16 -05:00
Albert Cheng
83c7a8dfaa [svn-r8019] Purpose:
Feature

Description:
Moved the InitTest from individual tests (testhdf5.c, ttsafe.c)
to libh5test (h5test.*) so that it can be used by other tests too.

Platforms tested:
"h5committested"
2004-01-05 21:49:01 -05:00
Quincey Koziol
a550ccd1d2 [svn-r8010] Purpose:
Bug fix

Description:
    Add special-case handling to floating-point conversion tests to avoid
problems with denormalized values on Cray T3E & T90 platforms.  (Still not
working on Cray SV1, but at least it's closer).

Solution:
    Detect denormalized values and don't try to operate on them on the Crays.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Cray T3E (hubble.cray.com)
    Cray T90 (gypsy.cray.com)
2003-12-31 15:36:44 -05:00
Quincey Koziol
502b49b2b9 [svn-r8008] Purpose:
Bug fix

Description:
    Range check the szip 'pixels per block' against the chunk size of the
dataset when attempting to create a new dataset, since the szip library
requires the PPB to be at least the size of the fastest changing dimension
in the chunk.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor for h5committest
2003-12-31 15:28:47 -05:00
Raymond Lu
4db6879a8c [svn-r7987] *** empty log message *** 2003-12-29 13:04:05 -05:00
Albert Cheng
38aa912af2 [svn-r7981] Regenrated Dependies files.
h5committested.
2003-12-25 22:02:36 -05:00
Quincey Koziol
bbb4d22621 [svn-r7951] Purpose:
Bug fix

Description:
    Attributes which were created with scalar dataspaces were reporting their
dataspace as a simple dataspace when queried later.

Solution:
    Fix the dataspace handling code when reading in the attribute message from
the file to set the extent type correctly.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-12-13 15:08:11 -05:00
Quincey Koziol
ff328b54b9 [svn-r7944] Purpose:
Bug fix.

Description:
    Using a selection offset with hyperslab selections in chunked datasets
was getting into an infinite loop and hanging the application.

Solution:
    Apply the selection offset to the hyperslab selection properly.

Platforms tested:
    FreeBSD 4.9 (sleipnir) w & w/o parallel
    h5committest
2003-12-13 13:14:39 -05:00
Quincey Koziol
cf59123115 [svn-r7933] Purpose:
Add new feature

Description:
    Add new H5I{dec|get|inc}_ref() routines and tests for them.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-12-11 13:26:56 -05:00
Quincey Koziol
d19927898d [svn-r7921] Purpose:
Bug fix

Description:
    Fix a couple of 1.4 compat bogons that crept in.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    config not tested with h5committest
2003-12-10 11:25:07 -05:00
Quincey Koziol
4a77040deb [svn-r7891] Purpose:
Code cleanup

Description:
    Clean up a compiler warning

Platforms tested:
    Titan (user02)
    Too minor to require h5committest
2003-11-26 12:05:07 -05:00
Quincey Koziol
36a46913be [svn-r7883] Purpose:
Bug fix

Description:
    Handle denormalized floating-point values in a more general way that
uses a different 'epsilon' for determining if two values are "close enough"

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
    Pittsburgh Alpha Cluster (lemieux.psc.edu)
2003-11-25 14:26:04 -05:00
Quincey Koziol
80c45ea549 [svn-r7876] Purpose:
Omnibus floating-point bug fix changes

Description:
    There are a number of problems in the floating-point conversion code that
were exposed by Ray's recent int<->float checkin:
    - The 'my_isnan' code in test/dtypes.c was broken and would always return
        true.  The meant that the actual values in the float<->float conversion
        tests were _never_ checked, hiding the other bugs included in this
        checkin.
    - A recent change I made to the type conversion code used "FLT_MIN" instead
        of "-FLT_MAX" for the most negative 'float' value for the double->float
        conversion, which meant that any the negative number that was converted
        from a double to a float would have been mapped to zero, essentially.
    - A change that Robb appeared to have made ~2.5 years ago to the "generic"
        float->float conversion routine appears to be incorrect and I've backed
        it out.
    - Floating-point conversions on SGI's which converted denormalized values
        would be mapped to zero instead of being propertly preserved in the new
        type.  This was addressed by an SGI-specific system call to prevent the
        behavior.

Solution:
    Described above, generally.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest

Misc. update:
    release_docs/RELEASE update forthcoming...
2003-11-24 11:49:27 -05:00
Quincey Koziol
898ba82d42 [svn-r7844] Purpose:
Bug fix

Description:
    Variable length strings and sequences with NULL pointers were not handled
by library, causing problems access the data.  This also affected fill values
for variable-length datatypes.

Solution:
    Address the issues in the library by detecting NULL sequences/strings
and avoid trying to convert them.

    Patched up dumper to display NULL sequences/strings.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-11-13 10:20:23 -05:00
Quincey Koziol
a89dda8cb1 [svn-r7830] Purpose:
Bug fix & code cleanup

Description:
    Allowing the library to call malloc with a size of 0 bytes causes problems
for some users, so we check for allocations of 0 bytes and disallow them now.

    Cleaned up some code which could call malloc with 0 size.

    Changed some code calling HDmalloc directly to call H5MM_malloc(), which
allows us to check for 0 sized allocations.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too minor to require h5committest
2003-11-08 10:33:13 -05:00
Quincey Koziol
677f6cc3d8 [svn-r7828] Purpose:
Bug fix

Description:
    Make --disable-hsizet work properly again by fixing a couple of tests and
correcting the definition of SSIZET_MAX.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest not used, as it doesn't test this configuration.
2003-11-08 09:21:55 -05:00
Quincey Koziol
5e2f37f579 [svn-r7735] Purpose:
Bug fix

Description:
    Single hyperslab selections (which were set with only one call to
H5Sselect_hyperslab) that had dimensions that could be "flattened" but were
interspersed with dimensions that could not be flattened were not correctly
handled, causing core dumps.

Solution:
    Re-work "flattening" code to handle this case properly.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-10-25 11:42:00 -05:00
Pedro Vicente Nunes
e68e5aea56 [svn-r7678] Purpose:
version 8 of Code Warrior has a bug on the open file function
that causes one of our tests to fail
documented this in the install instructions

removed a CW specific header file include , that was left from version 6
from the file testhdf5.c



Platforms tested:
Code warrior
linux


Misc. update:
2003-10-20 16:04:20 -05:00
Quincey Koziol
cc3f8148ed [svn-r7624] Purpose:
Updated dependencies and tracing information

Platforms tested:
    Not necessary.
2003-10-14 09:32:55 -05:00
Quincey Koziol
7cdd8df50d [svn-r7583] Purpose:
Code cleanup

Description:
    Added line #'s to a bunch of the error printf's, so it's easier to locate
where an error occurs.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Cray SV1 (wind)
2003-10-09 11:55:55 -05:00
Quincey Koziol
90bdeac677 [svn-r7581] Purpose:
Bug fix

Description:
    The tests recently added for checking a file's freespace and verifying the
new fields added to the H5G_stat_t structure use H5T_NATIVE_INT as the type for
the datasets and attributes they create.  Because the tests check explicit file
sizes, this causes problems on Crays, where a native int is 64-bit instead of
32-bit.

Solution:
    Change the tests to use H5T_STD_U32LE instead of H5T_NATIVE_INT.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Cray SV1 (wind)
2003-10-09 11:54:58 -05:00
Quincey Koziol
9eec8c21ea [svn-r7573] Purpose:
Bug fix

Description:
    When too many messages were inserted into an object header, the library
had an internal pointer to the "new message" that was pointing to the incorrect
location when the array of messages was re-allocated.
In the worst case, this could cause a file to be corrupted.

Solution:
    Update the internal pointer when the array is re-allocated.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    Too small to require h5committest
2003-10-08 12:59:23 -05:00
Quincey Koziol
36ac2a1769 [svn-r7562] Purpose:
Feature add

Description:
    Add a few new fields to the H5G_stat_t structure, to allow more information
about the object header to be retrieved.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-10-07 10:27:30 -05:00
Quincey Koziol
a5d1c5c576 [svn-r7560] Purpose:
Add feature

Description:
    Add H5Fget_freespace() routine, to check the amount of free space in a
    file.  This information is only valid until the file is closed currently,
    however (until we start recording the free space information in the file
    itself).

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-10-07 08:57:18 -05:00
Quincey Koziol
2834dda2b4 [svn-r7544] Purpose:
Bug fixes and code cleanup

Description:
    Re-worked ohdr test to use modification time messages instead of symbol
        table messages, now that the library correctly tries deleting the
        local heap and B-trees for the symbol tables (which didn't exist and
        caused the test to fail).

    Added tests for using named datatypes in attributes to verify that the
        reference counts are being tracked correctly, etc.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-10-05 16:26:03 -05:00
Raymond Lu
82515c8899 [svn-r7475] Purpose: add more tests
Description: tests fixed length strings in two ways: array of strings and
    array of characters.


Platforms tested: tested for 1.7 branch.  Should works the same.
2003-09-15 15:42:39 -05:00
Quincey Koziol
f3e445cfcb [svn-r7469] Purpose:
Code cleanup, etc.

Description:
    Generalize Ray's datatype fixes to handle packing compound datatypes which
are the base type of an array or variable-length type, etc.

    Also track "packedness" of a compound datatype from it's creation, instead
of only setting the 'packed' flag after the datatype was explicitly packed.

    Updated docs to reflect that a compound datatype is allowed to grow (but
not shrink).

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-09-11 23:36:23 -05:00
Quincey Koziol
9c31ce9a7b [svn-r7458] Purpose:
Bug fix.

Description:
    Correct bug where a file opened twice, once with read-write permission
and once with read-only permission would cause closing the file with the
read-only file ID to fail because it was trying to flush information out
of the file.

Solution:
    Check the permissions on file IDs that are being closed and only flush
when the particular file ID was opened with write permission.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    too small to need h5committest
2003-09-10 13:33:48 -05:00
Quincey Koziol
80d6d8e472 [svn-r7442] Purpose:
Bug fix

Description:
    The VFL driver ID in a file's access proprty list wasn't being reference
counted correctly, causing the VFL driver to get prematurely closed after
several calls to "H5Pget_access_plist->H5Pclose".

Solution:
    Increment VFL driver ID reference count when copy of file's access property
list is made in H5Pget_access_plist()

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-09-03 21:05:16 -05:00
Quincey Koziol
04137b3a16 [svn-r7435] Purpose:
Bug Fix and code cleanup

Description:
    Correct error in H5T_detect_class that was causing nested compound datatypes
with to not detect the datatype class of fields correctly, which caused errors
with fill-values, variable-length datatypes and chunks later on.

    Return the rank of the array datatype from H5Tget_array_dims(), like
H5Sget_dims().

    Lots of cleanups to datatype code, to make the handling of arrays, compound
types, variable-length strings and sequences and enumerated types more
consistent and robust.

Platforms tested:
    FreeBSD 4.9 (sleipnir)
    h5committest
2003-08-30 20:50:47 -05:00
Quincey Koziol
b772787079 [svn-r7427] Purpose:
Bug fix

Description:
    When datasets are deleted from a file, they are removed from the sieve
    buffer, but instead of invalidating only the part of the sieve buffer affected,
    the sieve buffer code would throw away the entire sieve buffer, potentially
    including other raw data in the buffer that hadn't been written to disk yet.

Solution:
    Improve the sieve buffer clearing code to handle partial invalidations.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-08-28 11:03:34 -05:00
Quincey Koziol
15e1a2c0c0 [svn-r7413] Purpose:
Bug fix

Description:
    H5Gget_objname_by_idx should allow NULL for the 'name' parameter, to allow
    for querying for the name's length.

Solution:
    Allow NULL for the 'name' parameter, the internal functions were already
    ready to handle that case.

    Clean up RM information about H5Gget_objname_by_idx and
    H5Gget_objtype_by_idx also.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-08-26 13:37:33 -05:00
Quincey Koziol
42b1d300a5 [svn-r7392] Purpose:
Bug fix

Description:
    H5Gget_num_objs, H5Gget_objname_by_idx and H5Gget_objtype_by_idx were
only accepting a group ID, instead of a location ID, as our documentation for
them stated.

Solution:
    Allow them to accept a location ID.

Platforms tested:
    FreeBSD 4.8 (sleipnir)
    h5committest
2003-08-22 08:54:08 -05:00