Commit Graph

1137 Commits

Author SHA1 Message Date
Raymond Lu
0d6e379701 [svn-r10931] Purpose: Adjust Test Program and Rename
Description: Renamed test/dt_atomic.c to test/dt_arith.c(an abbreviation
of "arithmetic data types") to better describe the program.  This checkin
broke down into three sections when the floating-point numbers are the
source, normalized, denormalized, and special values.  If there's any
difference of destination values, only normalized value test reports
failure.  The other 2 report only as warning.


Platforms tested: h5commitest and fuss

Misc. update: MANIFEST
2005-06-17 08:33:36 -05:00
Quincey Koziol
7e7dd03a32 [svn-r10920] Purpose:
Bug fix

Description:
    Add check for opaque tags that are too long for file format to handle
currently.


Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5commmitest
2005-06-14 16:18:32 -05:00
Quincey Koziol
54188b4abb [svn-r10875] Purpose:
Bug fix

Description:
    Fix several NULL pointer dereferences when tracking the name of open
objects during some unusual sequences of mount & unmount operations.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-06-08 00:22:28 -05:00
Quincey Koziol
8921cbc802 [svn-r10873] Purpose:
Bug fix

Description:
    Tweaks to make new family file compatibility tests work in non-srcdir
(i.e. "inplace") builds.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w & w/o srcdir
    Too minor to require h5committest
2005-06-07 23:44:13 -05:00
Raymond Lu
6f05197488 [svn-r10862] Purpose: Bug fix
Description:See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution: this is the fifth step of checkin.  Backward compatibility with v1.6
is tested.  A family file created was created with the v1.6 library and opened
with this version of the library.

In the fourth step of checkin, a test suit is added for h5repart,
including a program to generate the test files, a script file to run h5repart,
and a program to verify repartitioned files can be opened by the library.

There's a change from the first step of checkin.  Family name template is no
longer saved in the superblock because different pathname can make the name
different.

In the third step of checkin, h5repart has been modified.  If h5repart is used
to change the size of family member file, the new size(actual member size) is saved
in the superblock.

In the second step of checkin, multi driver is checked against the driver
name saved in superblock.  Wrong driver will result in a failure with an error message indicating
multi driver should be used.  This change includes split driver because it's a special case for multi
driver.

In the first step of checkin.  Family member size and name template(unused at this stage) are saved
in file superblock.  When file is reopened,the size passed in thrin superblock.  A different size
will trigger a failure with an error message indicating the right size.  Wrong driver to open family
file will cause a failure, too.


Platforms tested: h5committest and fuss.

Misc. update: MANIFEST
2005-06-06 17:19:14 -05:00
Albert Cheng
65107926e1 [svn-r10858] Purpose:
bug fix.

Description:
The check-s and check-p targets are not recursively passes down.
Make them so.

Platforms tested:
heping (serial and pp).
2005-06-04 00:01:12 -05:00
Albert Cheng
a2217d58c8 [svn-r10849] Purpose:
bug fix

Description:
check-s and check-p were set as pre-requistics of test.  They
would get executed in parallel if parallel make is used.  This
could cause problems since serial tests are used to be executed
before parallel tests. It is not known if it is always okay to
run serial and parallel tests in simultantously.

Solution:
Change check-s and check-p as actions of the target test so
that they get executed sequnentially.

Platforms tested:
heping PP.
2005-06-02 18:42:48 -05:00
Raymond Lu
7696942940 [svn-r10847] Purpose: Bug fix
Description: See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution: This is the fourth step of checkin.  A test suit is added for h5repart,
including a program to generate the test files, a script file to run h5repart,
and a program to verify repartitioned files can be opened by the library.

There's a change from the first step of checkin.  Family name template is no
longer saved in the superblock because different pathname can make the name
different.

In the third step of checkin, h5repart has been modified.  If h5repart is used
to change the size of family member file, the new size(actual member size) is saved
in the superblock.

In the second step of checkin, multi driver is checked against the driver
name saved in superblock.  Wrong driver will result in a failure with an error message indicating
multi driver should be used.  This change includes split driver because it's a special case for multi
driver.

In the first step of checkin.  Family member size and name template(unused at this stage) are saved
in file superblock.  When file is reopened,the size passed in thrin superblock.  A different size
will trigger a failure with an error message indicating the right size.  Wrong driver to open family
file will cause a failure, too.


Platforms tested: h5committest and fuss.

Misc. update:  MANIFEST
2005-06-02 16:00:23 -05:00
James Laird
2423bd6cab [svn-r10840] Purpose:
Added check-s and check-p targets.

Description:
Added check-s and check-p targets to 1.7 branch to match changes to 1.6
branch.  Now parallel and serial tests can be run separately.

Platforms tested:
mir, modi4, copper
2005-06-01 20:51:52 -05:00
Quincey Koziol
45bbf45250 [svn-r10837] Purpose:
Bug fix/new feature

Description:
    Setting "SEMI" or "STRONG" file close degrees causes problems when multiple
file IDs exist for the same file on disk.

Solution:
    Make the "SEMI" and "STRONG" settings only apply to the file ID that is
being closed.

    Also, add an "H5F_OBJ_LOCAL" flag for the H5Fget_obj_count() &
H5Fget_obj_ids() calls, so that applications can query about objects opened
with a particular file ID instead of all the objects opened in the file on
disk.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-06-01 16:20:10 -05:00
John Mainzer
f4da01545f [svn-r10834] Purpose:
Fix a compile issue with the SX6 port.


Description:

In cache.c, invalid_configs array was declared as const, which caused
problems when elements of the array were passed to H5Pset_mdc_config()


Solution:

Remove the const modifier from the declaration of invalid_configs.


Platforms tested:

Heping (serial)


Misc. update:
2005-05-31 19:47:40 -05:00
Quincey Koziol
78bcbe927f [svn-r10832] Purpose:
Bug fix

Description:
    Fix problems with hyperslab operations with hyperslabs that have count == 0
or block == 0 values. (bugzilla #294)

Solution:
    Detect zero sized selections and translate into appropriate action on the
current hyperslab, rather than go through the formality of generating span
trees with zero-sized spans, etc.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/parallel
    Too minor to require h5committest
2005-05-31 16:20:36 -05:00
Albert Cheng
d81d8e61de [svn-r10806] Purpose:
Cosmic changes when folding getenv_all to v1.6.
No code changes.

Platforms tested:
heping.

Misc. update:
2005-05-26 18:27:24 -05:00
Raymond Lu
a94ac4a3f0 [svn-r10800]
Purpose: Bug fix

Description: The definitions of 2 private functions(test_family_opens()
and test_multi_opens()) fell below the use of them.  g++ on sleipnir
complained they weren't declared.

Solution: Moved the definitions above the use of them.  Problem solved.

Platforms tested: sleipnir - the only platform complained.
2005-05-25 17:08:20 -05:00
Raymond Lu
8ed5f23492 [svn-r10796] Purpose: Bug fix
Description: See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution:  This is the third step of checkin.  h5repart has been modified.  If h5repart is used
to change the size of family member file, the new size(actual member size) is saved
in the superblock.

In the second step of checkin, multi driver is checked against the driver
name saved in superblock.  Wrong driver will result in a failure with an error message indicating
multi driver should be used.  This change includes split driver because it's a special case for multi
driver.

In the first step of checkin.  Family member size and name template(unused at this stage) are saved
in file superblock.  When file is reopened,the size passed in thrin superblock.  A different size
will trigger a failure with an error message indicating the right size.  Wrong driver to open family
file will cause a failure, too.

Platforms tested: h5committest and fuss

Misc. update: RELEASE.txt
2005-05-24 16:21:35 -05:00
Quincey Koziol
af15547dfe [svn-r10789] Purpose:
Bug fix

Description:
    Rearrange functions to make C++ compiler happy.

Platforms tested:
    FreeBSD 4.11 (sleipnir) w/CC=g++
    Outside of h5committest's scope.
2005-05-23 15:44:22 -05:00
Quincey Koziol
5e6b5f30cf [svn-r10786] Purpose:
Add comment

Description:
    Add copyright statement.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-05-23 14:44:45 -05:00
James Laird
985af5617f [svn-r10785] Purpose:
Feature

Description:
Added "support" for UTF-8 character encoding.

Solution:
Wrote tests to check that UTF-8 can be used in a number of places in
HDF5 (object names, data, etc.).  These tests live in test/tunicode.c.
Added a new UTF-8 character encoding for datatypes.

Platforms tested:
mir, modi4, heping

Misc. update:
2005-05-23 13:20:07 -05:00
Raymond Lu
2ae072bb30 [svn-r10779] Purpose: Bug fix
Description:
Description: See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution:  This is the second step of fixing this bug.  Multi driver is checked against the driver
name saved in superblock.  Wrong driver will result in a failure with an error message indicating
multi driver should be used.  This change includes split driver because it's a special case for multi
driver.

In the first step of checkin.  Family member size and name template(unused at this stage) are saved
in file superblock.  When file is reopened,the size passed in thrin superblock.  A different size
will trigger a failure with an error message indicating the right size.  Wrong driver to open family
file will cause a failure, too.

Test program tries to reopen a multi file with default sec2 driver.

The third step will be changing h5repart to let it change family member size in the superblock if
user uses it to change member file size.

Platforms tested: h5committest and fuss.
2005-05-20 16:51:05 -05:00
Raymond Lu
617a21dbb3 [svn-r10777] Purpose: Bug fix
Description: See details from Bug #213.  Family member file size wasn't saved
anywhere in file.  When family file is opened, the first member size determine
the member size.

Solution:  This is the first step of fixing this bug.  Member size and name
template(unused at this stage) are saved in file superblock.  When file is reopened,
the size passed in through H5Pset_fapl_family is checked against the size saved
in superblock.  A different size will trigger a failure with an error message
indicating the right size.  Wrong driver to open family file will cause a failure,
too.

Test program tries to verify different wrong ways to reopen file will fail.

The second step will change multi driver that wrong driver will cause a failure.

Platforms tested: fuss and h5committest
2005-05-20 13:25:36 -05:00
Quincey Koziol
9b4c1ce9f6 [svn-r10750] Purpose:
New feature.

Description:
    Add "memory pool" internal data structure.  This set of routines is
designed to add a way to allocate small pieces of information for a particular
purpose and then free all the pieces at once (i.e. without having to free each
piece individually).  Memory pools are also good for localizing lots of small
allocations that logically belong together.

    For example, if you were constructing a temporary linked list, you could
create a new memory pool, allocate all the nodes for the list from the memory
pool and when you were done with the list, just destroy the pool instead of
tracking through the list and freeing each block independently.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-05-17 14:01:07 -05:00
Quincey Koziol
bbe03d7361 [svn-r10736] Purpose:
Code cleanup

Description:
    Clean up some compiler warnings

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-05-07 14:37:48 -05:00
Quincey Koziol
c952661afb [svn-r10734] Purpose:
Bug fix

Description:
    Fix several problems with mounting files on an entry in a group when the
file the group is in has been closed.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-05-07 14:34:25 -05:00
John Mainzer
724cbc5615 [svn-r10717] Purpose:
Remove C99 types from new metadata cache related API calls
(take 2 -- missed one in the previous check in)


Description:

Windows (and perhaps others) don't like int32_t and int64_t.  While
we have dealt with the issue internally, it is more of a problem
in API calls.


Solution:

Convert int32_t to int and int64_t to long int in the new metadata
cache related API calls.


Platforms tested:

heping


Misc. update:
2005-05-02 16:36:43 -05:00
John Mainzer
cc44e6af63 [svn-r10715] Purpose:
Remove C99 types from new metadata cache related API calls


Description:

Windows (and perhaps others) don't like int32_t and int64_t.  While
we have dealt with the issue internally, it is more of a problem
in API calls.


Solution:

Convert int32_t to int and int64_t to long int in the
H5AC_cache_config_t structure used by the new metadata cache
related API calls.  Added explicit type casts to convert
between internal and external representations.


Platforms tested:

h5committested


Misc. update:
2005-05-02 13:58:28 -05:00
Quincey Koziol
55f8e19fc7 [svn-r10699] Purpose:
Code cleanup

Description:
    Switch name & logic from H5_LLONG_TO_FP_CAST_BROKEN to
H5_LLONG_TO_FP_CAST_WORKS, to better match the rest of the library.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-04-29 15:31:29 -05:00
John Mainzer
a9ba92287d [svn-r10688] Purpose:
Add API calls allowing user control of the metadata cache.


Description:

Prior to this update, the metadata cache was not configurable
from outside the library.


Solution:

Add API calls allowing the user to configure the metadata cache
either at file open time, or for any open file.  Also added calls
permitting the user to monitor cache size and hit rate.  These
latter facilities are needed for "manual" cache size control


Platforms tested:

h5committested


Misc. update:
2005-04-28 11:40:07 -05:00
Xiaowen Wu
348f391e42 [svn-r10682] Purpose:
Slight modifications.

Description:
	Several constants related to the H5Pset_scaleoffset interface
	are added into H5Zpublic.h. Test cases that calls H5Pset_scaleoffset
	needs slight modifications.

Solution:
	Use the defined names when calling H5Pset_scaleoffset instead of
	using numerical numbers.

Platforms tested:
	heping, shanti

Misc. update:
2005-04-27 12:03:06 -05:00
Xiaowen Wu
c5ed3b9576 [svn-r10674] Purpose:
New feature.

Description:
	The scaleoffset filter has been implemented to
	to compress floating-point data (single precision
	and double precision) using D-scale method from
	GRIB.

Solution:
	Test cases for float and double datatypes are added
	according to the change of scaleoffset filter. Situations
	of fill value defined/undefined are tested.

Platforms tested:
	heping, shanti, copper

Misc. update:
2005-04-26 16:42:42 -05:00
Leon Arber
936f41d3f0 [svn-r10661] Purpose:
Bug fix....

Description:
Despite passing all tests, the previous checkin had a copy/paste typo that
resulted in the tests being run under the wrong conditions.

Solution:
Fixed typo.

Platforms tested:
yet another minor change... copper only.

Misc. update:
2005-04-25 14:40:36 -05:00
Leon Arber
1208855335 [svn-r10660] Purpose:
bug fix (sorta)

Description:
Rename H5_LLONG_TO_FP_CAST_WORKS to H5_LLONG_TO_FP_CAST_BROKEN

Solution:
Since a test for  H5_LLONG_TO_FP_CAST_WORKS is not present in the configure script,
the dtransform test would assume that this cast doesn't work and skip the test.  Change the variable around
so that, by default, it is assumed a long long to double cast does work.

Platforms tested:
minor change: copper, sol

Misc. update:
2005-04-25 14:33:44 -05:00
Leon Arber
0ae785b76b [svn-r10658] Purpose:
Bug fix

Description:
The intel compiler on windows doesn't support long long to double conversion.

Solution:
Added a flag  H5_LLONG_TO_FP_CAST_WORKS.  When it is not defined, the data transform will issue
an error when someone tries to perform a transform from long long to double and the long long to double
dtransform test will be skipped.

Platforms tested:
heping, sol, copper

Misc. update:
2005-04-25 14:14:01 -05:00
Quincey Koziol
0cf3f85cce [svn-r10637] Purpose:
Bug fix/code cleanup

Description:
    Add tests to determine that very long (64K+) object names are working.
Fixed a couple of bugs in h5dump where they weren't...

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Solaris 2.9 (shanti)
2005-04-21 01:55:42 -05:00
Leon Arber
7058153705 [svn-r10634] Purpose:
Use getenv_all for determining HDF5_PARAPREFIX instead of getenv

Description:
the environment variable HDF5_PARAPREFIX is now determined collectively, instead of
having each task call getenv.

Solution:
Environment variables set for task 0 often do not propogate to other tasks which
leads to obscure and hard to track down bugs.  getenv_all was written to overcome
this by having all tasks query a single task for the value of its environment.
Eventually, all calls to getenv will be migrated to use getenv_all.  For now,
only HDF5_PARAPREFIX will be determined this way.

Platforms tested:
heping pp, sol pp

Misc. update:
2005-04-20 16:48:31 -05:00
Quincey Koziol
af6276f654 [svn-r10628] Purpose:
Code cleanup

Description:
    Clean up various warnings reported by the Windows team.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-04-18 16:21:35 -05:00
Raymond Lu
28a3ec7209 [svn-r10622] Purpose: Bug fix
Description:  Some memory buffers were allocated by HDmalloc() but weren't cleaned
up before use.

Solution:  Use HDmemset() to 0 set the buffers.

Platforms tested: h5committest.
2005-04-16 12:15:38 -05:00
Quincey Koziol
9b68e8e927 [svn-r10620] Purpose:
Bug fix

Description:
    Opening a dataset (or named datatype) with "." for the name and using a
group ID for the location ID was not returning an error value.

Solution:
    Check the type of the object before attempting to open it (internally,
using a group ID and "." for the name maps to the group object).

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Solaris 2.9 (shanti)
    Too minor to require h5committest
2005-04-16 11:22:16 -05:00
Xiaowen Wu
3604c17051 [svn-r10603] Purpose:
Bug fix.

Description:
     The nbit filter test case (compound datatype with no-op field)
     can not pass the daily test on heping and eirene when the
     enable-production option is set with configure and PGI compiler
     is used. It will generate segmentation fault.

Solution:
     It was found that the seg fault disappears when adding a new
     index variable in the test case and using it instead of using
     an existing index variable twice during initialization.

     This does not make much sense since previous codes is logically
     equivalent to the changed codes. So, some other factors beyond
     the test case codes may have caused the problem.

Platforms tested:
     heping

Misc. update:
2005-04-13 21:05:42 -05:00
Elena Pourmal
5279827823 [svn-r10570] Purpose: Maintenance
Description: Removed support for SRB driver

Solution: Removed or modified appropriate files; ran reconfigure
          to regenerate Makefile.in and configure files.

Platforms tested: heping and shanti

Misc. update: ran bin/chkmanifest on heping
2005-04-07 14:41:25 -05:00
Xiaowen Wu
26b964c8fa [svn-r10569] Purpose:
New feature.

Description:
    The N-Bit filter needs a test case for no-op datatypes.

Solution:
    A test case was added to test a compound datatype with
    N-Bit fields and no-op fields.

Platforms tested:
    heping, shanti

Misc. update:
2005-04-06 21:43:45 -05:00
MuQun Yang
5c7a236baa [svn-r10558] Purpose:
Change maximum test number from 30 to 40 since more collective IO tests were
added into parallel HDF5 test.

Description:

Solution:

Platforms tested:
heping, copper, tungsten, cobalt, SDSC TG.

Misc. update:
2005-04-06 09:15:32 -05:00
Leon Arber
bba7693f56 [svn-r10555] Purpose:
Feature

Description:
Added new function, getenv_all (only for parallel builds)

Solution:
getenv_all is a collective version of getenv.  It is used to the return the value of
an environment variable in another task and can be used to synchronize all of the
environment variables used by all of the tasks.  This helps to fix problems that commonly crop up
(like with HDF5_PARAPREFIX) when an environment variable does not propogate to other tasks.

This commit only includes the function.  Future commits will replace the various getenv calls with getenv_all calls.

Platforms tested:
heping, sol, copper

Misc. update:
2005-04-05 16:42:02 -05:00
Raymond Lu
138abc3279 [svn-r10550] Purpose: Splitting dtypes.c
Description:  Yesterday, dtypes.c was split into two programs, dtypes.c and dt_atomic.c.
After dt_atomic.c was added, dtypes.c remained the same as before waiting for the
daily test to pass.  While dt_atomic.c turned out fine today, the  test in dt_atomic.c
was taken out from dtypes.c.  There's also some minor change in dt_atomic.c.


Platforms tested: h5committest
2005-04-05 15:25:21 -05:00
Quincey Koziol
1104db03b6 [svn-r10542] Purpose:
Code cleanup

Description:
    Clean up more test files

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-04-05 14:10:53 -05:00
Raymond Lu
e0f167780b [svn-r10535] Purpose: Spliting Test
Description:  Split test/dtypes.c because it's so big.  Moved all integer-integer,
floating-floating, integer-floating, floating-integer, derived integer, derived
floating conversion tests to a new test program, dt_atomic.c.  The test remains
the same basically.


Platforms tested: fuss and h5committest

Misc. update: MANIFEST
2005-04-04 17:35:35 -05:00
James Laird
b296a419c4 [svn-r10534] Purpose:
Configuration feature

Description:
Different Fortran compilers mangle function names in different ways
(upper case, lower case, adding underscores).  To link between
Fortran and C functions, we need to know what a given function's
name is under a given compiler.

Solution:
Use autoconf's FC_WRAPPERS check to determine the Fortran
naming scheme and define the FC_FUNC_ macro to name our
functions (in H5f90proto.h).  Removed references to
our old FNAME macro, as well as flags that indicated whether
function names were upper or lower case.

Platforms tested:
mir, pommier, modi4, copper, more
2005-04-04 16:17:51 -05:00
Raymond Lu
3cf7dbbf1d [svn-r10531] Purpose: Bug fix
Description:  In the last checkin, the fix wasn't quite correct.  This round simply corrects the mistake
from last round, especially the endianess was left out.


Platforms tested:  shanti, modi4, fuss - these machines cover both little and big endians.
2005-04-01 09:08:24 -05:00
James Laird
59ec5b3d66 [svn-r10517] Purpose:
Bug fix

Description:
On some machines, $RUNSERIAL variable needs to be used to run
tests.  Set $RUNTESTS (which is used for non-parallel tests) to
be $RUNSERIAL in configure.am.

Also, since I was updating all Makefiles.in anyway, I updated
commence.am to point to autotools installs in AFS instead of
those on heping.

Platforms tested:
mir, sleipnir, modi4, copper
2005-03-31 13:26:17 -05:00
Raymond Lu
54f0b6c66d [svn-r10512] Purpose: Bug fix
Description:  In test_conv_int_float(), when testing special floating-point value NaN, the test program
couldn't detect it for Linux Intel compiler when it's optimized.  The reason is in my_isnan(), a printf
command used "%LLg" to print "long double".

Solution:  Changed it to "%Lg".  Also differentiate cases for NaN, using exception handler if present,
decide if software conversion set converted integer to 0, or simply skip for hardware conversion.

Platforms tested:  heping - simple change.
2005-03-30 17:22:42 -05:00
James Laird
14e06e81cb [svn-r10511]
Purpose:
"Bug fix"

Description:
Hardcoded Makefiles to use /bin/sh instead of letting configure
detect shell automatically.  This is what v1.6 does, and avoids
problems on janus.

Platforms tested:
sleipnir, copper, modi4, mir
2005-03-30 16:14:48 -05:00