Commit Graph

1672 Commits

Author SHA1 Message Date
Pedro Vicente Nunes
a72dc6c92c [svn-r15521] #1184
Add a userblock to an HDF5 file during the repack.  The user gives  
give a filename and userblock size as command line parameters to  
h5repack and the contents of that file are stored in the  
userblock for the HDF5 file created by h5repack.

New flags to handle this -u and -b
Tested : windows, linux
2008-08-22 10:53:07 -05:00
Pedro Vicente Nunes
5f7de91688 [svn-r15509] bug fix
when comparing attributes, a type ID was not properly closed 

solution: close the Id on the iteration and continue instead of goto out of the cycle
2008-08-21 14:15:05 -05:00
Quincey Koziol
507a211257 [svn-r15462] Description:
Correct compiler warnings from Visual Studio.

Tested on:
    Mac OS X/32 10.5.4 (amazon) w/FORTRAN & C++
    (Too minor to require full h5committest)
2008-08-12 07:46:40 -05:00
Neil Fortner
4f61812180 [svn-r15458] Purpose: Modify the library to take the proper action when files with incorrect
datatype versions are encountered.

Description: The library now recognizes some problems with datatype versions in
H5O_decode_helper(), and, if not performing strict format checks, automatically
corrects them.  Framework added for other message decode routines to
automatically correct file errors.  Datatype version information added to
h5debug.

Tested: kagiso, smirom, linew (h5committest)
2008-08-11 10:16:34 -05:00
Pedro Vicente Nunes
a5de140500 [svn-r15446] bug fix
http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=788
don't print array indices for regions

tested: windows, linux
2008-08-07 10:15:04 -05:00
Pedro Vicente Nunes
c3bdc28062 [svn-r15445] added some comments
tested: windows, linux
2008-08-07 08:09:35 -05:00
Peter Cao
2b3a491ee1 [svn-r15439] Add the following patch
===
The following patch to h5copy.c on or near line 173 makes the
tool substantially more useful...
     *flag = (*flag) | fla;
Because the command-line option parsing permits multiple '-f' arguments,
this will have the effect of or'ing the flags together so one can do
someting like....

~/tmp/hdf5-1.8.1/tools/h5copy/h5copy -i multi_ucd3d.h5 -s block5 -o gorfo -d foo -f shallow -f soft

Mark C. Miller, Lawrence Livermore National Laboratory
email: mailto:miller86@llnl.gov
===
2008-08-06 13:16:44 -05:00
Scott Wegner
e47c44c04a [svn-r15438] Purpose: Bring the Windows H5pubconf.h up-to-date
Description:
This commit is a major update to the Windows-maintained H5pubconf.h file.  This file is statically-distributed because Windows cannot generate it dynamically as other platforms do.  Previously, our Windows version contained a minimal subset of the macro definitions required.  To update, I've gone through each macro (based on kagiso's output), and tested for the correct value on Windows.  This allows us to better target code based on feature flags.  It should also be easier to update in the future as changes are made to the configure script.

This commit also contains one small bug fix in h5ls.c.  Some Windows-specific code was missing a local variable definition.  The bug went unnoticed because Windows didn't define the feature flag correctly.

I've also made changes to the h5vers script.  Whenever the version string is incremented (automatically by h5test after a snapshot), the strings in H5pubconf.h will also be updated.

Tested:
VS2005 on WinXP (32- and 64-bit)
VS.NET on WinXP 32-bit
h5vers tested under Cygwin
2008-08-06 12:18:47 -05:00
Pedro Vicente Nunes
8ee8a3fde6 [svn-r15432] bug fix
the compression ratio was being printed for cases where a layout was requested and not a filter

tested: windows, linux
2008-08-05 10:34:12 -05:00
Pedro Vicente Nunes
422ac99509 [svn-r15431] added the h5diff "contents" mode to the h5diff calls in the h5repack test
tested: windows, linux
2008-08-05 10:07:12 -05:00
Pedro Vicente Nunes
6787ef71a2 [svn-r15428] http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1170
Summary: when using h5diff to compare the results of h5repack (or other tools that copy one HDF5 file to another), a new option is needed to allow h5diff to make an "absolute" comparison of the 2 files. This is the "contents" mode explained in the usage below.

If this mode is present, objects in both files must match (must be exactly the same). If this does not happen, the tool returns an error code of 1 (instead of the success code of 0)

Changes to the h5repack test script: the call to h5diff was changed to include -c (maintaining the previous -q). 

tested: windows, linux, solaris
2008-08-04 16:13:16 -05:00
Pedro Vicente Nunes
5a752d6e90 [svn-r15421] bug fix
the parsing of the command line strings for the shared object header message type was not being done correctly (strcmp)
fix: substituted by strncmp

tested: windows, linux
2008-07-28 16:08:34 -05:00
Neil Fortner
9139c12ea0 [svn-r15337] Unintended change to h5dump.c. Reverted. 2008-07-08 11:49:17 -05:00
Neil Fortner
78d22e2c44 [svn-r15335] Fixed incorrect error message in H5Pset_fletcher32:
"unable to add deflate filter to pipeline"
->
"unable to add fletcher32 filter to pipeline"

Tested: kagiso
2008-07-08 11:19:52 -05:00
Vailin Choi
1501afca83 [svn-r15320] Update the test files for h5stat.
h5committested.
2008-07-03 16:51:28 -05:00
Pedro Vicente Nunes
5bf91156a7 [svn-r15315] remove h5jam files 2008-07-03 08:37:46 -05:00
Pedro Vicente Nunes
89bb6df86e [svn-r15314] moved h5jam test files to tools/h5jam/testfiles
tested: linux
2008-07-03 08:32:39 -05:00
Pedro Vicente Nunes
cb7a01f5ce [svn-r15292] moved h52jpeg to /hl/tools/h52jpeg
tested: linux
2008-06-28 16:06:35 -05:00
Pedro Vicente Nunes
e31678c3a2 [svn-r15291] Implementation of generating more use cases (datasets of several types) for the test generator program and file
Implementation of transforming 2D datasets with integer and float classes to 8bit acceptable by the jpeg library.

tested: windows, linux
2008-06-27 14:15:53 -05:00
Pedro Vicente Nunes
a0dbf6ec46 [svn-r15280] code cleaning (for some reason svn has been duplicating blocks of code) 2008-06-25 16:12:17 -05:00
Pedro Vicente Nunes
88982c9301 [svn-r15279] more code cleaning 2008-06-25 16:08:48 -05:00
Pedro Vicente Nunes
604810e35c [svn-r15278] code cleaning and comments 2008-06-25 16:02:02 -05:00
Pedro Vicente Nunes
301c5fd218 [svn-r15277] added code for reading an image type from the command line
added a new test run for the shell script with image name specified

tested: windows, linux
2008-06-25 15:44:51 -05:00
Pedro Vicente Nunes
640e7a9bab [svn-r15276] added the code for using an image name from the command line
tested: windows, linux
2008-06-25 14:49:31 -05:00
Pedro Vicente Nunes
efc8bb49b3 [svn-r15251] Moved all h5copy testfiles from /tools/testfiles to tools/h5copy/testfiles
tested: linux
2008-06-20 10:44:45 -05:00
Pedro Vicente Nunes
91a0ec7b08 [svn-r15247] Moved all h5repack testfiles from /tools/testfiles to tools/h5repack/testfiles
tested: linux
2008-06-20 09:17:16 -05:00
Pedro Vicente Nunes
096b0127bc [svn-r15246] Changed the shell script to avoid doing a cd $srcdir
The name of the files are now given by its full name relative to $srcdir

To avoid the printing of the complete full path of the test file, that hides
all the other parameters for long paths, the printing of the command line 
is done first in TESTING with the name only of the test file, not its full path 

the printing in the expected output that had the file name was removed as well as 3 tests that tested error messages in which the file name was present

tested: linux (in 2 different build directories relative to $srcdir), solaris
2008-06-19 21:05:11 -05:00
Pedro Vicente Nunes
83ddc834f4 [svn-r15238]
Moved all h5diff testfiles from /tools/testfiles to tools/h5diff/testfiles

Tested: linux, solaris
2008-06-19 10:34:12 -05:00
Pedro Vicente Nunes
b7ef9f5e56 [svn-r15225] added a function that calls the jpeg library and writes a jgeg file for each HDF5 image
tested: windows, linux
2008-06-17 10:32:39 -05:00
Pedro Vicente Nunes
fb81baa62c [svn-r15222] moved the h52jpeg testfiles location from /tools/testfiles to /tools/h52jpeg/testfiles
updated the shell script accordingly

tested: linux
2008-06-16 21:01:24 -05:00
Pedro Vicente Nunes
0df34ad232 [svn-r15219] added a test file and a test script
for now, the test script just calls the tool binary with the command line parameters, with no special
checking of the accuracy of the output contents (jpeg files)

tested: linux
2008-06-16 15:28:52 -05:00
Pedro Vicente Nunes
f5553240b8 [svn-r15217] added a HDF5 file generator program that reads 2 realistic images from ASCII files, a true color and a gray color image
the HDF5 file generated is used by h52jpeg to generate jpeg images

tested: windows
2008-06-16 10:11:44 -05:00
Pedro Vicente Nunes
48007db46b [svn-r15216] added code for the jpeg library to be linked in linux systems
for now, just added "-ljpeg" to the list of libraries, until a permanent solution is added to configure --with-jpeg= that would allow users to specify their own jpeg libary

tested: linux (kagiso, that has a jpeg library installed)
2008-06-16 10:06:27 -05:00
Pedro Vicente Nunes
5ad6d8c34c [svn-r15190] added code to read datasets, concatenate output names
tested: windows
2008-06-10 15:59:30 -05:00
Mike McGreevy
9c6cbe9b10 [svn-r15187] Purpose: Disabling h52jpeg directory from being built while issues surrounding
its location and its dependencies are worked out.

Tested: kagiso
2008-06-10 10:27:57 -05:00
Pedro Vicente Nunes
ff94716199 [svn-r15184] added the configure and Makefile changes to build h52jpeg in unix systems
tested: linux, solaris
2008-06-09 15:20:43 -05:00
Scott Wegner
7a92820e35 [svn-r15183] Purpose: _WIN32 macro cleanup
Description:
As part of our Windows cleanup, we try to remove windows-specific tweaks in the source code.  There are many instances where Windows code is introduces via ifdef's.  We re-evaluate whether they are still required, and found that many of them are not.  Others we change to "feature"-specific code, rather than Windows-specific.

Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagisopp, smirom, linew)
2008-06-09 13:41:29 -05:00
Pedro Vicente Nunes
2221c969a3 [svn-r15178] added the routine h52jpeg that traverses the file in the same way of h5diff/h5repack
tested: windows
2008-06-09 11:19:58 -05:00
Scott Wegner
532e23b808 [svn-r15150] Purpose: Separate Windows function macro definitions to win32defs.h
Description:
In library code, we try not to use system calls directly, but instead use the HD{function} macro instead.  This way, we can map special versions of the call on particular systems.  Previously, it was all done in H5private.h.  However, in an effort to clean up platform-specific definitions, we move all of the Windows macros into a separate file, win32defs.h.  This way, we can use the non-Posix versions that Visual Studio sends warnings about.

Some macros are set specifically in the platform-specific header files.  Then, any macros left unset will be set by the "default" implementation in H5private.h.

This checkin also cleans up various source files to use the HD* macros when possible.

Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagiso, linew, smirom)
2008-06-05 13:52:19 -05:00
Pedro Vicente Nunes
671d37e6c5 [svn-r15143]
Fix for #1169
http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1169

don't print attributes to stdout when doing binary output
added an attribute to the file run on the binary output test

tested: windows, linux
2008-06-05 09:37:21 -05:00
Quincey Koziol
b75540244f [svn-r15133] Description:
Fixed bug in h5ls that prevented relative group listings (like
"h5ls foo.h5/bar") from working correctly.

Tested on:
        FreeBSD/32 6.2 (duty) in debug mode
        FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
                                in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                                in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                                w/szip filter, in production mode
        Mac OS X/32 10.5.3 (amazon) in debug mode
        Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 19:17:27 -05:00
Quincey Koziol
771bae8888 [svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.

	Cleaned up a few bugs and added some additional tests also.

Tested on:
        FreeBSD/32 6.2 (duty) in debug mode
        FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
                                in debug mode
        Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
                                in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                                in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                                w/szip filter, in production mode
        Mac OS X/32 10.5.2 (amazon) in debug mode
        Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
Albert Cheng
fc7aea6f7f [svn-r15124] Purpose:
bug fixes.

Description:
Added code to create an empty hdf5 (named h5diff_empty.h5) in order to test
if h5diff compares correctly an empty hdf5 vs. a non-empty one.

Tested:
Tested in kagiso of h5diffgentest itself.
Verified by h5dump that h5diff_empty.h5 was indeed empty.
Then "h5diff h5diff_empty.h5 h5diff_basic1.h5" returned 0 (should have
returned non-zero).
2008-06-02 12:47:30 -05:00
Pedro Vicente Nunes
0838a8ddc7 [svn-r15122] command line parsing and usage
tested: windows
2008-06-02 11:28:14 -05:00
Pedro Vicente Nunes
9178314ee9 [svn-r15117] added repo entries for the h52jpeg test generator program 2008-06-02 10:29:35 -05:00
Pedro Vicente Nunes
2e4611e94e [svn-r15099] location for h52jpeg 2008-05-30 09:05:38 -05:00
Pedro Vicente Nunes
0c40ae2d42 [svn-r15052] Add a test for the 1.6.7 -i infile -o outifle for backward compability
Used the function TOOLTEST  from 1.6.7

Tested: linux
2008-05-21 09:53:53 -05:00
Pedro Vicente Nunes
e0e2b131ea [svn-r15047] bug fix regarding change from -i to -d regarding number of links in indexed format
tested: windows
2008-05-20 15:27:53 -05:00
Pedro Vicente Nunes
449941a28e [svn-r15044] backward compatibility for old -i infile -o outfile options
if these are detected this syntax is used, otherwise the one in usage is used
there was another -i option for 


-i L2, --indexed=L2     Minimum number of links in the indexed format


That was changed to -d


-d L2, --indexed=L2     Minimum number of links in the indexed format


Tested: windows, linux
2008-05-20 14:05:28 -05:00
Albert Cheng
ca94c839d5 [svn-r15036] Bug fix.
Description:
The fortran Makefile.am used HDF_FORTRAN to indicate it is part of the
Fortran API source so that conclude.am will give fortran api prefix in the
test output.  The symbox HDF_FORTRAN is also used in configure for a different
purpose (indicated --enable-fortran). They conflicted.
Similar problem for the symbol HDF_CXX.

Solution:
Changed all the involved Makefile.am to use "FORTRAN_API" instead. It is
a more appropriate name.  Same for CXX_API.

Along the way, discovered that the Makefile.am of hl/fortran/test and
hl/cxx/test did not have those symbols at all.  Added them in.

Platform tested:
Kagiso only. It is a trivia change.
2008-05-19 00:06:51 -05:00