Commit Graph

8835 Commits

Author SHA1 Message Date
Albert Cheng
cce17a2274 [svn-r12535] Added a new test for testing error handling of non-existing file.
nosuchfile.ls is the expected output.

Tested: tg-ncsa and heping.
2006-08-03 22:59:24 -05:00
Albert Cheng
104edc6fb9 [svn-r12534] Purpose:
Bug fixes.

Description:
There were MPI_init and MPI_finalize calls in the code of h5tools_fopen in
parallel mode.  But if a non-MPI tool is invoke to open a non-existing
file, it tries to open the non-existing file with different VFD and
eventaully came to try with the MPIO or the MPIPOSIX vfd, then it would
try to do MPI_Init which would fail in the MPI environment if the a.out
was not launched by MPI properly.

Solution:
MPI_Init and MPI_Finalize in general should be called by the MPI application,
not called by a library subroutine as in the manner that was done here.
Removed the MPI_init and MPI_Finalize calls.  Used MPI_Initialized to
verify if this has been launched as an MPI application in the proper
manner before attempting to use the MPIO or the MPIPOSIX VFD to open
the file.

Tested:
In tg-ncsa parallel, where it had failed explicitly and also in Heping,
using both serial and parallel mode.
2006-08-03 21:57:36 -05:00
James Laird
b5724779d0 [svn-r12533] Standardized the way path prefixes are passed to external links using a
LAPL.  Now there are H5Pget and H5Pset functions for "elink_prefixes".
2006-08-03 17:35:58 -05:00
MuQun Yang
b1e0516dd0 [svn-r12532] Update windows projects with James and Quincey's new changes.
Found two minor bugs in h5dumpgentst.c and links.c. Have informed James. Should work with windows.

Tests with MSVS 6.0 with visual fortran 6.6c.
2006-08-03 16:07:27 -05:00
James Laird
d2dc352530 [svn-r12531] Fixed a bug that occurred with 64-bit compilers. Types were used inconsistently
(the nlinks property was an int in some places and a size_t elsewhere--it is now
a size_t everywhere).
2006-08-03 13:39:34 -05:00
James Laird
59e9037d38 [svn-r12530] Skipped objcopy and links tests when certain file drivers are used. 2006-08-03 12:58:06 -05:00
James Laird
fb4711f6dd [svn-r12529] Fixed a couple of bugs that were causing trouble for Windows builds (not sure
why they weren't on other systems).  Thanks, Kent!
2006-08-03 12:44:16 -05:00
James Laird
3e755623cb [svn-r12528] Added User-Defined links to the library.
Users can create external links using H5L_create_external().  These links
point to an object in another HDF5 file.  Users can alter the behavior of
external links or create new kinds of links by registering callbacks
using the H5L interface.

Added tests, tools support, etc.

Also a number of other, minor changes have been made (some restructuring of
the H5L interface, for instance).

Additional documentation and examples are forthcoming.
2006-08-02 18:41:53 -05:00
Elena Pourmal
71a4d0e9c4 [svn-r12526] Description:
Added test script to test h5import tool; added new source file
  to the make.com file in the src directory.

Platforms tested:
  Only h5import was tested on the VMS server
2006-08-02 14:08:09 -05:00
Quincey Koziol
c951c27830 [svn-r12525] Description:
Refactored free space manager to use metadata cache for serialized free
space sections.  This speeds up the fractal heap test considerably...

Tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4/32 (chicago)
    Linux 2.4/64 (mir)
    Mac OS X (amazon)
2006-08-02 11:44:44 -05:00
James Laird
d296efb47e [svn-r12524] Changed number of arguments to H5Gcreate_expand. Should stop the DT from
dying again.
2006-08-02 10:59:05 -05:00
Elena Pourmal
676260a09b [svn-r12523] Description:
Added command files to compile and test h5copy tool.

Platfroms tested:
  VMS server
2006-08-01 16:41:15 -05:00
Albert Cheng
1be6fb8417 [svn-r12522] h5copy was not able to find the source file because it was not using
the $srcdir properly.  It is not right to chdir into testfiles and write
files there because in real srcdir mode, one should not changes things
in the srcdir area which could be shared by multiple builds simultanteously.

Solution: added the proper $srcdir components to the source file name.
Also clean up the indentation by cb.

Tested: only by hand in heping.
2006-08-01 09:31:45 -05:00
Elena Pourmal
400676eea0 [svn-r12521] Description:
ttsafe test failed on the tts_error call. The error was due to the outdated 
     expected error stack; fixed.

     Test was also moved to use new error APIs.

Platforms tested: Linux 2.4 (heping) and Solaris 2.9 (shanti)
2006-07-31 15:57:44 -05:00
Pedro Vicente Nunes
26303bfdb5 [svn-r12520] bug fix
added a call to h5tools_close

tested: linux
2006-07-31 14:53:14 -05:00
James Laird
beb04ae817 [svn-r12519] Fixed "make check-vfd"
"make check-vfd" will now run all tests in the test directory with different
file drivers (at least, all of those tests that use the testing framework's
FAPL).  Tests that fail will be skipped.

This is not a perfect fix, but is better than nothing.

Along with this change, check-vfd should be added to the Daily Tests.
2006-07-31 14:46:16 -05:00
Pedro Vicente Nunes
70b46a1d89 [svn-r12518] h5dump binary output:
1. changed the -F flag option names to "BE and "LE" for big and little endian 
2. added a more verbose usage message for these options
3. add a new test
4. add a make clean instruction  to *.bin
2006-07-31 11:04:31 -05:00
Quincey Koziol
87449d081d [svn-r12517] Description:
Fix the last scattered bunch of problems with the object deletion code,
which appears to be completely working now (for objects that are stored
within heap blocks - standalone objects aren't implemented yet).

    Also, re-work the regression test to speed up some of the existing tests
and add in 100-200 more combinations of tests - overall, its probably even
slower than it was... :-/

Tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4 (chicago)
    Mac OS X (amazon)
2006-07-31 04:54:09 -05:00
Pedro Vicente Nunes
ce859f41bb [svn-r12515]
updated the usage message with new info for the binary output option

tested: linux
2006-07-28 13:39:05 -05:00
Elena Pourmal
4b72fd4f55 [svn-r12514] Scale+offset filter is not supported by h5repack; commented out the tests.
This command script cannot tell reliably if tests passed. More work is needed.
2006-07-28 10:20:07 -05:00
Pedro Vicente Nunes
c7384f49e0 [svn-r12513]
new feature
h5dump binary output. use little and big endian type conversions
2006-07-28 10:00:29 -05:00
Elena Pourmal
e55a2e7bd1 [svn-r12512] Added check_h5repack.com file to MANIFEST 2006-07-27 18:04:27 -05:00
Elena Pourmal
3d7da924a4 [svn-r12511] Added command file to test h5repack and fixed command file to build the tool.
Test command file is not quite working yet.
2006-07-27 18:02:26 -05:00
Pedro Vicente Nunes
e5efc2f057 [svn-r12510] add a test for a missing file name
test: linux
2006-07-27 13:52:26 -05:00
Elena Pourmal
6a3cbe5b70 [svn-r12509] Added command file to test h5diff utility.
All tests passed on the VMS server.
2006-07-27 11:42:32 -05:00
MuQun Yang
48054acffe [svn-r12508] 2006-07-27 10:07:38 -05:00
MuQun Yang
6fdd51ebc3 [svn-r12507] Accidently add some windows specific files into subversion.
Now delete them. Sorry for the mistake.
2006-07-27 10:06:57 -05:00
Pedro Vicente Nunes
b7dd856aea [svn-r12504]
bug fix

calling h5tools_get_fapl running the mpio driver caused H5FD_pl_copy to
fail silently in some conditions. a MPI call was made before MPI_Init.

solution: corrected the MPI call to be made after MPI_Init and added error return
conditions to H5FD_pl_copy and h5tools_get_fapl

tested on copper parallel, mir, shanti
2006-07-27 10:01:48 -05:00
MuQun Yang
4749d8e0e9 [svn-r12503] Add a new windows project h5copy.dsp into subversion.
This will generate h5copy on windows.

The previous check-in is under the wrong directory.
2006-07-27 09:47:53 -05:00
MuQun Yang
449616b5ba [svn-r12502] Add a new windows project h5copy.dsp into subversion.
This will generate h5copy on windows.
2006-07-27 09:42:38 -05:00
Elena Pourmal
514c23f146 [svn-r12501] This is a small bug fix.
h5ls uses -S flag to display datatype in a machine-readable form. Since
VMS is not a case sensitive system, triple quotes around S are needed; fixed.

h5ls -w80 -v -S tattr2.h5 

test still reports failure due to line 311 in the tattr2.ls file "Modified: XXXX..."
Document it for now in the command file.
2006-07-27 09:41:33 -05:00
MuQun Yang
f7fa14b1e9 [svn-r12500] Add new project directory h5copy to support h5copy tool. 2006-07-27 09:36:07 -05:00
MuQun Yang
f7d6f53a68 [svn-r12499] Windows project updating:
Updating all.dsw,all.sln(for command-line testing only) and binread.dsp.

New projects have been added into.
2006-07-27 09:31:34 -05:00
Elena Pourmal
c8157183b6 [svn-r12498] Added script to test h5ls tool on VMS system. All tests passed except for
the last one 
      h5ls -w80 -v -S tattr2.h5

h5ls prints "native" for all types instead of the complete datatype definition. 
I will look into the problem next.
2006-07-26 17:11:22 -05:00
MuQun Yang
25842752b4 [svn-r12497] Update MANIFEST so that new windows dsp file binread.dsp is included.
Forgetting updating MANIFEST  may be the reason why alpha release doesn't include binread.dsp and causes the problem on windows.
2006-07-26 11:08:01 -05:00
Quincey Koziol
d3548fa09c [svn-r12495] Description:
Checkpoint further work on object deletion code for fractal heaps.  I
believe everything is finally working for this sub-task.  More regression tests
soon, but I don't foresee any problems.

Machines:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4 (chicago)
2006-07-24 20:40:00 -05:00
Quincey Koziol
24112b0112 [svn-r12492] Fix compile error for non-debug builds 2006-07-22 22:24:36 -05:00
Quincey Koziol
58ed885d13 [svn-r12491] Description:
Refactored object deletion code for fractal heap to fix scaling problems.
Passing all previous tests again now.

Tested:
    FreeBSD 4.11 (sleipnir)
    Linux 2.4 (chicago)
    Mac OS X (amazon)
2006-07-21 20:55:14 -05:00
Pedro Vicente Nunes
59d5e5c6fb [svn-r12490]
commented h5copy calls that are failing with mpicc compiler
2006-07-21 13:33:17 -05:00
Pedro Vicente Nunes
29cd766ae0 [svn-r12489] removed some whitespace 2006-07-21 11:03:13 -05:00
Pedro Vicente Nunes
4e9213bc63 [svn-r12488] added a missing file to manifest 2006-07-21 10:05:48 -05:00
Pedro Vicente Nunes
2b65473c85 [svn-r12487]
updated some comments
2006-07-20 16:33:25 -05:00
Pedro Vicente Nunes
9ddb68e9f3 [svn-r12486] added some tests to the h5copy shell script
tested: shanti, mir
2006-07-20 14:24:48 -05:00
Albert Cheng
320a4f5e1f [svn-r12484] Purpose:
Upgrade

Description:
chnaged it from doing CVS-managed files to SVN-managed files.
(The use of ed, is real ugly, but ed exists in all Unix systems.
May want to consider using awk which is a more powerful and will have
a cleaner implementation.)
2006-07-20 14:02:14 -05:00
Pedro Vicente Nunes
01c58f7fe9 [svn-r12483] Removed some white space from h5copy.c
his line, and those below, will be ignored--

M    h5copy/h5copy.c
2006-07-19 17:12:06 -05:00
Pedro Vicente Nunes
5d8a9053c7 [svn-r12482] new tool h5copy
it uses the API function H5Gcopy to copy groups and datasets from file
to file, read from a command line

note: the test script is not finished yet
tested on heping, copper, shanti
2006-07-19 16:47:33 -05:00
Elena Pourmal
b0379795d5 [svn-r12478] Changed version number to 1.8.0-alpha5 after tagging hdf5-1.8.0-alpha4 release
with "hdf5_1_8_0_alpha4" tag.
2006-07-16 21:59:54 -05:00
Elena Pourmal
9dc96eab6f [svn-r12476] iCommiting files modified by bin/release before tagging hdf5-1.8.0-alpha4 2006-07-16 21:51:26 -05:00
Elena Pourmal
84dfa1d125 [svn-r12475] Added source files related to the recent link object changes in the libraary. 2006-07-16 12:08:22 -05:00
Quincey Koziol
e9d6c992d6 [svn-r12474]
Clean up some compiler warnings.

Tested on:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2006-07-15 14:49:04 -05:00