Commit Graph

10542 Commits

Author SHA1 Message Date
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
Scot Breitenfeld
b98dea5cf1 [svn-r15233] Description:
Added the function h5tget_native_type and associated
requirements.
2008-06-18 14:53:28 -05:00
Quincey Koziol
922a109192 [svn-r15227] Description:
Small clean up of datatype copying.

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-17 15:01:52 -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
Quincey Koziol
f7b050a66d [svn-r15224] Description:
Clean up a few more compiler warnings.

Tested on:
	FreeBSD/64 6.2 (liberty)
2008-06-17 06:06:36 -05:00
Pedro Vicente Nunes
3fd9711f62 [svn-r15223] new testfile location for h52jpeg 2008-06-16 21:03:23 -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
e5f8c52f06 [svn-r15220] new files for h52jpeg 2008-06-16 15:32:48 -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
8d914f5a3e [svn-r15218] new test files for h52jpeg 2008-06-16 10:13:10 -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
HDF Tester
e736ed88c4 [svn-r15215] Snapshot version 1.9 release 7 2008-06-15 05:26:51 -05:00
Quincey Koziol
8e4793bf31 [svn-r15213] Description:
Fix gcc 4.2 flag that was put in gcc 4.1 section

Tested on:
	Eyeballed & man pages
2008-06-13 07:27:00 -05:00
Quincey Koziol
97b6832023 [svn-r15211] Description:
Update the gcc flags for version 4.3

	Clean up warnings

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-12 23:52:22 -05:00
Quincey Koziol
97e6dc5d87 [svn-r15208] Description:
Add a "HDcompile_assert" macro for assertions that can/should be checked
at compile time, as opposed to run time.  (And used it for a couple of simple
cases, to begin)

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-12 12:51:58 -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
Quincey Koziol
d0abcaaa0f [svn-r15188] Description:
Avoid leaking memory when copying the internal "shared" struct for
a named datatype when it's already been opened earlier.

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-10 12:23:52 -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
5bd3d3a501 [svn-r15186] new entry for h52jpeg Makefiles 2008-06-10 08:24:53 -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
Christian Chilan
a97fa671eb [svn-r15179] Change copyright notice to THG only. 2008-06-09 12:10:39 -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
HDF Tester
98d73aa397 [svn-r15172] Snapshot version 1.9 release 6 2008-06-08 06:23:55 -05:00
Scott Wegner
259d1afce9 [svn-r15165] Purpose: Create new HDpthread_self and HDpthread_self_ulong macros
Description:
On Windows, the pthread_self function cannot be used to print the returned thread ID for debugging.  Instead, we need a separate function, GetCurrentThreadId.  To eliminate some Windows ifdef's in the code, we create two new function macros which can be used by all platforms.  It is conditionally defined in H5win32defs.h, and globally in H5private.h.

Tested:
VS2005 w/ pthreads on WinXP
kagiso w/ pthreads
2008-06-06 14:11:46 -05:00
Pedro Vicente Nunes
ba9abd2006 [svn-r15158] - h5dump: when doing binary output (-b), the stdout printing of attributes
was done incorrectly. Removed printing of attributes when doing binary 
           output. PVN - 2008/06/05
2008-06-05 16:22:13 -05:00
Scott Wegner
78a038818e [svn-r15156] Purpose: Update H5private.h with new file name
Description:
Forgot to change the filename reference in H5private.h.  This update fixes it.

Tested:
kagiso
2008-06-05 15:13:33 -05:00
Scott Wegner
abc065ad15 [svn-r15154] Purpose: Rename new source file from win32defs.h to H5win32defs.h.
Description:
To follow the naming convention for source files, we simply rename the new header to H5win32defs.h

Tested:
None, simple name change.
2008-06-05 15:02:27 -05:00
Scott Wegner
831a42daa0 [svn-r15153] Purpose: Add testhdf5_1_8fortran[dll] Windows projects as dependencies to all_fortran
Description:
The projects testhdf5_1_8fortran[dll] which test the new fortran features in HDF5 1.8 were not registered as dependencies to the "all_fortran" pseudo-project.  As a result, the projects would not be built if you simply build all_fortran in Visual Studio, rather than "Build Solution".  This is a very minor cleanup, but is neccessary to be consistent in our projects.

Tested:
VS2005 on WinXP x64
2008-06-05 14:57:51 -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
Mike McGreevy
92d070ab39 [svn-r15149] Purpose: Bug Fix
Description: Changing h5perf installation so only h5perf is installed when
             parallel is enabled, while only h5perf_serial is installed when
             parallel is disabled.

Tested: kagiso
2008-06-05 11:48:26 -05:00
Quincey Koziol
55faa4534b [svn-r15146] Description:
Correct the definition of the 'nbytes' variable in the in-memory version
of the B-tree key for chunks from 'size_t' to 'uint32_t', to match the
definitions everywhere else.

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/64 2.10 (linew) in debug 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-05 11:45:03 -05:00
Scott Wegner
5ae2a199d6 [svn-r15145] Purpose: Add new h5ls test to Windows
Description:
A new test case was added to the general testh5ls script.  This update adds the test to Windows as well.

Tested:
VS2005 on WinXP
2008-06-05 10:13:34 -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
d36f67c0e2 [svn-r15130] Updated with the added file ./tools/testfiles/h5diff_empty.h5. 2008-06-03 01:03:46 -05:00
Scott Wegner
d83709c4e6 [svn-r15128] Purpose: Make Windows threadsafe debug message more useful
Description:
On Linux-like systems, we can get the ID of the current thread through a pthread_self.  However on Windows, the return cannot be cast as a threadID, so we simply couldn't get the ID.  Previously we simply gave up and printed a message that we couldn't get an ID.  Instead, though, we can use the Windows-specific call to GetCurrentThreadId(), which achieves the same goal.  This way we can provide better debug output with threadsafe features.

Tested:
VS2005 on WinXP
VS.NET on WinXP
(other platforms not tested because change is within _WIN32 ifdef)
2008-06-02 15:39:52 -05:00
Scott Wegner
cfb75e1f7f [svn-r15126] Purpose: Cleanup unneeded Windows source
Description:
Previously, we maintained some source files that are commonly generated dynamically on other systems.  Now, we also generate them on Windows as well.  We should remove them from the repository so old versions are not accidentally used.

Also, clean up the project files to organize generator programs.

Tested:
VS2005 on WinXP
VS2005 on WinXP x64
VS.NET on WinXP
2008-06-02 15:28:18 -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
Mike McGreevy
2b715cd29b [svn-r15112] Purpose: Bug fix
Description: While '-Wl,-rpath' information was being removed from compile
             lines when using --disable-sharedlib-rpath, some information
             was still hidden in another variable tht never got reset and
             thus snuck into the executables. This fix should take care of
             that issue.

Tested: kagiso, smirom
2008-05-30 16:47:44 -05:00
Scot Breitenfeld
c9702f551c [svn-r15110] Description:
Changed the error output formatting so that the 
test status writes to standard out looks correct when using the
sun compiler (it did not correctly tab the output).
2008-05-30 15:30:11 -05:00
Scott Wegner
56caada315 [svn-r15104] Purpose: Work around Windows FC bug in h5dump xml test script
Description:
In some rare instances, FC (diff equivalent) command on Windows will fail when comparing ASCII files with opposite line-ending formats (Unix uses LF, while Windows uses CRLF).  This was an issue for one test case in our test script.  It only came up when testing from a release tarball, because the expected output was not converted to Windows-style.  In this situation, FC was reporting false differences.

To workaround, we double-check failure cases and convert the EOL characters if neccessary.

Tested:
VS2005 on WinXP
2008-05-30 10:54:14 -05:00
Pedro Vicente Nunes
93eb1b8972 [svn-r15103] added h52jpeg 2008-05-30 10:49:01 -05:00
Pedro Vicente Nunes
2e4611e94e [svn-r15099] location for h52jpeg 2008-05-30 09:05:38 -05:00
Scott Wegner
ebd6e8a9c6 [svn-r15096] Purpose: Windows Project Cleanup-- Unify Windows h5tinit
Description:
Previously, there was Windows-dependent code inside H5detect.c, because not all projects could access the gethostname() function.  However, we standardize our project-files to link with WS2_32.lib, so now this function is available.  Thus, the Windows-specific code has been removed from H5detect.c.

Tested:
VS2005 on WinXP
VS.NET on WinXP
no need to test other platforms, Windows-specific source change
2008-05-29 14:19:30 -05:00
Scott Wegner
735967fb12 [svn-r15094] Purpose: Cleanup Windows project files-- standardize program debug information
Description:
In our debug project configurations, many of the projects were generating debug information for "Program Database and Edit & Continue".  Other projects were using different settings, or none at all. We standardize to use "Program Database" setting, because it generates much smaller .obj files and cuts out unnecessary debug information.

This is another project cleanup and enhancement from user suggestions outlined in bug #1164

Tested:
VS2005 on WinXP
VS.NET on WinXP
2008-05-29 13:53:31 -05:00