Commit Graph

2727 Commits

Author SHA1 Message Date
Mohamad Chaarawi
89ffc9f2d7 [svn-r26387] warning fixes from Feb27. 2015-03-06 14:53:23 -05:00
Allen Byrne
9cdf806eec [svn-r26383] Add MAPPING to VDS output 2015-03-06 12:53:56 -05:00
Allen Byrne
ec2e071c00 [svn-r26380] Recapture updated error files for h5dump tests 2015-03-06 08:53:42 -05:00
Allen Byrne
b3c3c8ea72 [svn-r26361] Added check for unlimited to count/block print selection 2015-03-04 14:14:50 -05:00
Allen Byrne
1aa5cd4fa5 [svn-r26353] Add VDS selection defines for ALL and NONE 2015-03-04 09:08:58 -05:00
Allen Byrne
f1c4d0ff3f [svn-r26352] Update h5dump to latest BNF - reg vs irreg hyperslabs. 2015-03-04 08:34:24 -05:00
Dana Robinson
5b294640c0 [svn-r26350] Merge of r26273-26348 from the trunk.
Tested on: h5committest
2015-03-03 19:27:40 -05:00
Dana Robinson
d8e3d8e908 [svn-r26333] Eliminates gcc warnings due to -Wunsuffixed-float-constants.
- Adds 'F' suffixes for most float constants.

- A few constants MUST be of type double. These now receive the long
  double L suffix and are then cast to double. I do this via a new
  H5_DOUBLE() macro which was added to H5private.h.

Fixes: HDFFV-9148

Tested on: h5committest
2015-03-01 13:48:54 -05:00
Dana Robinson
7462a7ef1c [svn-r26329] Merge of r26069, r26070, and r26072 from the features/autotools_rework
branch.

Removed the configure option that allows selective disabling of individual
internal filters (fletcher32, shuffle, etc.).

This feature mucked up the code with a lot of #ifdefs, saved very little space,
and was not scalable to a general scheme for library size reduction. We've
decided to remove the feature while we investigate a more general scheme for
decreasing the library size.

Part of: HDFFV-9086

Tested on: h5committest
2015-02-27 07:50:38 -05:00
Allen Byrne
45df14138d [svn-r26318] Update virtual layout to latest changes 2015-02-26 10:59:15 -05:00
Neil Fortner
952d00e7f0 [svn-r26306] Merge r26296 through 26304 from trunk to vds branch.
It should no longer be necessary to use --enable-using-memchecker
make check fails due to an issue with h5ls apparently unrelated to the merge

Tested: ummon
2015-02-25 17:06:18 -05:00
Allen Byrne
aad4250bd6 [svn-r26305] convert dump_dcpl to use switch statement
Add default case
refactor out start ctx and end ctx
Tested: local linux
2015-02-25 15:20:31 -05:00
Mohamad Chaarawi
c4044e0c85 [svn-r26303] remove files with .clog2 extension generated by MPE when doing make clean. 2015-02-25 13:48:31 -05:00
Elena Pourmal
99a3f4d8d4 [svn-r26297] Changed example and h5dump according to suggestions at today's code review VDS-176.
BNF has been updated too. Now h5dump displays VDS like this:

HDF5 "vds.h5" {
GROUP "/" {
   DATASET "VDS" {
      DATATYPE  H5T_STD_I32LE
      DATASPACE  SIMPLE { ( 4, 6 ) / ( 4, 6 ) }
      STORAGE_LAYOUT {
         VIRTUAL {
             HYPERSLAB { (0,0)-(0,5) };
             a.h5;
             A;
             ALL;
             HYPERSLAB { (1,0)-(1,5) };
             b.h5;
             B;
             ALL;
             HYPERSLAB { (2,0)-(2,5) };
             c.h5;
             C;
             ALL;
            }
         }
      }
      FILTERS {
.......
I just commented the code with "EIP" and didn't delete to simplify the review with Allen tomorrow.

Tested on jam
2015-02-24 23:19:41 -05:00
Neil Fortner
2ca5b16a9f [svn-r26296] Merge r26050 through 26295 from trunk to vds branch.
Tested: ummon
2015-02-24 16:53:56 -05:00
Allen Byrne
3f72ec11cd [svn-r26295] add space before end bracket of selection 2015-02-24 15:39:08 -05:00
Allen Byrne
80e77e7d77 [svn-r26290] Add H5S prefix to selection name 2015-02-23 16:52:03 -05:00
Allen Byrne
bc888966a9 [svn-r26288] remove extra set of brackets 2015-02-23 15:30:53 -05:00
Allen Byrne
b1251c915e [svn-r26287] Rename point and block str functions generically.
Add info arg to print virtual selection function.
2015-02-23 15:23:56 -05:00
Allen Byrne
a0ead57cad [svn-r26286] Print selection types - no values 2015-02-23 14:19:19 -05:00
Allen Byrne
cd9b96a887 [svn-r26285] add virtual mapping output blank selections but actual file and dataset names. 2015-02-23 13:41:02 -05:00
Allen Byrne
46074defaa [svn-r26284] Add VIRTUAL layout to h5dump - still need a tools testfile created 2015-02-23 12:07:40 -05:00
Mohamad Chaarawi
0c29ac42cd [svn-r26279] re-commit 26260 that Dana moved out fixing the versioning of functions to work with v16 default API. 2015-02-23 10:14:43 -05:00
Dana Robinson
7e220930da [svn-r26276] Merged r26075-80, 86 from features/autotools_rework branch.
Cleans up time functions in the autotools input files. Removed deprecated
gettimeofday() time zone code and configure processing. Also removed
some unused time function configure checks and defines.

Fixes: HDFFV-9083 and HDFFV-9085

Tested on: 32-bit linux, serial and parallel (jam)
           OS X (kite)
           Solaris (emu)
2015-02-23 01:56:16 -05:00
Dana Robinson
c07d803659 [svn-r26274] Merge of r26096 to r26271 from trunk.
Tested on: jam - serial: C++/Fortran
                 parallel: Fortran
2015-02-22 07:16:30 -05:00
Dana Robinson
f634105bdb [svn-r26271] Reverse merge of r26260 which was causing daily test failures.
Tested on: jam w/ parallel and fortran
2015-02-22 03:38:18 -05:00
Mohamad Chaarawi
fcd77ffe7e [svn-r26260] - add an attribute callback to call H5_term_library when MPI_COMM_SELF is destroyed.
- add tests for above.
- this is a fix for HDFFV-883.

tested h5committest
2015-02-20 16:33:48 -05:00
Mohamad Chaarawi
32c030ad2b [svn-r26223] add another H5close before finalize so with-mpe does not fail. 2015-02-18 16:37:25 -05:00
Allen Byrne
73bb11dda3 [svn-r26208] Update cmake minimums 2015-02-18 11:56:22 -05:00
Neil Fortner
1199ab1f48 [svn-r26198] INCOMPLETE, UNWORKING CODE
Commit progress through 1610 CST 2/17/15
2015-02-17 16:11:22 -05:00
Scot Breitenfeld
b28b5fade9 [svn-r26188] Merged autotools fixes into the trunk:
HDFFV-9089, HDFFV-9091, HDFFV-9092, HDFFV-9094, HDFFV-9095
2015-02-16 12:17:49 -05:00
Mohamad Chaarawi
74fbb9e327 [svn-r26180] merge configure fixes for HDFFV-9068,9069,9096,9097,9135 from autotools_rework branch:
- Remove Infering parallel compilers (C and Fortran) from configure.ac
- Remove restriction to build shared with parallel
- Cleanup parallel sections in configure.ac
- remove large file support checks
- MPE fixes.

tested with h5committest.
2015-02-16 11:17:03 -05:00
Dana Robinson
e2240d544e [svn-r26097] Removed configure and Makefile.in files from version control.
Developers will now have to run bin/reconfigure (deprecated, will be removed
soon) or autogen.sh after checking out code.

Part of: HDFFV-9120

Tested on: jam with Fortran and C++
2015-02-02 02:50:25 -05:00
Dana Robinson
cd1d1d41df [svn-r26096] Merged r26024-26095 from trunk.
Tested on: jam with Fortran and C++
2015-02-02 01:46:40 -05:00
Dana Robinson
a3eb3ac333 [svn-r26075] Removed (HD)BSDtimeofday and H5_HAVE_BSDGETTIMEOFDAY. This is an obsolete
system call from Irix 5.3.

Part of HDFFV-9085

Tested on: jam
2015-01-29 15:28:13 -05:00
Dana Robinson
45aece2434 [svn-r26069] Removed the option to selectively disable internal filters like n-bit
at compile time.

Fixes HDFFV-9086

Tested on: jam, both serial and parallel w/ fortran & C++
2015-01-29 08:19:22 -05:00
Scot Breitenfeld
4d34a0c6ad [svn-r26051] Fix for HDFFV-9092
Change AC_TRY_RUN TO AC_TRY_COMPILE

Changed all the instances of AC_TRY_RUN for the Fortran and C++ tests to use
AC_COMPILE_IFELSE and moved all the tests to new files in m4 directory:

aclocal_cxx.m4 (for C++ tests)
aclocal_fc.m4 (for Fortran tests)

tested: jam
2015-01-27 12:17:09 -05:00
Allen Byrne
055348122d [svn-r26040] HDFFV-9018: Install pdb files to bin folder with dlls. 2015-01-26 15:23:19 -05:00
Allen Byrne
5da20c221e [svn-r25955] Added Perform and io_timer back into build.
Tested: local linux cmake
2015-01-05 16:52:26 -05:00
Albert Cheng
6a982a7690 [svn-r25954] HDFFV-9046: reorganize hdf5/perform, step 2
Last changes had caused problems with Windows platform:
1. H5private.h in io_timer.h is not accessible in the distributed shared library of tools.
   Need to move it to io_timer.c.
2. debug_start_stop_time() would not be available outside of h5perf. Some favor of compiler
   does not like it.  Screened it out for now.
3. mere "extern" is not good enough for Windows shared library. Must mark them as DLL. Need to mark them as 
   "H5TOOLS_DLL".
4. STANDALONE mode is broken. Screened out the code for now.

Tested; h5committest.
2015-01-05 16:47:34 -05:00
Allen Byrne
6b109315f5 [svn-r25951] HDFFV-9054: disable io_timer in tools lib and perform sub-folder due to SHARED compile issues and other issues. 2015-01-05 11:21:22 -05:00
Albert Cheng
fe1bf91042 [svn-r25946] Removed debug statments that use //.
Tested: env CFLAGS=-ansi buildhdf5 in jam and parallel platypus.
2015-01-03 23:51:03 -05:00
Albert Cheng
c803666ec2 [svn-r25940] HDFFV-9046: reorganize hdf5/perform, step 2
Move timing measurement routines used by h5perf and h5perf_serial to tools/lib
so that they can be used by other tools too.

tools/lib/io_timer.c
tools/lib/io_timer.h
tools/perform/io_timer.c
tools/perform/io_timer.h
    renamed perform/io_timer.[ch] to lib/io_timer.[ch]

tools/lib/Makefile.am
tools/lib/Makefile.in
tools/lib/CMakeLists.txt
tools/perform/Makefile.in
tools/perform/Makefile.am
tools/perform/CMakeLists.txt
MANIFEST
    updated due to the move.

Tested; h5committest and jam (serial)
2015-01-01 11:24:55 -05:00
Allen Byrne
dcc956f594 [svn-r25938] Remove build and test commands for deleted benchpar.c 2014-12-31 13:06:27 -05:00
Albert Cheng
aebc4ae149 [svn-r25932] HDFFV-8902: merge the source code of h5perf and h5perf_serial, stage 1.
tools/perform/sio_timer.h:
tools/perform/pio_timer.c:
tools/perform/io_timer.h:
tools/perform/io_timer.c:
    Renamed pio_timer.[ch] as io_timer.[ch];
    merged content of sio_timer.[ch] into io_timer.[ch] so that both h5perf and h5perf_serial
    call the combined io_timer.[ch].
    Moved the debug printing code segment in set_time() in [sp]io_timer.c to as debug_start_stop_time() in [sp]io_perf.c where it belongs.
    Screened out set_timer_type() and get_timer_type() which were not used by any code.

tools/perform/Makefile.am:
tools/perform/Makefile.in:
tools/perform/CMakeLists.txt
    Adjusted to use io_timer.c for both h5perf and h5perf_serial.

tools/perform/pio_perf.c:
tools/perform/sio_perf.c:
tools/perform/pio_perf.h:
tools/perform/sio_perf.h:
    Renamed [sp]io_time_destory() to same io_time_destroy();
    Moved the debug printing code segment in set_time() in [sp]io_timer.c to as debug_start_stop_time() in [sp]io_perf.c where it belongs.

tools/perform/pio_engine.c:
tools/perform/sio_engine.c:
    Removed #include io_timer.h since it was already #include by [sp]io_perf.h.

MANIFEST:
    Updated the merge of [sp]io_timer.[ch] into io_timer.[ch].

Tested: h5committest and jam in extra.
2014-12-30 00:56:05 -05:00
Allen Byrne
e0c586cd98 [svn-r25918] If not testing skip building test only programs. 2014-12-22 09:45:46 -05:00
Albert Cheng
91f7c2797f [svn-r25909] HDFFV-8156: perform/benchpar failed to run
Benchpar.c is retired/deleted. If it is ever needed, it can be retrieved from the SVN repository
or even previous version of HDF5 source code.

Tested: jam parallel make passed.
2014-12-19 12:02:04 -05:00
Allen Byrne
98958b530a [svn-r25904] Fix CMP0054 warning 2014-12-19 10:13:55 -05:00
Albert Cheng
d9ba0ae35f [svn-r25900] HDFFV-9046: reorganize hdf5/perform/ directory
Moved perform/ to tools/perform. Updated all the configure related files for the new location.

Tested: h5committested plus tested in jam and kite.
2014-12-17 18:07:24 -05:00
Albert Cheng
52bff896a7 [svn-r25771] Bug fix: HDFFV-8954
Previously, ph5diff may hang in a test in Linux 32 platform(HDFFV-587).
No solution was available and a patch to bypass the test is implemented.

Since the company is changing domain name soon, the patch would not be valid any more.
Tests were done (repeat 100 mpiexec -np 6 ./ph5diff -v h5diff_hyper1.h5 h5diff_hyper2.h5)
and the previous hanging problem did not occur. It is likely the newer versions of
mpich no longer have this problem.  Therefore, it is decide to remove this patch
to make the test script cleaner, if nothing else.

Tested: ran build and test in Jam (linux 32) and the repeat 100 command mentioned above.
All passed.
2014-11-03 19:37:29 -05:00
Dana Robinson
81f7e6b1d3 [svn-r25755] Removed spurious casts in a few HDfree() statements.
Discovered when I temporarily #defined HDfree() to a more complicated
function while investigating something. 

Tested on a local linux VM. This is a very minor change.
2014-10-31 13:11:42 -05:00
Allen Byrne
73465a6bc2 [svn-r25745] Testfiles for h5dump bitfields and opaques 2014-10-27 16:47:24 -05:00
Allen Byrne
573d47083b [svn-r25744] Add bitfield and opague datatype file for tests.
Tested: local linux
2014-10-27 15:50:33 -05:00
Allen Byrne
3fa8cd322f [svn-r25741] Remove obsolete comment and add test to suite. 2014-10-27 13:34:25 -05:00
Allen Byrne
5a4357e4fb [svn-r25570] UNDO:Added option to build tools static when building shared libraries. This will prevent 'dll' being appended to the tool name on windows. See HDFFV-8292.
Windows DLL linkage problem because of defines needed.

Tested: local linux
2014-09-03 14:04:18 -05:00
Allen Byrne
c23f3a7ea5 [svn-r25569] Added option to build tools static when building shared libraries. This will prevent 'dll' being appended to the tool name on windows. See HDFFV-8292.
Tested: local linux
2014-09-03 12:12:52 -05:00
Mohamad Chaarawi
88fb6b1374 [svn-r25531] remove use of C99 PRI that failed on windows in dtypes.c
fix bugs where hid_t were assumed to be 32 bit ints or herr_t.
2014-08-11 14:13:45 -05:00
Quincey Koziol
33ea1ada24 [svn-r25496] Description:
Merge 64-bit ID changes from branch to trunk.  (Plus a few minor cleanups
that aren't on the branch)

Tested on:
    Mac OSX/64 10.9.4 (amazon) w/C++ & FORTRAN
    (h5committested on branch already for a week)
2014-07-30 15:55:14 -05:00
Mohamad Chaarawi
06ef71a37f [svn-r25397] - remove configure checks for MPI_File_get_size and Big
MPI_File_set_size as they are supported by most MPI implementations.
- fix bug in t_mpi.c (HDFFV-8856)
2014-07-07 13:22:48 -05:00
Allen Byrne
d867178192 [svn-r25249] change test to ignore h5diff warnings (endianess issue) 2014-06-10 11:21:30 -05:00
Quincey Koziol
60f8a4100e [svn-r25215] Description:
Bring changes from Coverity branch back to trunk:

r20914:
    Use HDstrncpy and HDstrncat! --gh

20915:
    Use HDstrncpy and HDstrncat! --gh

Tested on:
    Mac OSX/64 10.9.3 (amazon) w/gcc 4.9.0, C++, FORTRAN & parallel
    (too minor to require h5committest)
2014-05-25 00:55:39 -05:00
Quincey Koziol
a613b70f93 [svn-r25197] Description:
Bring changes from hdf5_1_8_coverity branch back to trunk:

r20878:
    Issue 76: Check if H5Tget_nmembers(type) fails and simply return(FALSE). Also move printf to after check.

r20880:
    Issue 192: Create ret_val var set to -1. Add out label for failures to jump to, return ret_val at bottom.

r20882:
    Fixes for coverity:
    1) bug #1679: remove dead code in test/mf.c
    2) bug #1680: remove dead code in tools/lib/h5diff_dset.c

r20883:
    Fix coverity issue 585

    Description:
    Changed variable "c" in processStrData in h5import.c to an int, to match fgetc
    return value, and removed call to feof, instead checking if c == EOF.

Tested on:
    MacOSX/64 10.9.3 (amazon) w/C++, FORTRAN & parallel
    (too minor to require h5committest)
2014-05-16 22:22:51 -05:00
Allen Byrne
21474f8eee [svn-r25188] Implement change to cmake_ext_mod config folder
Tested: local linux
2014-05-14 14:50:28 -05:00
Allen Byrne
8f57e86ab9 [svn-r25185] update cmake command name case 2014-05-12 13:14:46 -05:00
Larry Knox
c6e3e68297 [svn-r25117] Removed LT_ADD_LIBHDF5_DEPENDENCY configure conditional to roll back fix for removing rpaths from l
ib files.  The fix also removed dependencies on libhdf5, etc. when the --disable-sharedlib-rpath co
nfigure option was invoked.
Added instead configure variable hardcode_into_lib=no.  This removes rpath from lib files on Linux
and solaris machines.

Tested with h5committest on jam, koala, ostrich and platypus (cmake), and with configure option --disable-sharedlib-rpath on emu, platypus and quail.
2014-04-25 16:59:53 -05:00
Dana Robinson
7309bb5ab8 [svn-r25113] Fixed Subversion EOL and executable attributes. No code changes. 2014-04-25 16:27:37 -05:00
Quincey Koziol
1c3f945739 [svn-r25112] Description:
Revert r25081

Tested on:
    MacOSX/64 10.9.2 (amazon) w/FORTRAN & parallel
    (h5committest not necessary)
2014-04-25 16:21:55 -05:00
Albert Cheng
3dc1e6dd38 [svn-r25081] Bug HDFFV-8625, HDFFV-8639, HDFFV-8745:
h5diff issues "unable to read attribute" error message when comparing two files

Description:
    h5diff did not handle attributes of variable length strings correctly. It created the wrong memory type if one but not both compared attributes are of the variable strings type. It ended in H5Aread() failure.

Solution:
    We decided to treat the case when one type is variable length string and the other is not as incomparable. That bypassed the above error.  We still need to figure out the proper way, if possible, to compare variable string with non-variable string types.

Tested: h5committested plus tested in Swallow (OS X 10.8).
2014-04-22 17:25:51 -05:00
Allen Byrne
94ede7a8ce [svn-r25043] Correct CPPFLAGS value.
Correct test DEPENDS format.
2014-04-14 10:50:13 -05:00
Albert Cheng
9734210966 [svn-r24999] Bugfix: HDFFV-8639
h5diff segfaults with user's files

Solution:
Added a variable to indicate if real data are in the buffer and will call H5Dvlen_reclaim()
only when real data are in the buffer.

Tested: with the user provided data files and no more segmentaion fault.
Also h5committ tested.
2014-04-09 06:23:16 -05:00
Allen Byrne
98bbf4a36a [svn-r24948] Group tests by Common name
Remove WIN32 AND NOT CYGWIN if blocks - should be just WIN32

Tested: local linux CMake
2014-04-02 13:35:01 -05:00
Dana Robinson
d01ee66666 [svn-r24937] Adds an H5free_memory() function to the library for use with
functions that return library-allocated memory. The test and tool
code were modified to use this new function where it's appropriate.

Fixes HDFFV-7710, HDFFV-8519, and HDFFV-8551

Tested on:
    64-bit Windows 7 w/ VS2012
    32-bit LE linux w/ parallel and fortran (jam)
    32-bit LE linux w/ fortran and C++ (jam)
2014-03-31 18:35:09 -05:00
Allen Byrne
c6fe8c70b2 [svn-r24932] HDFFV-8290: Remove unnecessary $(srcdir) and use AM_CPPFLAGS instead of INCLUDES. Update automake to 1.14.1
h5committest
2014-03-31 12:07:05 -05:00
Allen Byrne
425408b5a1 [svn-r24895] Add INTERFACE properties to libs 2014-03-25 13:25:53 -05:00
Quincey Koziol
f97d63cb95 [svn-r24869] Description:
Clean up more compiler warnings, plus merge a few Coverity bug fixes from
the hdf5_1_8_coverity branch back to the trunk:

r20877:
Purpose: Fix coverity issue 1723

Description:
Modified test_generate in hl/test_image to close file "f" before exit, even if
an error occurs.

r20879:
Issue 63: change check of return of H5Tget_nmembers to <=0. No need to go
futher if call fails as well as empty.

r20881:
Coverity #659 in Run 46: I changed the Line 442 where it tries to check whether
FLAG_PRINTED is TRUE.  But it had just been set to FALSE.  I took out the
condition check in the print statement.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/C++, FORTRAN & Parallel
    (too minor to require h5committest)
2014-03-23 01:27:57 -05:00
Quincey Koziol
2e4302818a [svn-r24864] Description:
Remove all traces of MPI-POSIX VFD and GPFS detection/code.

    Remove remaining traces of stream VFD.

    Remove testpar/t_posix_compliant test (it's not actually verifying anything).

    Clean up H5D__mpio_opt_possible() further.

    Moved environment variable that disables MPI collective operations into
MPI-IO VFD (instead of it being in src/H5S.c).

    A few other small code cleanups.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/parallel & serial
2014-03-21 18:02:24 -05:00
Allen Byrne
c4f982abf1 [svn-r24859] Remove unnecessary use of $(srcdir).
Tested: local linux, h5committest
2014-03-21 13:50:30 -05:00
Allen Byrne
44fe3cc19b [svn-r24826] HDFFV-8700 -
KitWare recommendations: Change CMake commands to lower case.
Bump up CMake minimum versions.
Split test file into separate file for h5repack test.

Tested: local linux
2014-03-18 11:55:05 -05:00
Allen Byrne
03d10edd23 [svn-r24824] HDFFV-8700 -
KitWare recommendations: Change CMake commands to lower case.
Bump up CMake minimum versions.
Split test file into separate file for h5repack test.

Tested: local linux
2014-03-18 11:21:46 -05:00
Quincey Koziol
164b4c7534 [svn-r24804] Description:
Brought changes from Coverity branch back to trunk, and cleaned up misc.
other warnings & formatting issues:

r20833:
Fixed Coverity 667 and 668 with real integer overflow tests this time.

r20834:
Use HDstrncpy and HDstrncat. --gh 

r20835:
Change to use strncpy - use base_len + 1 for line 156, use HDstrlen(path) + 1 for line 159

r20836:
Fixed coverity 585 by casting output of fgetc() to a char.

r20837:
Changed sprintf calls to snprintf with size 1 less than the allocated buffer to address coverity issue #967.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/C++, FORTRAN & parallel
    (too minor to require h5committest)
2014-03-15 23:44:13 -05:00
Quincey Koziol
288c7760a4 [svn-r24803] Description:
Rename GCC_DIAG_OFF/ON macros to H5_GCC_DIAG_OFF/ON and move from
src/H5private.h to src/H5public.h.  Wrap typedef of hsize_t and hssize_t
in DIAG_OFF(long-long) macros.

    Clean up a bunch of "macro '-' is unused" warnings.

Tested on:
    Mac OSX/64 10.9.2 (amazon) w/gcc 4.8.2, C++, FORTRAN, parallel
    (too minor to require h5committest)
2014-03-15 22:13:52 -05:00
Allen Byrne
f5689224b5 [svn-r24789] Bump up the minimum cmake version 2014-03-13 10:05:09 -05:00
Allen Byrne
6c5e74942d [svn-r24782] HDFFV-8700 -
KitWare recommendations: Change CMake commands to lower case.
2014-03-11 17:07:13 -05:00
Allen Byrne
a3292a77ce [svn-r24781] HDFFV-8700 -
KitWare recommendations: Change CMake commands to lower case.
Remove INCLUDE_DIRECTORIES in src for target level includes.
Change ADD_DEFINITIONS package debug defines into CMake option.
Remove -DNDEBUG
2014-03-11 16:14:57 -05:00
Quincey Koziol
1e36b5a348 [svn-r24726] Description:
Revert some earlier usage of strncpy, which was incorrect.

    Bring Coverity changes from branch back to trunk:

r20821:
    Use HDstrncpy. --gh
    (Fixed already, with strdup)

r20822:
    (Not merged, incorrect use of HDstrncpy())

r20823:
    (Not merged, incorrect use of HDstrncpy())

r20824:
    Maintenance: Bug fix: addressed CID 666.
    Value stored at *expression_len should be used in the call to
        HD5packFstring to avoid overflow (and unnecessary arithmetic
        calculation and casting) 

r20825:
    Issue 642: Added check for error and handler with print to stderr and exit.

r20826:
    Undo revision 20818, as that issue has already been fixed in the 1.8 branch
        and trunk (but not coverity branch)

r20827:
    (Not merged, incorrect use of HDstrncpy())
    
r20828:
    Use HDstrncpy. --gh
    (Corrected use of strncpy())

r20829:
    Check return of H5Lget_val(print_udata->fid, path, targbuf,
        linfo->u.val_size + 1, H5P_DEFAULT) and if error set trgbuf[0] to 0.
        Check if  H5Lunpack_elink_val(targbuf, linfo->u.val_size, NULL,
        &filename, &objname) was successful and allow print. Otherwise filename
        and objname are not created. (init those to NULL)

r20830:
    resolved coverity issues 939, 940, 941, 944, and 947.

    all were complaints about use of sprintf, and in all cases, the
    buffers used were large enough for all eventualities.

    Resolved issue by replacing calls to sprintf with calls
    to snprintf.

r20831:
    Maintenance: Addressed CID 852
    Replaced sprintf with snprintf

r20832:
    Purpose: Fix valgrind issues with hl/examples/ex_image2

    Description:
    Modified hl/examples/ex_image2 to free global "gbuf" before exit.

Tested on:
    Mac OSX/64 10.9.1 (amaon) w/C++, FORTRAN & Threadsafety
    (too minor to require h5committest)
2014-02-20 16:29:26 -05:00
Allen Byrne
b30e37ea78 [svn-r24725] HDFFV-8629: h5repack will not attempt to remove UD filters. h5repack requires a check for UD filters that also must check if the filter can be dynamically loaded. This require a change in the library that checks for this.
Tested: locally and reviewed
2014-02-20 15:21:08 -05:00
Allen Byrne
6569d7437a [svn-r24682] Add IF SHARED block around Windows PDB file generation command. 2014-02-04 10:11:36 -05:00
Allen Byrne
a3e2fabb53 [svn-r24670] HDFFV-8567: Fix cmake tests for changes in reference files due to test script changes in autotools test scripts.
Tested: local linux
2014-01-31 09:15:59 -05:00
Allen Byrne
b7b4e77f12 [svn-r24666] Fix test folder deletion issue
Tested: local linux autotools
2014-01-30 16:27:23 -05:00
Allen Byrne
2f86aa7551 [svn-r24646] HDFFV-8640: Remove xlate_utility by fixing reference files to not add extra lines.
Tested: cmake and autotools local linux
2014-01-27 09:26:21 -05:00
Allen Byrne
ebb6e8e3be [svn-r24504] HDFFV-8629: disable test until review is complete 2013-12-05 12:53:00 -05:00
Allen Byrne
3b23b7eb1a [svn-r24487] HDFFV-8629: repack plugin_none test files.
CMake only until library updates approved.
2013-12-03 08:31:05 -05:00
Allen Byrne
008f2e4017 [svn-r24484] Update version and test name. 2013-12-02 16:00:22 -05:00
Allen Byrne
624a466600 [svn-r24482] HDFFV-8635: remove test of whole file and just test dsets that have szip compression.
Tested local linux with cmake and autotools
2013-12-02 15:32:22 -05:00
Allen Byrne
5e695ce4bc [svn-r24481] HDFFV-8635: disable test because of szip causing different read call then expected. 2013-12-02 14:31:25 -05:00
Quincey Koziol
2d79ba29ed [svn-r24480] Description:
Bring r24479 from 1.8 branch to trunk:

    Fix ph5diff worker command handling so it can correctly respond to
situations where there's no work to perform.  Also, a few minor code cleanups.

Tested on:
    Mac OSX/64 10.9.0 (amazon) w/parallel
    (too minor to require h5committest)
2013-11-30 13:10:36 -05:00
Allen Byrne
2f097704ca [svn-r24471] JAVA-1798: Add the testfiles for hdf-java and the h5dump tests including the test to read filter data.
Tested: cmake and autotools - local linux
2013-11-27 11:01:16 -05:00
Allen Byrne
6c90fd5b0b [svn-r24467] tfilters.h5 was created and checked in on 21 Feb 05, rev 10060, and never regenerated. The code for scaleoffset continued to change and the number of params for scaleoffset changed from 7 to 20 on the checkin of 23 Mar 05, rev 10384.
The h5dump tests only looked at headers and never the data. Data reads would fail with invalid number of params (7 expected 20).
Regenerated file and replacement ddls updated.
New h5dump test will be added to read the data.
2013-11-26 17:08:09 -05:00
Allen Byrne
43690b681c [svn-r24411] Correct file generation 2013-11-07 11:45:25 -05:00
Allen Byrne
8190a5e4b3 [svn-r24408] Add compound integer tests files
Tested: local linux cmake
2013-11-06 13:28:12 -05:00
Allen Byrne
132dfca7d0 [svn-r24403] Cleanup temp test files 2013-11-04 16:12:29 -05:00
Elena Pourmal
7aa4a180e4 [svn-r24400] Maintenance: When the libraries are built and tested in place, several files are left
behind by "make distclean" (see below); modified appropriate Makefile.am files and ran
             bin/reconfigure to create Makefile.in to fix the problem.

Here is the list of the files "make disclean" doesn't remove:

       tools/h5dump/testfiles
       tools/h5repack/testfiles/h5diff_attr1.h5
       tools/h5repack/testfiles/tfamily00000.h5
       tools/h5repack/testfiles/tfamily00010.h5
       tools/h5repack/testfiles/tfamily00002.h5
       tools/h5repack/testfiles/tfamily00004.h5
       tools/h5repack/testfiles/tfamily00006.h5
       tools/h5repack/testfiles/tfamily00008.h5
       tools/h5repack/testfiles/tfamily00001.h5
       tools/h5repack/testfiles/tfamily00003.h5
       tools/h5repack/testfiles/tfamily00005.h5
       tools/h5repack/testfiles/tfamily00007.h5
       tools/h5repack/testfiles/tfamily00009.h5
       tools/h5jam/testfiles/h5jam-ub-nohdf5.txt.err-sav
       tools/h5jam/testfiles/h5jam-help.txt.err-sav
       tools/h5jam/testfiles/h5unjam-help.txt.err-sav
       tools/h5jam/testfiles/h5jam-ub-nohdf5.txt.out-sav
       tools/h5jam/testfiles/h5jam-help.txt.out-sav
       tools/h5jam/testfiles/h5unjam-help.txt.out-sav
       hl/fortran/test/dsetf5.h5
       c++/test/tattr_multi.h5
       c++/test/tattr_scalar.h5
       c++/test/tfattrs.h5
       c++/test/tattr_basic.h5
       c++/test/tattr_compound.h5
       c++/test/tattr_dtype.h5

Tested on jam and emu in place and using srcdir with the svn stat command.

This fix doesn't address two problems:

tool/h5dump/testfiles directory is not removed by "make distclean" and it should be
tools/misc/testfiles directory is removed by "make distclean" and it shouldn't be
2013-11-02 20:21:23 -05:00
Allen Byrne
819b8099e2 [svn-r24392] Cleanup testfiles from scripts. Update lists of files to be cleaned. CMake update to clean testfiles.
Tested: local cmake, autools, and h5committest
2013-11-01 16:15:37 -05:00
Dana Robinson
e6cace9ee4 [svn-r24376] Updated all code to use HDmalloc, HDcalloc, and HDfree.
Prep work for adding a memory free function, part of HDFFV-8551.

Tested on:
    32-bit LE linux (jam) 
        * with C++, Fortran
        * with thread safety on

    These are minor changes (almost entirely renaming foo functions
    to HDfoo) that don't change functionality.  This should not
    require a full commit test.
2013-10-30 23:20:36 -05:00
Larry Knox
06aa7b6641 [svn-r24285] Eliminate several "passing argument ... with different width due to prototype" warnings by casting constants to size_t where expected by string functions.
Tested on jam, koala,ostrich and platypus with h5committest.
2013-10-10 16:57:04 -05:00
Mohamad Chaarawi
9d954e1136 [svn-r24270] checkin coverity changes from 10/4/2013.
tested with h5committest
2013-10-09 11:55:33 -05:00
Allen Byrne
4611f95d4c [svn-r24224] HDFFV-8529: Space separate define strings
Tested: h5committest
2013-09-30 11:52:03 -05:00
Larry Knox
ab239810e1 [svn-r24194] Don't add hdf5 library dependencies to lib files when --disable-sharedlib-rpath configure option is invoked. Fix for HDFFV-8276.
Tested with h5committest and on hdf-duck.
2013-09-23 20:14:24 -05:00
Allen Byrne
c965b5503b [svn-r24172] Position trunk/1.8 vars in similar location for comparison. 2013-09-19 14:42:45 -05:00
Allen Byrne
0653325f0d [svn-r24167] HDFFV-8513, HDFFV-8522 Plugin testing in h5repack, h5dump.
Add more usage info for UserMacros.
Add new option information about the Plugin default path.

Tested: local linux, jam
2013-09-19 11:38:08 -05:00
Allen Byrne
a8c63e28d5 [svn-r24138] Cast constants to specified type.
Cast smaller vars to larger type.
Cast calculation result to correct type.
Changed int member to hbool_t

Tested: local linux
2013-09-13 16:11:30 -05:00
Allen Byrne
3c021d3a77 [svn-r24137] Cast constants to specified type.
Cast smaller vars to larger type.
Cast calculation result to correct type.

Tested: local linux
2013-09-13 15:34:55 -05:00
Allen Byrne
2465c432f0 [svn-r24124] HDFFV-8345: Changed usage txt to use dsetN instead ofletters for objects in examples.
Tested: local linux
2013-09-11 12:09:06 -05:00
Allen Byrne
175e82e484 [svn-r24120] HDFFV-8345: plugin test properly checks static-exec result to include test.
Tested: jam
2013-09-10 09:24:34 -05:00
Allen Byrne
a1071ada16 [svn-r24118] Comment out test until configure sets conditional correctly 2013-09-09 17:43:57 -05:00
Allen Byrne
f79eac6049 [svn-r24116] Correct indentation and create single exit point.
Tested : local linux
2013-09-09 13:30:25 -05:00
Larry Knox
6b54dac504 [svn-r24115] Reduce warnings for conversions of different widths.
h5committested on jam, ostrich, koala, and platypus.
2013-09-06 17:48:28 -05:00
Allen Byrne
145f1ce9e3 [svn-r24104] HDFFV-8345: add User Defined filters to h5repack.
Reviewed in H5T-61

Tested: local linux - cmake and autotools
2013-09-06 10:15:50 -05:00
Quincey Koziol
5b876c929f [svn-r24101] Description:
Clean up warnings, enable new compiler warning flag(s) and bring back
changes from Coverity branch:

r20813:
Remove the dead code as listed for coverity bug #1722. h5committested.

r20814:
Issue 69: Check return value and throw error if negative return. Also free datatype id on error

r20815:
Use HDstrncpy. --gh

r20816:
Replaced one last HDstrcat call with HDstrncat to resolve coverity issue 832.

r20817:
Use HDstrncpy and HDstrncat. --gh

r20818:
Purpose: Fix valgrind issues with h5jam

Description:
Modified h5jam to free strings strdup'd in parse_command_line before exit. Note
that they may still not be freed in case of error, due to the widespread use of
exit().

r20819:
Issue 80: change loop to use int as loop index.

r20820:
Maintenance: Fixed the bug found by coverity CID 788
There were two problems with this function:
    1) it tried to unnecessary free NULL pointer
    2) it tried to allocate c_name buffer that is done by H5Pget_class_name


Tested on:
    Mac OSX 10.8.4 (amazon) w/gcc 4.8.1, C++ & FORTRAN
    (too minor to require h5committest)
2013-09-05 15:44:14 -05:00
Larry Knox
d24404ae83 [svn-r24077] Updated -help output for compile scripts for changing default from -noshlib to -shlib when hdf5 is built without static libraries (--disable-static).
Tested with h5committest on jam, koala, ostrich and platypus.
2013-08-27 08:26:37 -05:00
Allen Byrne
68dd16d8f0 [svn-r24066] Eliminate switch default warning by printing err message. 2013-08-23 15:02:32 -05:00
Allen Byrne
d2e10eefd7 [svn-r24058] Coorect usage text wrt dataset subsetting 2013-08-22 15:16:45 -05:00
Allen Byrne
e86655bbf4 [svn-r24057] Add --superblock long name to parser and add tests for both --boot-block and --superblock.
Tested: local linux
2013-08-22 14:57:31 -05:00
Allen Byrne
13a0f5576a [svn-r24053] HDFFV-8498: --minimum option was disabled by HDFFV-8214. Reverted code change and changed default to 0 from 1024. Changed limit test to use h5dump to compare repacked file instead of h5diff.
Corrected test scripts for test folder path

Tested: h5committest and local linux with CMake
2013-08-21 17:11:32 -05:00
Allen Byrne
8c14af82c6 [svn-r24050] HDFFV-8498: --minimum option was disabled by HDFFV-8214. Reverted code change and changed default to 0 from 1024. Changed limit test to use h5dump to compare repacked file instead of h5diff.
Tested local linux with CMake
2013-08-21 15:59:49 -05:00
Quincey Koziol
482a9c28e7 [svn-r24030] Description:
Clean up more compiler warnings.

Tested on:
    Mac OSX/64 10.8.4 (amazon) w/gcc, C++ & FORTRAN
    (too minor to require h5committest)
2013-08-19 17:13:15 -05:00
Allen Byrne
c502d81a8c [svn-r24029] Move TESTS to seperate file to allow easier editing by all developers.
Tested: local linux
2013-08-19 16:49:44 -05:00
Allen Byrne
b503983d85 [svn-r24023] Added tests to CMakeLists.txt that were only added to the *nix script.
Tested: local linux
2013-08-19 11:26:14 -05:00
Allen Byrne
28c2f17960 [svn-r24022] any_object option should be any_path 2013-08-19 11:02:29 -05:00
Quincey Koziol
308c378ccd [svn-r24020] Description:
Clean up compiler warnings

Tested on:
    Mac OSX/64 10.8.4 (amazon) w/C++ & FORTRAN
    (too minor to require h5committest)
2013-08-17 15:05:27 -05:00
Vailin Choi
170b7275c0 [svn-r24015] A bug fix when merging changes from the trunk to 1.8 for h5stat bug fix HDFFV-1238:
Fix a problem when using opt_arg that is NULL for the new options added: -l N, -m N, -a N.
h5committested.
2013-08-16 14:36:32 -05:00
Quincey Koziol
453f95c192 [svn-r24011] Description:
Clean up a few warnings

Tested on:
    Mac OSX 10.8.4 (amazon) w/C++ & FORTRAN
    (too minor to require h5committest)
2013-08-15 08:24:28 -05:00
Allen Byrne
e8d0919d43 [svn-r24002] Fix 32-bit and valgrind issues with new handle_paths code - correct math of adding a NULL to a string.
Tested: local linux (valgrind) and h5committest
2013-08-13 12:48:57 -05:00
Allen Byrne
4935d0bfab [svn-r23999] Move declaration to top of block - fix for windows. 2013-08-13 08:44:24 -05:00
Allen Byrne
5d0b400f69 [svn-r23996] HDFFV-7989: Add any_path option to search the file for paths. New test added, scripts updated, help text updated.
Tested: local linux
2013-08-12 16:58:31 -05:00
Allen Byrne
a3204d77e7 [svn-r23994] Correct printf % handling 2013-08-12 15:53:54 -05:00
Allen Byrne
f801cf4618 [svn-r23991] Reorder grouping 2013-08-12 14:52:09 -05:00
Vailin Choi
f09101079e [svn-r23976] The following files were missing from previous checkin rev #23975 for bug HDFFV-1238.
h5committested.
2013-08-08 14:19:03 -05:00
Vailin Choi
c902bbdd90 [svn-r23975] This checkin contains--
A) Fix for HDFFV-1238:
   --Add 3 new options to allow users in setting threshold for small groups/datasets/attributes (tools/h5stat/h5stat.c)
   --Generate new test file for testing the new options (tools/h5stat/h5stat_gentest.c)
   --Add tests for the new options (tools/h5stat/testh5stat.sh.in)
   --Update expected output files (tools/h5stat/testfiles/*.ddl)
B) Fix a bug in determining maximum dimension size for 1-D dataset in dataset_stats() (tools/h5stat/h5stat.c)
2013-08-08 12:24:43 -05:00
Larry Knox
bf9b274e27 [svn-r23964] Corrected "continuous" layout to "contiguous in h5repack -h output and comment.
Jira issue HDFFV-8493.

No test - text only change.
2013-08-02 16:23:39 -05:00
Allen Byrne
7a96201ee1 [svn-r23960] HDFFV-8490: Reorder and group h5dump help text.
Tested: local linux
2013-08-01 09:42:30 -05:00
Allen Byrne
4e1695576c [svn-r23953] Update stream handling to allow binary mode - due to unjam fix.
Tested: local linux
2013-07-31 11:22:40 -05:00
Allen Byrne
ba181d404d [svn-r23952] Update unjam file handling to eliminate infinite loops and use binary mode.
Tested: windows
2013-07-31 11:10:33 -05:00
Peter Cao
5b6ae0b603 [svn-r23945] fixed HDFFV-8306
using file stream for output data
2013-07-30 14:23:24 -05:00
Allen Byrne
ad7624ada3 [svn-r23944] Move stream functions into tools lib.
Tested: local linux
2013-07-30 12:04:23 -05:00
Albert Cheng
3a316cfc63 [svn-r23917] Bug fix: HDFFV-8392
tools/h5diff/testh5diff.sh is run in every "make check", even after it
has passed in the previous run.
The error was in the previous change made to Makefile.am
when testh5diff.sh.in was created.  The mistake was in the
SCRIPT_DEPEND=h5diff$(EXEEXT) $(H5PDIFF) $(srcdir)/testh5diff.sh
$(srcdir)/testh5diff.sh no longer existed. It is now generated in the
current built directory from $(srcdir)/testh5diff.sh.in (which configure
takes care of).

I updated the dependance to
SCRIPT_DEPEND=h5diff$(EXEEXT) $(H5PDIFF) testh5diff.sh
and that fixes the error.

Reviewed: HDF5-149

Tested: h5committested.
2013-07-18 00:12:27 -05:00
Mohamad Chaarawi
dfcb3cebf1 [svn-r23862] Change printfs in perform output and h5dump to prevent overflow.
This fixes: https://jira.hdfgroup.uiuc.edu/browse/HDFFV-8450

Tested on Jam.
2013-07-03 11:12:32 -05:00
Allen Byrne
a4dc3ff34d [svn-r23830] HDFFV-8476: Add the optional arg to the help usage text.
Tested: local linux
2013-06-26 16:28:13 -05:00
Allen Byrne
308106c0e9 [svn-r23829] HDFFV-8134: allow exclusion of attributes. This implements the technique and creates a test. Help changes will be added after trunk tests pass the test cycle.
Tested: local linux
2013-06-26 16:04:20 -05:00
Albert Cheng
c2750822ff [svn-r23825] Bug HDFFV-8469: C++ comments in C code.
Found and removed two more "//" comments.

Tested: in Koala by
$ env CFLAGS="-ansi" ../hdf5/bin/buildhdf5 -fortran -cxx -config # enable fortran and cxx, configure only
$ make AM_CFLAGS=-ansi # compile all source file by setting HDF5 build CFLAGS as "-ansi" only
2013-06-26 01:25:44 -05:00
Allen Byrne
dd89c8e90f [svn-r23819] Change name of generated file in test to use the macro based removal line.
Tested: local linux
2013-06-25 09:06:28 -05:00
Allen Byrne
66490d45e1 [svn-r23811] Remove unused label 2013-06-24 15:01:24 -05:00
Allen Byrne
125e2a0a9d [svn-r23800] Added the HD prefix to the system functions used in the h5tools_str_replace function. 2013-06-20 17:02:17 -05:00
Allen Byrne
e71411f9cf [svn-r23799] HDFFV-8455: moved h5dump in order of subdirs under tools to in front of h5import.
Tested local linux: h5dump executed before h5import
2013-06-20 13:10:07 -05:00
Allen Byrne
74384b3c19 [svn-r23798] HDFFV-8465: dtd reference incorrect. Fixed loading of xml files with respect to XSD file.
Tested: local linux
2013-06-20 12:39:49 -05:00
Allen Byrne
60cce86d0e [svn-r23796] remove commented line with c++ style 2013-06-20 10:06:14 -05:00
Allen Byrne
feb14ea872 [svn-r23745] HDFFV-8461: Add Windows /MT support
This adds the UserMacros.cmake support needed.
2013-06-10 12:46:48 -05:00
Allen Byrne
f0a9b781f3 [svn-r23740] HDFFV-8447: subsetting broke data output file option.
Reviewed in H5T-59, tested local linux
2013-06-07 13:39:54 -05:00
Allen Byrne
fab67b684e [svn-r23733] HDFFV-8366: Patches tested by Larry using h5committest, it creates the intermediate testfiles folder first. 2013-06-05 08:36:45 -05:00
Quincey Koziol
d38fe20df6 [svn-r23695] Description:
Clean up warnings in H5Tconv.c (down to _only_ 9000 lines of output now!)

    Merge changes from Coverity branch back to trunk:

r20684:
Fix for coverity bug #1721 which was due to the fix for coverity bug #943.

r20685:
Use HDstrncpy. --gh

r20761:
Purpose: Fix valgrind issues

Description:
Free image_data and data as appropriate in test_image.

r20762:
Purpose: Fix coverity issue 600

Description:
Add check for return value of H5O_close in H5Ocopy.  Also cleaned up various
warnings.

r20763:
Purpose: Fix valgrind issues with h5stat

Description:
Modified h5stat to free "iter" before exit, and free "hand" before exit if
parse_command_line exits directly.

r20764:
fixed coverity issues:
69, 327, 614, 684, 685, 696, 697, 1681, 967, 826, 660, 80

r20765:
Fixed coverity bug 668

Pulled x * y * z multiply out of malloc operand into a separate n_elements variable to quiet integer overflow warning.

No actual integer overflow tests are performed since it's just a test program but I did add a check that n_elements is >= 1.

I also changed an error condition from doing its own close and returning -1 to "goto out;" like the rest of the program.

r20766:
Fixed coverity bug 667

Pulled x * y * z multiply out of malloc operand into a separate n_elements variable to quiet integer overflow warning.

No actual integer overflow tests are performed since it's just a test program.


Tested on:
    Mac OSX/64 10.8.3 (amazon) w/C++ & FORTRAN
    (h5committest upcoming)
2013-05-11 10:59:48 -05:00
Dana Robinson
dd577725d1 [svn-r23572] Removed inappropriate executable properties from a few files. These are
often added by Windows text editors.

Tested on: jam (just tested to make sure it builds - no code changes)
2013-04-10 11:49:28 -05:00
Albert Cheng
6b00c16d2a [svn-r23555] Bug fix: HDFFV-8358
The previous change set exec_prefix, libdir and includedir to actual values.
That removed the option for user to hand edit just the first prefix=...
to make "everything" to work.
Changed h5redeploy to do this by default:
## Installation directories:						  ##
## prefix	architecture-independent files.				  ##
## exec_prefix	architecture-dependent files, default is <prefix>.	  ##
## libdir	libraries, default is <exec_prefix>/lib.		  ##
## includedir	header files, default is <prefix/include>.		  ##
############################################################################
This allows users to just change the first line of prefix=<...> and the
effect will change libdir and includedir too.

This was also try to accommodate the -prefix option of h5XX. Unfortunately,
after changing h5redeploy, I found out the h5XX code to support -prefix
actually does not provide the stated efffect. This will be fixed in the
release.

Tested: h5committested plus hand test.
2013-04-05 13:29:46 -05:00
Allen Byrne
70e0f8e200 [svn-r23548] Fix typo in macro end macro
Warning only.
2013-04-04 11:35:22 -05:00
Allen Byrne
f03301ce82 [svn-r23530] Moved test property into test macro.
Tested: local linux
2013-04-03 10:08:52 -05:00
Larry Knox
0b16cecb99 [svn-r23527] Revised usage to reflect change to use -shlib as default when no static libraries were built.
No test - text only revision of compile scripts.
2013-04-02 17:54:20 -05:00
Albert Cheng
913b88d15b [svn-r23497] Bug fix: HDFFV-8358
Change h5redeploy to change all 4 lines, prefix=..., exec_prefix=...,
libdir=..., and includedir=...  This way, it reset all 4 lines. Should work
for both version of h5cc created by configure or by rpm.

Tested: hand tested in jam.
2013-03-30 00:55:15 -05:00
Raymond Lu
6c974c824d [svn-r23495] ported revisions 23433:23494 from the trunk 2013-03-29 18:13:05 -05:00
Allen Byrne
dabebe412f [svn-r23447] Add new env var to prevent filter plugin loading
Tested: jam
2013-03-25 12:39:14 -05:00
Raymond Lu
865bf6bcb2 [svn-r23435] ported revisions 23346:23432 from the trunk 2013-03-22 17:29:55 -05:00
Raymond Lu
8ffd55478e [svn-r23432] I added a new macro HDF5_PLUGIN_PRELOAD to skip plugin loading during data reading.
Tested on koala and jam.
2013-03-22 16:39:53 -05:00
Larry Knox
99b1524474 [svn-r23431] Fix for HDFFV-8141.
Changes default value for USE_SHARED_LIB in compile scripts to yes when static is disabled.
Comments in scripts about the order of flag variables containing library paths was also corrected.

Tested with h5committest on duck, jam, koala, and ostrich in addition to specific testing for the 
compile script change.
2013-03-22 16:02:07 -05:00
Quincey Koziol
535456397c [svn-r23415] Description:
Avoid using fpclassify() for detecting zero/non-zero values.

Tested on:
    Mac OSX/64 10.8.3 (amazon) w/debug
2013-03-21 13:19:53 -05:00
Allen Byrne
e7ced517bc [svn-r23411] HDDFV-8322: Free allocations in command line parsing.
Tested: local linux
2013-03-21 09:04:50 -05:00
Jonathan Kim
e8955b876c [svn-r23407] Purpose:
HDFFV-8214 - h5repack failed converting small chunked dataset (size < 1K) to contiguous layout.

Description:
  h5repack failed converting small chunked dataset (size < 1K) to contiguous layout.
  The first case was when chunk dim is bigger than the dataset dim (at leat one), h5repack failed with displaying error stacks.
  The other case is when chunk dim is smaller than the dataset dim, h5repack failed to change layout.

    
Tested: 
    jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), emu (solaris-BE),fred (mac64-LE), Windows (32-LE cmake), cmake (jam)
2013-03-20 15:33:33 -05:00
Quincey Koziol
59dd5665a5 [svn-r23395] Description:
Bring Coverity changes from branch to trunk:

r20682:
fixed coverity:
76, 77, 635, 636, 1164, 1165, 1166, 1121, 1122, 1117, 1343

Tested on:
    Mac OSX/64 10.8.3 (amazon) w/C++ & FORTRAN
    (too minor to require h5committest)
2013-03-19 22:44:28 -05:00
Allen Byrne
8ad18f496a [svn-r23388] HDDFV-8322: Free allocations in parse_command_line function.
Tested: local linux
2013-03-19 15:51:14 -05:00
Allen Byrne
c1ddb82ac1 [svn-r23356] Correct target name 2013-03-15 10:28:32 -05:00
Allen Byrne
3a4c43cbd4 [svn-r23353] Correct target name 2013-03-15 10:26:14 -05:00
Raymond Lu
08359be858 [svn-r23347] ported revision 23248:23346 from the trunk 2013-03-13 17:34:23 -05:00
Allen Byrne
54574a282d [svn-r23314] Correct typo in DEPENDS 2013-02-25 11:41:09 -05:00
Allen Byrne
47af32527b [svn-r23310] Correct duplicate test command 2013-02-21 14:39:29 -05:00
Allen Byrne
e142838d1f [svn-r23308] HDFFV-8311: Correct test dependency
Tested: local linux
2013-02-21 10:47:51 -05:00
Allen Byrne
2c0357db80 [svn-r23307] HDFFV-8311: Correct test dependency
Remove h5ls references

Tested: local linux
2013-02-20 13:43:47 -05:00
Allen Byrne
8a92fbce85 [svn-r23306] HDFFV-8311: Correct test dependency
Tested: local linux
2013-02-20 11:42:11 -05:00
Allen Byrne
aff5c20a6a [svn-r23305] HDFFV-8257: szip still used even if headers are not found. Change configure to test the result of the CHECK HEADERS call before checking for the library.
Tested: local linux, h5committest
2013-02-18 15:56:21 -05:00
Jonathan Kim
dbad502865 [svn-r23304] Purpose:
HDFFV-7643 - h5diff - incorrect exit-code returns for extra attribute exist

Description:
   h5diff: Fixed to return correct exit code 1 when detect unique
   attribute. Prior to this fix, h5diff returned exit code 0 indicating 
   two files are identical.

Tested: 
    jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), fred (mac64-LE), emu (solaris-BE),  Windows (32-LE cmake), cmake (jam)
2013-02-18 14:46:03 -05:00
Allen Byrne
1eeac2048a [svn-r23289] HDFFV-8311: Correct test dependency
Tested: local linux
2013-02-15 16:46:45 -05:00
Allen Byrne
43189639fd [svn-r23286] HDFFV-8311: Correct test dependency
Tested: local linux
2013-02-15 14:35:21 -05:00
Allen Byrne
4149edf118 [svn-r23282] Add folder to outfile name 2013-02-14 15:32:15 -05:00
Allen Byrne
325c3b869f [svn-r23278] HDFFV-8311: Correct test dependency
Tested: local linux
2013-02-14 15:00:50 -05:00
Allen Byrne
8bdc6f991e [svn-r23277] Change name of output file. 2013-02-14 14:13:30 -05:00
Allen Byrne
ba355ce887 [svn-r23276] HDFFV-8311: Correct test dependency
Tested: local linux
2013-02-14 13:48:10 -05:00
Allen Byrne
06e935bae9 [svn-r23273] HDFFV-8311: Correct test dependency
Tested: local linux
2013-02-14 13:37:02 -05:00
Allen Byrne
90f4f15617 [svn-r23272] Correct typos 2013-02-14 13:16:43 -05:00
Allen Byrne
7feda84aeb [svn-r23271] HDFFV-8311: Correct test dependency
Tested: local linux
2013-02-14 13:10:24 -05:00
Allen Byrne
115a5b36dd [svn-r23270] Cleanup old test comments 2013-02-14 11:37:37 -05:00
Allen Byrne
b9edfdfa25 [svn-r23269] HDFFV-8311: Correct test dependency
Tested: local linux
2013-02-14 11:35:56 -05:00
Allen Byrne
366d729046 [svn-r23264] Remove tests from valgrind processing 2013-02-13 13:54:14 -05:00
Allen Byrne
3b1e202378 [svn-r23263] Test dependencies were incorrect and test outside macros did not always execute in the correct order.
Created new macro for h5import test verification. Corrected intra-macro test dependencies. Fixed clear tests.

Tested: local linux
2013-02-13 12:37:10 -05:00
Allen Byrne
472566b543 [svn-r23254] Make tests independent of each other
Tested: local linux
2013-02-12 16:01:26 -05:00
Allen Byrne
f08e413f1d [svn-r23252] Fix test dependency flow 2013-02-12 13:19:28 -05:00
Allen Byrne
334cebba07 [svn-r23251] Fix test dependency flow 2013-02-12 13:09:29 -05:00
Allen Byrne
6ad28abc14 [svn-r23249] Correct typo in normal depends statement.
Add MEMORY_CHECK settings to match existing VALGRIND statements
2013-02-12 08:41:43 -05:00
Allen Byrne
23d2b5d557 [svn-r23244] Correct test dependency handling.
Tested: local linux
2013-02-11 15:15:17 -05:00
Jonathan Kim
d7a07d62a4 [svn-r23228] Purpose:
Revert back one of the coverity updates from previous checkin. "r20457: Coverity issue 691" in previous svn log.  Only revert the change about using "STDOUT_FILENO".

Description:
    Using "STDOUT_FILENO" caused error on Windows. On unix it's defined in <unistd.h>, but not in Windows.  After a little discussion with Allen, he remembered how the similar case were handled for h5dump redirecting those streams. (in h5dump.c) However it would requires more attention to apply, so this issue is entered as a separate task in jira HDDFV-8306.

    
Tested: 
    jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), fred (mac64-LE)
2013-02-05 11:09:45 -05:00
Allen Byrne
b1e0f6c5a5 [svn-r23227] HDFFV-8215 - update help text to be cosistent with the RM entry.
Tested: local linux
2013-02-05 10:11:47 -05:00
Allen Byrne
c3e149d06f [svn-r23226] HDFFV-8285: suppress-ddl option: Changed file options to allow for filename F to be optional.
Tested: local linux
2013-02-04 15:15:59 -05:00
Quincey Koziol
a3e98d0e36 [svn-r23219] Description:
Bring reviewed changes from Coverity branch back to trunk (QK & JK):

r20457:
Coverity issue 691: return of H5duo could be negative. Fixed by using
STDOUT_FILENO and redesign parse_command_line and main to cleanup file
allocations. The output_file var is null when using stdout. In cleanup do not
close output_file if NULL.

r20510:
Initialize ufid = -1 and predicate HDclose call on ufid != -1

r20511:
Purpose: Fix coverity issue 1715

Description: Free "file" and nested data on failure in H5FD_core_open.

r20512:
Initialize ifid = -1 and predicate HDclose call on ifid != -1

r20514:
Initialize h5fid = -1 and predicate HDclose call on h5fid != -1

r20516:
Added else branch to the if (ret_value < 0) check.

r20522:
Addressed coverity issues 930-933, 850, 836, 835, 1307.  All minor 
potential buffer overwrite bugs, or coverity errors.  Fixed by replacing
strcpy and sprintf with strncpy and snprintf.

r20523:
fixed coverity issues 68, 1120, 1116i

r20524:
Check  H5Z_SZIP->encoder_present < 1 assuming 0 represents absence.

r20601:
Purpose: Fix coverity issues 1703-1705

Description: Modified the cleanup code in test_free in accum.c to reset
allocated buffers to NULL after they are freed, and modified the error cleanup
code to check if these buffers are NULL before freeing them.  Also fixed some
unrelated warnings in accum.c.

r20602:
Use HDsnprintf and HDstrncat

r20603:
Purpose: Fix coverity issues 808-809

Description: Modified test_core in vfd.c to check the returns from malloc, and
keep track of whether points and check are allocated by setting them to NULL
when they are not.  Added code to free points and check on error if they are
not NULL.  Also fixed unrelated warnings in vfd.c.

r20604:
Use HDstrncpy.

r20605:
Use HDstrncpy and HDstrncat.

r20606:
Purpose: Fix coverity issue 807

Description: Modified long_compact in stab.c to keep track of whether objname is
allocated by setting it to NULL when it is not.  Added code to free objname on
error if it is not NULL.

r20607:
Changed string function calls to use versions that specify the string length
to fix coverity issues 832 and 839.


Tested on:
    Mac OSX/64 10.8.2 (amazon)
    (Too minor to require h5committest)
2013-02-01 20:53:32 -05:00
Peter Cao
5140343f45 [svn-r23217] add scalr vlen string datasets 2013-01-31 17:15:15 -05:00
Allen Byrne
415aa7e257 [svn-r23216] Add newline for special case of only raw data to stdout 2013-01-31 15:51:23 -05:00
Allen Byrne
b84234d23c [svn-r23209] Change "diff -b" to just "cmp" for tests. diff is for text files and the ddl redirect does not have an ending newline. 2013-01-31 09:28:04 -05:00
Peter Cao
9d23b171a5 [svn-r23208] adding a large compound dataset to the test file 2013-01-30 17:06:40 -05:00
Peter Cao
d42db65e89 [svn-r23206] minor fixes for number of attributes to be created. 2013-01-30 15:53:15 -05:00
Peter Cao
7461ce3958 [svn-r23205] correct a typo in the instruction. 2013-01-30 15:06:46 -05:00
Peter Cao
1b4769d016 [svn-r23204] Update help information. 2013-01-30 15:00:19 -05:00
Peter Cao
ab2f0d00f3 [svn-r23203] Add test program to generate test file for checking performance. 2013-01-30 14:37:33 -05:00
Allen Byrne
82ac7b92e3 [svn-r23198] Remove -q option from diff as some OS do not support it.
Tested: local linux
2013-01-24 09:13:47 -05:00
Allen Byrne
81a6f5be7c [svn-r23195] Compares without end of file newlines
Tested: duck
2013-01-23 10:16:14 -05:00
Allen Byrne
5650be2d1a [svn-r23193] Rename ddl export file and force file write on copy for windows.
Tested: local linux
2013-01-23 08:48:54 -05:00
Allen Byrne
ff421d9424 [svn-r23190] HDFFV-8285: Add suppress ddl option.
Tested: local linux
2013-01-22 15:43:12 -05:00
Allen Byrne
0b107827ec [svn-r23185] Comment out unimplemented tests 2013-01-22 09:00:05 -05:00
Allen Byrne
3ddf8006a1 [svn-r23178] Comment out unimplemented tests 2013-01-18 14:49:11 -05:00
Allen Byrne
b807327433 [svn-r23177] Adjust mkdir to create all dependent folders 2013-01-18 14:33:00 -05:00
Allen Byrne
c352249db1 [svn-r23176] Separate testfiles into subdirs of TestDir to avoid parallel test errors trying to copy a reference file over when already in use.
Tested: local linux
2013-01-18 10:51:59 -05:00
Allen Byrne
769c50cbdc [svn-r23175] Comment out uncommitted tests. 2013-01-18 08:19:58 -05:00
Allen Byrne
0068ead81c [svn-r23174] Correct list items 2013-01-17 14:57:29 -05:00
Allen Byrne
0aba80fb13 [svn-r23173] export files must be handled differently on windows 2013-01-17 14:55:39 -05:00
Allen Byrne
a02d99ab61 [svn-r23170] Switch script to copy files to TESTDIR and execute
Tested: h5committest
2013-01-16 14:23:25 -05:00
Allen Byrne
ceb07d21b0 [svn-r23169] HDFFV-8169: String binary dump test scripts 2013-01-16 13:38:58 -05:00
Allen Byrne
c80e3a0d13 [svn-r23168] HDFFV-8169: String binary dump testfiles 2013-01-16 13:35:48 -05:00
Allen Byrne
35c2e47c60 [svn-r23166] Comment out redirect-ddl tests - incomplete 2013-01-15 11:36:09 -05:00
Allen Byrne
c326a3bd9c [svn-r23164] HDFFV-8285: H5dump suppress ddl option test script 2013-01-15 09:34:44 -05:00
Allen Byrne
2a7ae0367b [svn-r23163] HDFFV-8285: H5dump suppress ddl option testfile additions 2013-01-15 09:31:24 -05:00
Allen Byrne
2fba171a67 [svn-r23160] HDFFV-8227: Mac DARWIN requires CMake 2.8.10 2013-01-14 13:35:30 -05:00
Allen Byrne
7a775b6c59 [svn-r23158] HDFFV-8169: h5dump incorrectly dumps a string into a binary file
Tested: local linux
2013-01-14 11:26:22 -05:00
Albert Cheng
19a00efd98 [svn-r23055] Bug fix: HDFFV-8233
testh5stat.sh fails in LLNL uDawn. The test actually ran as expected
but it did not prepare for the extra error messages from the MPI
process.

Solution:
This sort of problem has been fixed by using the output filters in
output_filter.sh. testh5stat.sh is updated to use the output filters.

Tested:
uDawn.
2012-11-26 15:45:17 -05:00
Allen Byrne
670fb1977b [svn-r23038] Corrected last array assignment to use X-1 values for index. 2012-11-16 09:13:55 -05:00
Allen Byrne
b23a2aebf0 [svn-r23035] Add scalar string test file and tests 2012-11-15 12:21:18 -05:00
Allen Byrne
3e7f74caf1 [svn-r23034] Add scalar string test file and tests 2012-11-15 12:20:05 -05:00
Quincey Koziol
b9d042d2d2 [svn-r22998] Description:
Clean up warnings and bring changes from Coverity branch back to trunk:

r20451:
Fixed coverity 810

r20454:
Purpose: Fix coverity issue 816

Description: Modified various file drivers to always check the return value from
H5P_get_driver_info.

r20455:
Purpose: Cleanup fix for coverity issue 816

Description: Removed redundant check for "fa" in H5FD_core_open.


Tested on:
    Mac OSX/64 10.8.2 (amazon) w/debug
    (Too minor to require h5committest)
2012-11-01 11:01:37 -05:00
Jonathan Kim
961a24ac3c [svn-r22933] Purpose:
HDFFV-8145 h5diff slowness with version >= 1.8.7

Description:
    Improved speed when comparing HDF5 files with lots of attributes. Much slower performance was identified with release version from 1.8.7 to 1.8.10 compared to 1.8.6.
    
Tested: 
    jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), tejeda (mac32-LE), Windows (32-LE cmake), cmake (jam)
2012-10-19 16:28:14 -05:00
Quincey Koziol
e9519f5e6a [svn-r22921] Description:
Review Coverity changes and bring them back to trunk. (QK & JK)

r20402:
Added #includes for h5tools.y or h5tools_utils.h as required to remedy implicit
function declarations which caused compiler warnings and coverity issues 703-4
and 708-11.

r20414:
This is related to the previous checkin r20399.  There were incorrect updates
which caused incorrect behavior when no file was given. Also possible segfault
when handling hyperslab options. Simplify the code changes.

r20449:
Description: Modified H5E_walk2_cb to check return value of H5I_object_verify.

r20450:
fixed coverity 813


Tested on:
    Mac OSX/64 10.8.2 (amazon) w/C++, FORTRAN, debug & threadsafe
    (too minor to require h5committest)
2012-10-18 14:47:39 -05:00
Quincey Koziol
0324f05566 [svn-r22915] Description:
Bring Coverity changes back to trunk:


r20399:
Change parse_command_line to free hand structure on error and only "leave()" at end of main.

r20400:
Purpose: Fix coverity issue 592

Description: Added void cast to call to H5F_sfile_assert_num() in
H5F_term)interface().  There is no need to check the return value of this
function in general, and there would be nothing to do even if it did fail.

r20401:
Added free(src_sizes) and free(src_offset). --gh


Tested on:
    Mac OSX/64 10.8.2 (amazon) w/C++, FORTRAN, threadsafe
    (too minor for h5committest)
2012-10-17 13:41:42 -05:00
Larry Knox
33504deb83 [svn-r22908] Reverted changes in revision 22819
Tested with h5committest on jam, koala and ostrich.
2012-10-16 16:38:58 -05:00
Allen Byrne
348e91e02f [svn-r22881] Correct datatype of scalar array of doubles
Tested: local linux
2012-10-10 16:08:44 -05:00
Larry Knox
c5371d7618 [svn-r22819] Added H5BLD_STATIC and HDF5_USE_SHLIB to configure.ac so that if configured with --disable-static the default for HDF5_USE_SHLIB in the compile scripts will be changed to yes. This is a fix for HDFFV-8141, where the compile scripts try to link to non-existant static hdf5 libraries.
Tested on jam,koala,ostrich(h5committest) and other THG machines.
2012-09-26 23:49:19 -05:00
Jonathan Kim
563990e64e [svn-r22816] Failed on Mac for testing tscalarintsize and tscalarattrintsize from daily test.
Larry mentioned that intel compiler was used on Mac for testing.
Allen requested comment it out.
"It is not scheduled for 1.8, I created the file for Java testing. Actually I 
have to create windows versions because of the use of floating point." - Allen
2012-09-26 15:21:36 -05:00
Jonathan Kim
50e3990f2a [svn-r22805] Purpose:
HDFFV-8012 - h5repack changes max dims and cause failure if only "-f none" is used without changing layout for chunked dataset when a chunk dim is bigger than a dataset dim

Description:
    "h5repack -f <obj>:NONE <file.h5> out.h5" command failed if source file contains chunked dataset and a chunk dim is bigger than a dataset dim. 
    Another issue is that the command changed max dims if chunk dim is smaller than the dataset dim. 
    These issue occurred when dataset size is smaller than 64k (compact size limit)
    Fixed them.

Tested: 
    jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE),  Windows (32-LE cmake), cmake (jam)
2012-09-24 18:13:57 -05:00
Allen Byrne
d834917bca [svn-r22795] Create scalar test files and h5dump tests.
Tested: local linux
2012-09-20 13:57:03 -05:00
Allen Byrne
eff696a3b0 [svn-r22785] HDFFV-8153: Pull POSIX_C_SOURCE define out to separate variable. Use ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS}) in non-fortran CMakeLists.txt folders
Tested: jam with intel compilers
2012-09-18 17:08:07 -05:00