Commit Graph

642 Commits

Author SHA1 Message Date
Allen Byrne
cbf5bb6b78 [svn-r27674] Attempt to fix race condition on windows 2015-09-03 16:45:17 -05:00
Scot Breitenfeld
33a2e52c6e [svn-r27663] Removed the lines:
# Source files are used for both the library and fortranlib_test.
# Automake will complain about this without the following workaround.
fortranlib_test_FCFLAGS=$(AM_FCFLAGS)
fortranlib_test_CFLAGS=$(AM_CFLAGS)

because they caused Fortran build rules (.f90.o, .F90.o) to be ignored, causing the CPP flags to be passed to the Fortran compiler, causing the xlf compiler to fail.

Tested: ostrich (xlf), h5committest
2015-09-02 11:33:12 -05:00
Allen Byrne
f72ed2d8dc [svn-r27648] Fortran executables depend on modules created by test library, add command to explictly enforce the building of the library before building executables. 2015-09-01 09:56:39 -05:00
Scot Breitenfeld
17f5ee3624 [svn-r27647] Added compiler check for PGI and CMake version.
CMake must be > v3.3 to compile with PGI due to
CMake bug in earlier versions.
2015-09-01 09:00:14 -05:00
Dana Robinson
59aa015d9f [svn-r27638] Merged r27500-27631 from trunk. 2015-08-31 23:36:17 -05:00
Scot Breitenfeld
e6f9fc5f7f [svn-r27625] Added preprocessor commands for PGI compiler.
tested: h5committest
2015-08-31 13:49:17 -05:00
Allen Byrne
6635d4c003 [svn-r27586] HDFFV-9497: Add back ALLOW_UNSUPPORTED OPTION.
Added new option SKIP_HDF5_FORTRAN_SHARED
2015-08-26 11:48:42 -05:00
Scot Breitenfeld
2faae30c8d [svn-r27585] disabled the test "test_userblock_offset"; it fails for unknown reasons on platypus with pgf90 compiler when reading the streamed file back. 2015-08-26 10:13:43 -05:00
Scot Breitenfeld
4939ee2419 [svn-r27580] Fix for:
HDFFV-9283
Add H5Dget_offset fortran wrapper

tested: h5committest
2015-08-25 16:49:36 -05:00
Scot Breitenfeld
1436a07905 [svn-r27537] Added new FCCPPFLAGS to avoid passing CPPFLAGS to the fortran pre-processor compiler (This mainly causes issues with the xlf compilers)
Tested: h5committest
2015-08-20 11:01:26 -05:00
Scot Breitenfeld
d06fee7bd2 [svn-r27517] Removed all perl scripts from configure.
Tested: h5committest
2015-08-17 16:12:03 -05:00
Dana Robinson
c27d180848 [svn-r27507] Merge of r27237-27500 from the trunk.
Tested w/ h5committest

NOTES: - The manifest may still be messed up.
       - Cmake fails since the dual binary work needs to be merged with
         this repo's CMake externals.
2015-08-14 14:58:54 -05:00
Scot Breitenfeld
caf0e7692a [svn-r27493] Trying again to merge the F2003_v1.10 branch to the trunk.
Tested: h5committest --PASSED--
2015-08-11 09:35:30 -05:00
Scot Breitenfeld
3b4696ccd1 [svn-r27489] reverted merge of branch 2015-08-10 20:22:33 -05:00
Scot Breitenfeld
a9bef45c75 [svn-r27470] svn merge -r27425:27460 https://svn.hdfgroup.uiuc.edu/hdf5/trunk 2015-08-05 16:35:30 -05:00
Allen Byrne
9e2434625d [svn-r27469] Merge from trunk with dual-binary CMake code.
Tested: local linux with CMake
2015-08-05 16:01:07 -05:00
Scot Breitenfeld
0040ee0c99 [svn-r27418] format clean-up 2015-07-21 10:19:07 -05:00
Scot Breitenfeld
2edc6a97db [svn-r27405] added implicit none 2015-07-17 16:15:23 -05:00
Scot Breitenfeld
a41f88bc3e [svn-r27404] Implemented new function to compare reals with adjustible precision tolerance. 2015-07-17 16:12:31 -05:00
Scot Breitenfeld
838755cf71 [svn-r27375] Moved generating Fortran 'test' code from the fortran src directory to the fortran 'test' directory. Updated autotools and cmake. 2015-07-13 14:37:28 -05:00
Scot Breitenfeld
717609a674 [svn-r27373] moved building generated test APIs to a sperated build program (was in fortran/src/H5_buildiface.F90) 2015-07-13 13:54:09 -05:00
Scot Breitenfeld
2a567e8155 [svn-r27326] Working version of cmake on linux. 2015-07-02 14:04:25 -05:00
Dana Robinson
fb27787c2a [svn-r27222] Merge of r27035-27221 from the trunk.
Tested on 64-bit linux VM:
    Serial: C++ and Fortran 2003
    Parallel: Fortran
2015-06-17 06:48:34 -05:00
Scot Breitenfeld
85bcb77904 [svn-r27221] Reworked Fortran autools REAL KIND detection. 2015-06-16 16:47:00 -05:00
Scot Breitenfeld
133a5c3681 [svn-r27188] Switch to using parameters for SELECTED_*_KIND and instead use numerical precision. 2015-06-10 14:58:34 -05:00
Scot Breitenfeld
f2d14c76b8 [svn-r27186] added fix for jam with promoted reals and integers 2015-06-10 14:15:08 -05:00
Scot Breitenfeld
625fc9db69 [svn-r27176] Removed debugging statements. 2015-06-09 16:51:27 -05:00
Scot Breitenfeld
62401ac7c6 [svn-r27167] more DT fixes 2015-06-09 12:05:09 -05:00
Scot Breitenfeld
32703c9fc5 [svn-r27164] various bug fixes for DT 2015-06-08 16:13:15 -05:00
Scot Breitenfeld
8641814c4e [svn-r27154] fixed issue with mis-matching long double between Fortran and C 2015-06-05 17:17:13 -05:00
Scot Breitenfeld
043173a689 [svn-r27151] fixed __float128 errors 2015-06-04 15:26:02 -05:00
Scot Breitenfeld
4d500d4902 [svn-r27140] fixed interger*16 support 2015-06-03 09:13:58 -05:00
Scot Breitenfeld
f486fe1a49 [svn-r27137] svn merge -r27115:27135 https://svn.hdfgroup.uiuc.edu/hdf5/trunk 2015-06-02 09:46:51 -05:00
Scot Breitenfeld
2069dbf25e [svn-r27134] Switched to uses a verify for each kind for the tests. Testing quad precision. 2015-06-01 14:49:54 -05:00
Mohamad Chaarawi
fc45d5fcb0 [svn-r27133] - Add a new attribute function characterstic for format:
* H5_ATTR_FORMAT(X,Y,Z)  __attribute__((format(X, Y, Z)))
- Rename UNUSED attribute characterstic to H5_ATTR_UNUSED.
- Rename NORETURN attribute characterstic to H5_ATTR_NORETURN

tested with h5committest.
2015-06-01 14:38:09 -05:00
Scot Breitenfeld
52e5579fba [svn-r27122] removed dependency on generatored fortran source code 2015-05-28 11:53:15 -05:00
Scot Breitenfeld
244784ab2c [svn-r27115] Moved testing KINDs and SIZEOFs to configure. 2015-05-27 17:07:18 -05:00
Dana Robinson
984ecb72c2 [svn-r27038] Merge of r26393-27031 from the trunk.
Tested on 64-bit linux VM w/ C++ and Fortran 2003
2015-05-07 16:05:14 -05:00
Scot Breitenfeld
2c575bb79a [svn-r26989] Changed the BIND(C) derived types from:
CHARACTER(LEN=1) to CHARACTER(KIND=C_CHAR) to make Sun compilers happy.
2015-05-01 11:25:32 -05:00
Scot Breitenfeld
82c1ce78d5 [svn-r26983] Added C_CHAR to compound type. 2015-04-30 09:39:57 -05:00
Scot Breitenfeld
b8b7d33f41 [svn-r26919] fixed real promoted to 8 bytes 2015-04-24 13:54:25 -05:00
Scot Breitenfeld
bf47c596a5 [svn-r26887] Fixed Function H5_SIZEOF_CHAR and assumed sized character length. 2015-04-22 14:31:58 -05:00
Scot Breitenfeld
f981d2e11e [svn-r26876] changed argument to SIZEOF. 2015-04-21 15:59:45 -05:00
Scot Breitenfeld
5e6d18e5be [svn-r26869] removed the --enable-fortran2003 option, it is now just --enable-fortran 2015-04-21 13:33:25 -05:00
Scot Breitenfeld
5fd5aa58ca [svn-r26847] combined H5test_kind programs 2015-04-20 14:15:30 -05:00
Scot Breitenfeld
0cc9b0c79f [svn-r26825] Added include for preprocessing fortran files with configure definitions 2015-04-16 13:36:34 -05:00
Larry Knox
3032f3adf3 [svn-r26711] Recommitting revisions 26669 and 26670, removing VPATH and redundant /usr/include and lib in fcompile and link flags checks, now that I have run reconfigure.
Also changed paths to h5cc, etc. in scripts to run installed examples from relative paths to absolute paths.

Tested with h5committest.
2015-04-02 16:07:53 -05:00
Allen Byrne
45577d5693 [svn-r26660] HDFFV-9131: autotols rework
Remove CXX_CONDITIONAL
remove unneeded/obsolete sections.

h5commtitest
2015-03-30 13:55:21 -05:00
Scot Breitenfeld
13980cd69a [svn-r26657] Fix for HDFFV09202.
HDFFV-9202 subroutine VERIFY() fails when checking 8 byte integers in fortran tests

Tested: jam( --enable-fortran2003, gnu)
        koala (--enable-fortran2003, intel)
2015-03-30 13:17:45 -05:00
Larry Knox
f617eeb78f [svn-r26645] Revert the part of revision 26642 that is in fortran/test and causes the error "undefined reference to `verify_fortran_integer_4_".
files:
    tH5P_F03.f90
    tf.f90

Tested:  h5committest and several failed daily tests.
2015-03-29 21:32:09 -05:00
Scot Breitenfeld
8e5a71c716 [svn-r26642] Fix for HDFFV09202 and HDFFV-9171.
HDFFV-9171 Configure mistakes Cray Compilers for Intel Compilers,
HDFFV-9202 subroutine VERIFY() fails when checking 8 byte integers in fortran tests 

Tested: h5committest
2015-03-28 15:24:36 -05:00
Scot Breitenfeld
ff1c86df14 [svn-r26631] reverted change r26629 2015-03-27 17:16:49 -05:00
Scot Breitenfeld
d494d7b3b9 [svn-r26629] Fix for HDFFV09202 and HDFFV-9171.
HDFFV-9171 Configure mistakes Cray Compilers for Intel Compilers,
HDFFV-9202 subroutine VERIFY() fails when checking 8 byte integers in fortran tests 

Tested: h5committest
2015-03-27 17:10:24 -05:00
Allen Byrne
451a91e53b [svn-r26594] Merge macros and fortran changes from dual_binary feature.
Tested: local linux
2015-03-25 17:08:46 -05:00
Jerome Soumagne
1cd7c16a9d [svn-r26509] Run reconfigure after merges from autotools_rework branch. 2015-03-20 14:15:51 -05:00
Scot Breitenfeld
c26d21bb63 [svn-r26481] Removed compiler warnings. HDF5-239
Tested: h5committest.
2015-03-19 14:14:19 -05:00
Scot Breitenfeld
8f8cbb6225 [svn-r26479] Fix for: HDFFV-9162
h5pget_class_f should return hid_t for classtype

Also removed all left over C comment artifacts /* and */ in the Fortran comments.

Tested: h5committest
2015-03-19 12:11:47 -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
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
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
Allen Byrne
f679b9006d [svn-r26253] Update CMake with fortran source properties and defines, correct name of hl fortran examples option check 2015-02-20 12:25:56 -05:00
Scot Breitenfeld
3eeed2f1d5 [svn-r26241] Fixed issue with default 8 byte integers using xlf compilers. 2015-02-19 11:17:16 -05:00
Scot Breitenfeld
27a385d557 [svn-r26214] Fix for HDFFV-8908:
h5tenum_insert_f does not work with default 8 byte integers (xlf compiler)
2015-02-18 13:51:13 -05:00
Scot Breitenfeld
3a303d3dd3 [svn-r26211] revert ci 26204 2015-02-18 12:45:42 -05:00
Allen Byrne
73bb11dda3 [svn-r26208] Update cmake minimums 2015-02-18 11:56:22 -05:00
Scot Breitenfeld
a75fd4c960 [svn-r26205] Fix for HDFFV-8908:
h5tenum_insert_f does not work with default 8 byte integers (xlf compiler)
2015-02-18 11:42:47 -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
Allen Byrne
ab75986b8c [svn-r26161] Fix cmake case.
Turn on F2003 by default.
Set source properties in fortran cmake files.
2015-02-12 16:52:48 -05:00
Scot Breitenfeld
167619a75d [svn-r26132] reverted change 26177
svn merge -c -26117 .

Shared Fortran libraries don't work on Mac, the check for building shared on Mac needs to stay in.
2015-02-05 14:36:51 -05:00
Scot Breitenfeld
8a528170ec [svn-r26117] Autotools work HDFFV-9067,
Removed restiction of disabling shared libraries on the MAC, H5_FORTRAN_SHARED was replaced with HAVE_SHARED_CONDITIONAL since H5_FORTRAN_SHARED was removed.

tested: jam
2015-02-03 10:42:15 -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
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
Quincey Koziol
b65eae7aee [svn-r25929] Description:
Clean up EOF code within library and add 'mem_type' parameter to 'get_eof'
VFD callback, to avoid various ambiguous situations, particularly with the
multi VFD.  (Supports changes for 'avoid_truncate' feature also)

Tested on:
    MacOSX/64 10.10.1 (amazon) w/serial & parallel
    h5committest forthcoming
2014-12-29 01:02:06 -05:00
Scot Breitenfeld
6f2f584c42 [svn-r25626] Changed the callback function integer type from INTEGER to INTEGER(C_INT) for portability, HDFFV-8909. 2014-09-26 09:25:04 -05:00
Scot Breitenfeld
52d5e22956 [svn-r25618] Added tests for HDFFV-8879 2014-09-25 09:48:33 -05:00
Scot Breitenfeld
00e4cbc963 [svn-r25473] Added VALUE to callback group_id type. Needed to fix problem when hid_t is 64-bit.
Tested: jam (intel, gnu)
2014-07-23 12:01:51 -05:00
Scot Breitenfeld
1ebce1bfcf [svn-r25469] Removed duplicate BIND(C) type defintion.
Tested: (jam: gnu, intel)
2014-07-22 15:55:08 -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
Scot Breitenfeld
bfb60a0cc1 [svn-r25304] Fixes latest check-in errors for:
HDFFV-8653
replace non-standard sizeof in the fortran tests with c_sizeof

(1) Removed the overloaded h5_sizeof functions for characters and integer arrays since Sun compilers don't allow them to be passed into a function that uses sizeof.

(2) Requested min. precision for reals to avoid duplicate interfaces when the flag -r8 (or equiv.) is set.

tested:
*jam: intel, -i8 -r8 --enable-fortran2003
*jam: pgi, --enable-fortran2003
*emu: sun, --enable-fortran2003
2014-06-17 13:09:39 -05:00
Scot Breitenfeld
90757478c2 [svn-r25294] added implicit none 2014-06-16 12:06:46 -05:00
Scot Breitenfeld
7d3ff84d59 [svn-r25291] Fix for:
HDFFV-8653
replace non-standard sizeof in the fortran tests with c_sizeof
2014-06-16 11:56:01 -05:00
Scot Breitenfeld
9cf0844928 [svn-r25290] Fix for:
HDFFV-8653
replace non-standard sizeof in the fortran tests with c_sizeof
2014-06-16 11:38:07 -05:00
Scot Breitenfeld
744bc7d236 [svn-r25286] Fix for:
HDFFV-8653
replace non-standard sizeof in the fortran tests with c_sizeof 

Tested: jam (gnu, intel) with make and cmake.
2014-06-16 10:15:25 -05:00
Scot Breitenfeld
cf71b7db57 [svn-r25238] Removed warning about the data type of the actual argument does not match the definition to verify function. Trivial fix.
tested: jam (gnu)
2014-06-04 09:08:17 -05:00
HDF Tester
0774c92383 [svn-r25181] Snapshot version 1.9 release 180 2014-05-11 07:01:22 -05:00
Scot Breitenfeld
1ab0de9861 [svn-r25173] Removed unused module TH5F.
Tested: jam (intel, pgi)
2014-05-07 10:57:01 -05:00
Scot Breitenfeld
fb7e8562e2 [svn-r25169] Removed duplicate tests in fortranlib_test_1_8.f90 and fortranlib_test.f90. Thus removing the dependency on tH5F.f90, which was causing compilation race-conditions in cmake.
Tested: jam (gnu)
2014-05-06 09:18:30 -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
Scot Breitenfeld
3677c1cc8e [svn-r25001] Cast as integer to verify routine to remove intel warning.
Tested: jam (intel)
2014-04-09 09:45:04 -05:00
Scot Breitenfeld
9cd1a1bb60 [svn-r24986] Comparing REALs now converts all REALs to double precision and then compares if the two numbers are equivalent.
Tested: jam (gnu, intel)
2014-04-08 14:34:42 -05:00
Scot Breitenfeld
d1f2b1a682 [svn-r24985] reverted the r24984 update. 2014-04-07 20:00:24 -05:00
Scot Breitenfeld
ff9a10cfda [svn-r24984] Added overload operatorZ to compare REALs for tests.
Tested on jam (gfortran, (-r8))
2014-04-07 19:18:20 -05:00
Elena Pourmal
849177c7b6 [svn-r24979] Maintenance: Addressed DT failures on emu in 64-bit mode and on macs, linux, powerpc
for non-standard sizes of reals.

Platforms tested: jam, ostrich, platypus, kite, quail, emu
2014-04-07 12:05:22 -05:00
Scot Breitenfeld
f6a04cded9 [svn-r24978] Removed the .mod (and .raw) files when make clean is issued.
tested (emu).
2014-04-07 11:29:23 -05:00
Elena Pourmal
70daa61a87 [svn-r24967] Maintenance: Reorganized and cleaned the code to remove compiler warnings in the Fortran test code
and examples. 

Platforms tested: Manual testing in place and using srcdir on jam, platypus, and emu with default and 
                  PGI, Intel and new GNU compilers. ifort compiler was also tested with -i8 and -r8 flags
                  on jam.  CMake tested on jam.
2014-04-06 10:56:21 -05:00
Allen Byrne
5f4562b2ea [svn-r24954] HDFFV-8700: lowercase CMake commands 2014-04-03 10:34:08 -05:00
Scot Breitenfeld
e26b78a04b [svn-r24953] Fixed --enable-production compilation error using Sun compilers.
Tested (emu)
2014-04-03 10:18:42 -05:00
Scot Breitenfeld
b0bdd25417 [svn-r24952] Fixed -i8 -r8 error with optimization on jam using intel compiler.
Tested: jam (intel)
2014-04-03 10:01:21 -05:00
Scot Breitenfeld
b87b1c965d [svn-r24951] Changed ordering of initiation of variable to remove warnings using sun compilers.
Tested: emu
2014-04-03 09:35:54 -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
Scot Breitenfeld
5555f057ae [svn-r24945] Fixed failed test on jam with intel compilers and -i8 -r8
Tested: jam (intel)
2014-04-02 09:17:14 -05:00
Scot Breitenfeld
c86aedeba1 [svn-r24939] Fix for HDFFV-8309 Fortran wrappers for H5Pget/set_file_image functions
Tested: jam (gnu, intel, pgi)
2014-04-01 10:15:26 -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
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
f5689224b5 [svn-r24789] Bump up the minimum cmake version 2014-03-13 10:05:09 -05:00
Scot Breitenfeld
b17f3e4183 [svn-r24783] fixed typo 2014-03-12 09:20:47 -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
Scot Breitenfeld
d4d0407a87 [svn-r24623] Enabled test for
HDFFV-8268 Fortran wrapper for H5Fget_file_image function

Tested: jam (pgi compilers)
        h5committest
2014-01-08 15:21:32 -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
Larry Knox
2c6fc585fd [svn-r24114] Reverting the changes in r24113 for now because they break parallel make fortran. The changes aren't incorrect, but more work in needed on dependencies and also for enable-parallel.
Reverted to r24112.
2013-09-06 17:42:10 -05:00
Quincey Koziol
f825256c87 [svn-r24113] Description:
Reduce warnings w/gfortran in FORTRAN build by declaring interface for
utility test routines.

Tested on:
    Mac OSX/64 10.8.4 (amazon) w/gcc/g++/gfortran 4.8
2013-09-06 15:27:13 -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
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
feb14ea872 [svn-r23745] HDFFV-8461: Add Windows /MT support
This adds the UserMacros.cmake support needed.
2013-06-10 12:46:48 -05:00
Scot Breitenfeld
c61fb7260a [svn-r23585] changed the integer kind in the enum to satisfy g95.
Tested: jam (g95, gfortran)
2013-04-14 16:19:40 -05:00
Scot Breitenfeld
337242feea [svn-r23576] added missing argument in check call.
tested: jam (g95,gcc))
2013-04-11 14:40:57 -05:00
Scot Breitenfeld
d7724485b0 [svn-r23475] added dll for verify_Fortran_INTEGER_4 2013-03-28 11:11:34 -05:00
Scot Breitenfeld
881cdef5f8 [svn-r23463] Added dllexport for verify_real_kind_7 2013-03-27 10:04:33 -05:00
Scot Breitenfeld
ebb18c5186 [svn-r23325] Description
------------

Fix for:
HDFFV-8149: h5pset_external_f API - the offset is declared integer which can cause problem if use 64-bit integer  

Added new type off_t, modified source files and added a new test.

Tested (jam, intel, gnu)
2013-03-05 00:06:59 -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
Scot Breitenfeld
f3da4919c4 [svn-r23297] Temporary fix: PGI COMPILERS seem to have a bug in the INQUIRE function,
waiting for an answer from PGI how to resolve the problem.

Tested: jam (pgi compiler)
2013-02-18 10:28:36 -05:00
Scot Breitenfeld
2ec529c035 [svn-r23296] Fix HDFFV-8312: Problem using NAG compiler and F2003 interface
added character bounds for C_LOC arguments.

Tested: jam (gnu)
2013-02-17 22:46:06 -05:00
Scot Breitenfeld
a976ca99a9 [svn-r23293] Fix for HDFFV-8268: Fortran wrapper for H5Fget_file_image function.
Tested: (jam, gnu,intel compilers)
2013-02-17 21:01:18 -05:00
Scot Breitenfeld
386f73823a [svn-r23236] Fix for: HDFFV-8223
Write a Fortran test for conversion fron enum to numeric type 

Tested (jam, gnu, intel)
2013-02-07 19:28:55 -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
5697dc8f80 [svn-r23066] HDFFV-8265: create .def file during configure, added F2003 optional functions and refactor ISO_C_BINDING usage in cmake files
Tested: local cmake
2012-11-29 09:50:21 -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
Scot Breitenfeld
3e59374ccd [svn-r22854] Fixed issues with default 8-byte real and default 8-byte integers and the new H5O routines.
Tested: jam (gcc,intel)
2012-10-02 19:53:21 -05:00
Scot Breitenfeld
08a5424f60 [svn-r22839] removed unused variable.
tested: jam (pgi compiler)
2012-09-28 09:48:12 -05:00
Scot Breitenfeld
485b5dea69 [svn-r22829] Fixed merge mistake, merge removed part of the subroutine.
tested: jam (intel)
2012-09-27 15:24:03 -05:00
Scot Breitenfeld
7b9929e309 [svn-r22828]
HDFFV-8007:Add missing H5O Fortran functions 

Added new F03 test file for new H5O functions.
2012-09-27 14:48:54 -05:00
Scot Breitenfeld
0878e52087 [svn-r22827] HDFFV-8007: Add missing H5O Fortran functions.
Tested: jam(gnu,intel)
2012-09-27 14:43:48 -05:00
Scot Breitenfeld
393852a414 [svn-r22826] Fix for: HDFFV-7903 Fortran problem writing control character to a dataset
reconfigured
2012-09-27 14:21:45 -05:00
Scot Breitenfeld
32a131ea70 [svn-r22825] Fix for: HDFFV-7903 Fortran problem writing control character to a dataset
Tested: (jam, gfortran)
2012-09-27 14:20:09 -05:00
Scot Breitenfeld
a81cc2ac7e [svn-r22824] FIX: HDFFV-8118: Support Fortran compiler flags that change the default size of integer and real
Tested: jam(gnu,intel), machine with gcc 4.7 and C long double = 16 bytes.
2012-09-27 14:13:13 -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
Allen Byrne
1f8fb63581 [svn-r22709] HDFFV-8129: reconfigured on jam, Remove overloading of autotools TESTS var, rename configure.in to configure.ac, convert test scripts from hard *.sh to configure managed *sh.in files.
Tested: h5committest
2012-08-23 11:07:43 -05:00
Larry Knox
edf83e5d1f [svn-r22706] Updated autotools: autoconf 2.69, automake 1.12.3, m4 1.4.16, libtool 2.4.2
Tested THG machines.
2012-08-22 00:00:32 -05:00
Scot Breitenfeld
ce47ef777f [svn-r22510] Enabled the compilation of tH5E_F03.f90 2012-07-02 20:16:45 -05:00
Elena Pourmal
732ae085dc [svn-r22504] Maintenance:
See HELPDESK-643 issue in JIRA.
NAG Fortran compiler doesn't like the current tH5E_F03.f90 file that has only comments
and no executable statements. Removed tH5E_F03.f90 from the list of modules to build.

Tested on jam with Intel compiler using --enable-fortran2003 flag.
2012-06-29 15:39:42 -05:00
Scot Breitenfeld
24810fd216 [svn-r22392] Added test for h5tcreate_f with H5T_STRING_F option.
Cleaned-up formating and comments for h5tcreate_f.

Tested: jam (gnu compiler)
2012-05-22 23:47:31 -05:00
Allen Byrne
40c3252951 [svn-r22195] Add PASS_REGULAR_EXPRESSION property to fortran tests to verify 0 errors. Some platforms do not return proper value in CMake ADD_TEST and results in a false positive.
Tested: local linux
2012-03-29 16:32:59 -05:00
Scot Breitenfeld
0ce5cbc925 [svn-r22163] Added tests for optional parameters in h5ocopy_f.
Cleaned up comments by removing "C" notation comments

Tested: jam (gnu, intel)
        koala (intel)
2012-03-28 00:43:22 -05:00
Scot Breitenfeld
e002bb98e1 [svn-r22142] Description : New Fortran wrapper (h5ocopy_f) for the C API H5Ocopy
HDFFV-7965

Tested: jam (gnu), koala (gnu)
2012-03-25 23:12:59 -05:00
Allen Byrne
cc3eb8da73 [svn-r21804] Update CMake Required version in all folders to match current standard 2.8.6 2011-12-05 11:19:09 -05:00
Scot Breitenfeld
d66172b99f [svn-r21778] Description:
Added test for h5dget_space_status_f.

Tested: jam (gnu, intel, pgi)
2011-11-28 23:21:56 -05:00
Scot Breitenfeld
a5e80bd595 [svn-r21720] Description:
Renamed hdf file dsetf.h5 to dsetf_F03.h5 to avoid a possible conflict with the same file created in the fortranlib_test.f90 test.

Tested: jam (pgi)
2011-11-05 14:39:49 -05:00
Scot Breitenfeld
c66edadd64 [svn-r21719] Description:
Removed using INT() on an already INTEGER variable on the input argument to the verify routine, which was causing wrong verify results for the two integers on a Mac.

Tested: fred (gnu) in production mode.
2011-11-05 14:06:00 -05:00
Allen Byrne
49fabfad86 [svn-r21710] CMake FindMPI module changed to look for fortran libs. Cmake files updated to link with fortran mpi libs.
Updated cacheinit.cmake to set num of procs to 3 for hdf testing.

Tested: local linux and on windows 7
2011-11-03 16:06:37 -05:00
Scot Breitenfeld
5b3fbdb542 [svn-r21691] Removed extra "file_close" test since it is already
in fortranlib_test.f90. I think it was causing the 
make check -j8 race condition failures in daily tests.

Tested jam (gfortran, intel)
2011-10-29 14:23:42 -05:00
Scot Breitenfeld
c65c53afcb [svn-r21690] Albert noted on AIX:
> make failed:
> "../../../hdf5/fortran/test/fortranlib_test_1_8.f90", line 642.15: 
> 1513-041 (S) Arguments of the wrong type were specified for the 
> INTRINSIC procedure "mod".

Fixed by defining both arguments in MOD as integer size_t

Tested: jam (gfortran, intel)
2011-10-29 14:16:20 -05:00
Allen Byrne
c5e075851a [svn-r21667] Update FOLDER solution option for target properties. Added OPTION command for solution folder and no packaging.
Tested: local linux
2011-10-25 11:52:58 -05:00
Scot Breitenfeld
3be11d46c5 [svn-r21584] Removed H5L_info_t definition from test source, it's defined in the hdf5 library.
tested: jam (intel)
2011-10-14 16:13:57 -05:00
Scot Breitenfeld
0e0fa10599 [svn-r21536] Desciption: Removed H5Eget_auto_f from source, moved to F2003_new branch for
further testing.

Tested: jam (gnu)
2011-10-12 23:49:36 -05:00
Scot Breitenfeld
817bfb6499 [svn-r21475] Description: fixed C_LOC(X) non-standard argument X for multi-dimensional arrays detected using xlf compiler.
Tested: jam  (intel, gnu, pgi) F2003 compilers.
2011-10-04 23:51:08 -05:00
Allen Byrne
bae6ab5219 [svn-r21435] Add F2003 IF-ENDIF protection blocks around _F03 file processing 2011-09-30 09:01:49 -05:00
Scot Breitenfeld
2f282ffa9d [svn-r21339] Description: Added test for reading and writing vl strings in fortran (using F2003), for both 1D and 2D array of vl strings.
Tested: jam (pgi, gfortran 4.5, ifort)
        linew (12.3 beta)
2011-08-30 22:02:41 -05:00
Scot Breitenfeld
fd71d209df [svn-r21312] Description: fixed un-initialized errors for strings and changed the INTEGER type getting passed the verify* programs in the test programs. Fixes problems with Sun compilers 12.3 beta with the -m64 flag.
Tested: linew( 12.3 beta)
2011-08-25 12:04:56 -05:00
Allen Byrne
d731512875 [svn-r21298] Add fortran library depends to test fortran library build
Tested: local linux
2011-08-23 09:26:03 -05:00
Scot Breitenfeld
a9c065c5ce [svn-r21248] Mereged the F2003 branch into the trunk.
Items merged: fortran directory, 
              src/libhdf5.settings.in 
              configure.in configure 
              MANIFEST

Tested: (all platforms used by daily tests, both with --enable-fortran and --enable-fortran2003)
2011-08-18 09:32:47 -05:00
Mike McGreevy
98362b664c [svn-r20504] Purpose:
General shared library improvements for CYGWIN / AIX

Description:

    Shared libraries are disabled on both CYGWIN and AIX due
    to inability to build them correctly. Part of the problem
    in both of these situations is the lack of the libtool
    flag -no-undefined, which tells libtool that all needed
    symbols are defined at link time (a requirement on these
    systems) and that it's okay to build shared libraries.

    Another problem are lack of dependencies between wrapper
    libraries and core C HDF5 library.

    This patch addresses both of these by fixing configure to
    add in -no-undefined flag for libtool during linking and
    adds automake dependencies in the Makefile.am files.

    After testing, both CYGWIN and AIX now generate shared
    libraries, but there are still some test failures in each.
    (cache_api, dt_arith, and testerror.sh on CYGWIN, and
    fortran tests on AIX).

    Even though the shared libraries are not quite perfect,
    this is a general improvement to what we had before, so
    I'm applying the patch anyways. Note that default behavior
    of shared libraries on these systems being disabled has
    NOT been changed and requires the use of the
    --enable-unsupported to attempt to build them.

    We will need to address the test failures in each
    architecture prior to formally supporting shared
    libraries on each.

Tested:

    h5committested & CYGWIN tested (on bangan)
    (AIX tested by Albert on bp-login2)
2011-04-14 16:21:59 -05:00
Mike McGreevy
a45c7424b2 [svn-r20502] Purpose:
Add "silent make" mode configure option.

Description:

    Automake 1.11 has a new option available that allows for a
    silent make mode. This functionality needs to be explicitly
    enabled in configure.in via the use of the automake macro
    AM_SILENT_RULES, which is what this commit is adding.

    This introduces a new configure option: 

        --{en|dis}able-silent-rules

    This option is on by default, and simplies compile and link
    line outputs when building the library. Disabling this option
    will print full "verbose" output (i.e., full compile and
    linking lines for each target).

Tested:

    This was tested on jam & h5committested
2011-04-14 14:45:57 -05:00
Raymond Lu
6fc1d05359 [svn-r20487] Bug 1386 - allow dimension size to be zero even though it isn't unlimited. This is a follow-up checkin for
r20440 and r20469:
  1. The dataspace code has another bug - when the maximal dimension isn't passed in for H5Sset_extent_simple, it
     is supposed to be same as the dimension.  The current library sets NULL to it.  I corrected it and added a
     test case to it.
  2. I corrected the tests of Fortran and C++ for this problem.

Tested on heiwa, jam, and amani.
2011-04-12 15:25:27 -05:00
Mike McGreevy
e006157deb [svn-r20475] Purpose:
- Revise shared Fortran library disabling scenarios in configure
    - Improve configure output summary

Description:

    Shared Fortran libraries are not supported on Mac, but were being
    disabled by configure in a way that also forced the C libraries
    to be static-only. This has been fixed, so now only shared Fortran
    is disabled while shared C can remain.

    This prompted two additional changes:

        1. While working on the check that addresses whether or not
           shared Fortran libraries are allowed, removed old and no
           longer needed check(s) that disable shared Fortran
           libraries with HP, Intel 8, PGI, and Absoft compilers.
           (Essentially, Mac is the only situation in which Fortran
           shared are disabled by configure.)

        2. Having two different states of libraries (i.e. shared C
           library with static-only Fortran library) was not apparent
           in the configure summary, which labeled all libraries as
           either shared and/or static. I've added lines to both the
           C++ and Fortran output sections to list shared/static-ness
           of these libraries specifically.

    Additionally, I've made sure that the new --enable-unsupported
    configure option correctly overrides configure if it tries to
    disable a shared library.

Tested:

    jam, fred, & h5committest
2011-04-11 16:00:38 -05:00
Raymond Lu
3e8dc8cccc [svn-r20315] brought revisions 19868:20300 from the 1.8.6_vms branch to the trunk for VMS work 2011-03-24 13:33:45 -05:00
Allen Byrne
1a12719753 [svn-r20201] Order fflush tests - fflush2 DEPENDS on fflush1 2011-03-08 14:50:51 -05:00
Allen Byrne
05dfc85de8 [svn-r20153] Move ext lib handling for ext project building to a common macro. Update HDF5 project to use HDFMacros.cmake file. Add test properties for test ordering.
Tested: local linux, windows
2011-02-24 14:43:07 -05:00
Allen Byrne
5d320f5c89 [svn-r20141] Bring 1.8 r20139 cmake and windows changes to trunk 2011-02-22 09:55:04 -05:00
Elena Pourmal
ba13827093 [svn-r20033] Porblem: A typo caused compilation failures with gfortran 4.6 on fred.
Fixed.

Platforms tested: fred and jam (minor change)
2011-02-02 20:24:52 -05:00
Allen Byrne
451d98b6ac [svn-r19914] Correct format of empty parameter
bring r19913 from 1.8
2011-01-05 13:29:22 -05:00
Allen Byrne
96b2abb9bd [svn-r19910] Change how LINK_FLAGS for fortran are appended on Windows - correct for just shared libs 2011-01-05 10:03:50 -05:00
Allen Byrne
02888be7f2 [svn-r19909] Change how LINK_FLAGS for fortran are appended on Windows
bring r19908 from 1.8 branch
2011-01-05 09:46:08 -05:00
Allen Byrne
9449cfa361 [svn-r19907] Windows: Correct how fortran links in CRT library. Also correct macro use for checking libtype.
bring r19906 from 1.8 branch
2011-01-04 13:40:26 -05:00
Larry Knox
72634b34e4 [svn-r19839] Updated to libtool v 2.4, autoconf 2.68 and m4-1.4.15.
Tested with h5committest on amani, heiwa, and jam.
2010-11-23 17:56:59 -05:00
Allen Byrne
342ce6b589 [svn-r19509] Improve CMake support for CYGWIN.
Correct script comment in testh5diff.sh

Tested: Windows Cygwin
2010-10-04 16:36:27 -05:00
Larry Knox
155b00d8ff [svn-r19506] Bring changes from revisions 19408, 19421, and 19442 from branches/hdf5_1_8 to trunk. These revisions reorganize the compile scripts using h5cc.in, h5fc.in, and h5c++.in, add checks for installed examples to the scripts that run them after installation, and add DESTDIR for install as needed for RPMs.
Tested on amani, heiwa and jam by h5committest and with CYGWIN.
2010-10-04 12:15:30 -05:00
Larry Knox
47c792faa0 [svn-r19366] Updated autoconf to version 2.6.7, libtool to version 2.2.10, and m4 to version 1.4.14. Also added m4 directory for m4 macros according to autoconf suggestion.
Tested with h5committest on amani, jam, and heiwa, and on linew.
2010-09-10 10:45:07 -05:00
Allen Byrne
bed1276413 [svn-r19361] Move Windows specific compile and link flags to macros 2010-09-09 11:30:23 -05:00
Allen Byrne
e65aa8c365 [svn-r19325] Added parallel build commands.
Corrected use/name of source folder aliases.
Duplicated FindMPI.cmake so that non-c++ compiler is found first (recommemded commands did not work).

Tested: local linux with mpich
2010-08-31 15:15:13 -05:00
Larry Knox
10a8b060ca [svn-r19059] Brought changes from hdf5_1_8 to add version information for fortran and c++ compilers in libhdf5.settings file and configure output (r18836), to install examples as part of make install (r18680), and to provide scripts to compile and run the examples after they are installed (r18817).
Tested with new/h5committest on amani, heiwa, and jam.
2010-07-08 21:52:14 -05:00
Allen Byrne
2f13382883 [svn-r19037] Added executable Linker Flag for MSVC static builds: /NODEFAULTLIB:MSVCRT
Added VERSION vars for inclusion into auto snapshot version update script

Tested windows
2010-06-29 15:09:03 -05:00
Allen Byrne
ae06433ab0 [svn-r18793] Add files to support building library with CMake
Tested: Local linux
2010-05-13 11:01:50 -05:00
Mike McGreevy
f0ecd71307 [svn-r18709] Purpose:
Improve configure's large-file support control.

Description:

    Modified configure to now attempt to add defines necessary for
    supporting largefiles on all systems, instead of solely on linux. This 
    is in response to user requests to enable largefile support on Solaris 
    by default, as well as to give extra control on AIX (instead of just 
    jamming the necessary flag into the config files).

    The old --enable-linux-lfs flag has been removed in favor of the 
    --enable-largefile flag (enabled by default), which can be used on all
    platforms.

    On systems where large files cannot be supported in this manner,
    configure will report as such.

Tested:

    h5committest
    AIX (NCSA's blue_print machine)
    duty, liberty, and linew.
2010-05-05 12:34:26 -05:00
Mike McGreevy
0cf2a97cfb [svn-r18579] Purpose:
Autotool Upgrade / Libtool Bug Fix

Description:

    Updated autotools referenced in bin/reconfigure as follows:

    Autoconf 2.64 --> Autoconf 2.65
    Automake 1.11 --> Automake 1.11.1
    Libtool 2.2.6a --> Libtool 2.2.6b-mcg

    The referenced libtool version is a custom version of 2.2.6b. It 
    has been tweaked to fix a bug in libtool that occurs
    when using PGI 10.0 compilers. A check incorrectly categorizes
    the C++ compiler as version 1.0 instead of 10.0, and the link
    line is subsequently set up incorrectly and fails to compile.

    A patch has been made available and will be included in the next
    release of libtool, but in the meantime I've applied the patch to a custom
    installation as indicated above. This bin/reconfigure now references
    the custom installation, and the resulting configure script will correctly
    categorize the PGI 10.0 C++ compiler.

    Ran bin/reconfigure to regenerate configure and makefiles.

Tested:

    jam and amani with PGI 10.0 compilers.
    h5committest
2010-04-15 16:17:22 -05:00
Quincey Koziol
fd70b2afa8 [svn-r18197] Description:
Trim trailing whitespace from source code files with this command:

find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.f90" \) -print |xargs -n 1 sed -i "" 's/[[:blank:]]*$//'

Tested on:
    None - eyeballed only
2010-01-29 23:29:13 -05:00
Quincey Koziol
fcc03a356b [svn-r18157] Description:
Bring back changes from Coverity session on 1/15/10:

r18111:
Fix Coverity issue #130: make certain that the cache gets freed on error.

r18112:
Fix Coverity issue #43 by making cache testing calls protected by 'pass'
variable.

r18113:
Fix Coverity issue #129 by releasing the cache on error.

r18115:
Coverity #45 fix: patched an error check in H5Screate_simple to prevent future dereferencing of a NULL point.
Added a verification in test/th5s.c.

r18116:
Fix Coverity issue #43 by releasing cache on error.

r18117:
Coverity #362,363 by adding HGOTO_DONE, freeing allocations and associated changes. REsolving coverity results #364-368, 369, 370-372, 377, 379, and 380.

r18118:
Fix Coverity issue #42: assert that cache & test specification pointer are
valid.

r18122:
Coverity #362,363 by adding HGOTO_DONE and freeing allocations. This also takes care of #357,358.

r18123:
Coverity #359-361, 373-376: Added HGOTO_DONE(FAIL) statement after checking allocation for NULL. Verified allocation is freed in done block.

r18128:
Fixed coverity issue #10 -- removed dead code.

Tested on:
    Mac OS X/32 10.6.2 (amazon)
2010-01-22 23:39:40 -05:00
Albert Cheng
22da4232a4 [svn-r18107] bug 1673:
The mixed use of RUNTEST (original) and RUNTESTS (new) caused
confusion. E.g., the timings in test/ was still using the old
$RUNTEST.  It made more sense to use $RUNTEST which is used
by the dejagnu feature of automake.  So, I changed all
$RUNTEST or $RUNTESTS to $RUNEXEC.

config/commence.am & config/conclude.am are the two files
that got changes. Also fixed an error in test/Makefile.am.
The rest are changed by bin/reconfigure.

Tested: h5committested.
2010-01-12 18:58:30 -05:00
Scot Breitenfeld
e166bc571d [svn-r18098] Description:
Changed the link type definitions to match the changes made in the source. 
-                                     !  H5L_LINK_SOFT_F      - Soft link
-                                     !  H5L_LINK_EXTERNAL_F  - External link
-                                     !  H5L_LINK_ERROR _F    - Error
+                                     !  H5L_TYPE_HARD_F      - Hard link
+                                     !  H5L_TYPE_SOFT_F      - Soft link
+                                     !  H5L_TYPE_EXTERNAL_F  - External link
+                                     !  H5L_TYPE_ERROR _F    - Error

Tested: jam (intel)
2010-01-08 16:25:29 -05:00
Mike McGreevy
7ec079a515 [svn-r17616] Purpose:
CFLAGS overhaul

Description:

    Modified the way configure handles CFLAGS.

    (note: all changes also apply to FCFLAGS, CXXFLAGS, CPPFLAGS, and LDFLAGS).

    1. The configure process will now always preserve a user's CFLAGS
    environment variable setup. Any additional flags necessary for compilation
    added at configure time will be passed into the Makefiles as AM_CFLAGS,
    which is an automake construct to be used in addition to CFLAGS.

    This will allow a user to have the final say, as CFLAGS will always appear
    later in the compile line than AM_CFLAGS. Additionally, setting CFLAGS
    during make will no longer completely erase all flags set by configure,
    since they're maintained in AM_CFLAGS.

    2. Additionally, where possible, flags previously being assigned directly
    into CFLAGS (and thus propagating into h5cc) have now been redirected into
    H5_CFLAGS, so they're used ONLY for compiling hdf5, and not embedded into
    the h5cc wrapper script as well.

    *Note that H5_CFLAGS ultimately is assigned into AM_CFLAGS for use in the
    Makefiles. Complete description of changes and build process will be
    included in a Configure Document that Elena and I are working on.

    3. Removed unsupported config files. This includes:

       config/dec-osf*
       config/hpux11.00
       config/irix5.x
       config/powerpc-ibm-aix4.x
       config/rs6000-ibm-aix5.x
       config/unicos*

     4. Modified configure summary to display additional values. Specifically,
     appropriate AM_* variables are being shown, as well as H5_FCFLAGS and
     H5_CXXFLAGS, which were for some reason not already present.

Tested:

    - H5committest
    - Tested on all THG / NCSA machines, using several combinations of the more
      prominent configure options (c++, fortran, szip, threadsafe, parallel,
      et cetera). (Thanks to Quincey for rysnc testing setup!)
    - With regards to new automated testing, anything *necessary* for
      compilation will be caught by the daily tests as it stands now. (i.e.,
      if LDFLAGS is not properly set when szip is used, linking will fail).
      Additionally, with regards to which flags get into h5cc, if any
      *necessary* flags have been improperly removed, then daily tests should
      fail during make installcheck. Additional machine-specific desired
      behaviors and/or checks may have to be set up separately within the
      daily tests, so this is something to work on.
2009-10-08 10:17:30 -05:00
Scot Breitenfeld
84527bc7ac [svn-r17482]
Bug 1652 -  h5lget_info_by_idx_f missing/broken functionalit
  * added returned val_sel, link_type and address that were missing

In the process, fixed the integer type in H5lget_info_f for address and val_sel

  * wrote test for val_sel, address, and link_type returned values

  * to check address values added h5Oopen_by_addr_f function and test program.

Tested: smirom (pgf90/pgcc, ifort/icc)
        linew
        jam (gcc/g95)
2009-09-15 15:19:02 -05:00
Mike McGreevy
4598a59f86 [svn-r17345] Purpose:
Updating autotools

Description:

    Installed new autotools and used them to reconfigure HDF5.

    - Automake upgraded to 1.11
    - Autoconf upgraded to 2.64
    - bin/reconfigure script edited to use new versions (on jam), and
      run to generate new configure script and Makefile.in's.
    - configure.in script edited to add "_cv_" to all AC_CACHE_VAL strings
      (in order to comply with new autoconf standard).
    
Tested:

    Tested on machines jam, smirom, liberty, linew.
    Tested w/ features c++, fortran, parallel.
    Tested w/ compilers gcc, pgcc, icc.

    Further testing via Daily Tests should catch any other outliers. Upon
    passing DT's, I'll propogate the new tools into 1.8, hdf4, et cetera.
2009-08-12 13:55:25 -05:00
Scot Breitenfeld
2bb5d04019 [svn-r17222] Description:
Added filename argument to file_space routine to avoid conflicts of the files when running fortranlib_test_1_8.f90 and fortranlib_test.f90 at the same time (i.e. when running the tests in parallel).

tested: smirom (ifort, pgf90, g95, gfortran), linew
2009-07-22 10:25:03 -05:00
Scot Breitenfeld
4336eea98e [svn-r16797] Changed
H5D_CHUNK_CACHE_NSLOTS_DEFAULT_F
H5D_CHUNK_CACHE_NBYTES_DEFAULT_F
H5D_CHUNK_CACHE_W0_DEFAULT_F

to

H5D_CHUNK_CACHE_NSLOTS_DFLT_F
H5D_CHUNK_CACHE_NBYTES_DFLT_F
H5D_CHUNK_CACHE_W0_DFLT_F

to get under the 31 limit for variable names
2009-04-20 11:00:09 -05:00
Mike McGreevy
bc36a358d1 [svn-r16792] Description:
- Updated bin/reconfigure to use latest version of automake (1.10.2). 
      Re-generated Makefile.in's by running bin/reconfigure.

    - Added libtool version numbers to c++, fortran, hl, hl c++, and hl fortran
      libraries.

Tested:

    jam, liberty, smirom
2009-04-20 01:00:11 -05:00
Scot Breitenfeld
b0cecde98b [svn-r16780] Description:
Added tests for the new APIs:

H5D_H5DGET_ACCESS_PLIST_F
H5I_H5IIS_VALID_F
H5P_H5PSET_CHUNK_CACHE_F
H5P_H5PGET_CHUNK_CACHE_F

Platforms tested: 

smirom: pgf90, ifort
linew
liberty: gcc43, gfortran43, gcc44, gfortran44
2009-04-17 12:13:01 -05:00
Mike McGreevy
893b8bffee [svn-r16561] Purpose:
Bug Fix

Description:

    Fixing BZ #1381. The --includedir=DIR configure option, which is used
    to specify the installation location of C header files, did not work
    correctly as the path was hard-coded in config/commence.am. I'm presuming
    this is because an older version of automake didn't know where to put
    c header files. In any case, removing this line now defaults the includedir
    to the same directory that it is currently hard-coded to, and also fixes
    the configure flag to allow customization of this value.

Tested:

    jam, liberty
2009-03-10 16:01:50 -05:00
Pedro Vicente Nunes
f8c5384aa5 [svn-r16518] have 2 expected outputs for 2 h5ls runs depending if run on a big or little endian machine. Configure.in was modified to export a variable carrying endianess information to testh5ls.sh. This script then compares the current run with 2 expected outputs, one for a big-endian machine (linew was used to generate the output), other for little endian (jam was used to generate the output)
the way h5ls prints types, it starts searching for NATIVE types first. One solution would be h5ls not to detect these native types, using for example the same print datatype function that h5dump does, that would make the output look the same on all platforms  ("32-bit little-endian integer" would be printed instead).  Drawback, this "native" information would not be available. Other solution is to have not one but 2 expected outputs and make the shell script detect the endianess and compare with one output or other
tested: h5committest
2009-02-26 15:21:50 -05:00
Scot Breitenfeld
9a38a8965c [svn-r16235] Description:
Cosmetic changes, Also tested -r16231 on:

Jam (intel 10.1)
Smirom (intel 10.1)
2008-12-30 12:30:17 -05:00
Scot Breitenfeld
0e779a215c [svn-r16231] Description:
Added chunk property to the data set because changes in the cC function H5Dset_extent now require/check that the data set is chunked.
2008-12-30 11:27:29 -05:00
Mike McGreevy
a664274624 [svn-r15942] Purpose: Bug Fixes and Libtool Upgrade
Description:
     - Remove need to set LD_LIBRARY_PATH when using shared szip library.

     - Libtool 2.2.6a is now used to generate libraries.

     - 'make check install' dependency bug is fixed, and should no longer
       break the build. 
  
     - removed hard coding of shell in config/commence.am, as this causes
       problems on Solaris with the new version of libtool.
   
     - RELEASE.txt with appropriate changes.

Tested:
     - kagiso, smirom, linew (merged from 1.8, pretty quick tests)
2008-10-24 12:19:34 -05:00
Scot Breitenfeld
8e9bb8af7c [svn-r15749] Description:
Removed blank lines
2008-10-01 14:57:52 -05:00
Scot Breitenfeld
393100b2b6 [svn-r15737] Description:
Changed the tests so that the *.h5 test files are removed depending on the HDF5_NOCLEANUP environment variable.
bug 696
2008-09-30 16:05:39 -05:00
Raymond Lu
6f5d0e22f3 [svn-r15704] I changed the return values of H5Fget_obj_ids and H5Fget_obj_count to ssize_t and modified
C++ and Fortran API functions.  This is for bug #1245. 

Tested on smirom, linew, and kagiso.
2008-09-26 13:55:32 -05:00
Scot Breitenfeld
41e1d56e32 [svn-r15696] Description:
Fix for test of H5Tget_native_type_f
2008-09-25 09:57:47 -05:00
Scot Breitenfeld
f85aafd50d [svn-r15693] Description:
Added test for h5tget_native_type_f
2008-09-24 15:00:54 -05:00
Scot Breitenfeld
457514fab7 [svn-r15692] Description:
Added the optional 'mounted' variable to H5Gget_info_by_idx_f/H5Gget_info_f/H5Gget_info_by_name_f to see that it passes the correct values.
2008-09-24 12:51:57 -05:00
Scot Breitenfeld
acf7dd2c74 [svn-r15689] Description:
Added additional tests for h5sget_select_bounds_f
2008-09-24 11:23:54 -05:00
Scot Breitenfeld
844a56e79b [svn-r15688] Description:
Added additional tests for h5sget_select_hyper_blocklist_f
and 5sget_select_elem_pointlist_f
2008-09-23 16:52:19 -05:00
Scot Breitenfeld
60534aa268 [svn-r15633] Description:
Added test routines for h5t_get/set_fields_f.
2008-09-16 12:31:33 -05:00
Scot Breitenfeld
121acf4bb4 [svn-r15423] Description:
Fix the error of passing an array to a scalar.
2008-07-29 09:15:47 -05:00
Scot Breitenfeld
82416cb36d [svn-r15420] Description:
Initialized a string with a space instead of a blank

i.e. var = '' is now var = ' '

This fixes a problem with AIX for bug 1252
2008-07-28 14:44:25 -05:00
Scot Breitenfeld
b829da80a6 [svn-r15417] Description:
Changed the INTENT for total_error to be consistantly
INTENT(INOUT)

as noted in bug 1251
2008-07-28 14:19:11 -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
Scot Breitenfeld
c06ae0d558 [svn-r15075] Description: removed temporary files created by test programs. 2008-05-27 11:55:50 -05:00
Elena Pourmal
f15c901b8f [svn-r15074] Maintenance: This check-in should fix daily tests failures:
Uninstall target had non-existant file to remove; error_handler module triggered
             a race condition for parallel make with Intel and PGI compilers, therefore we
             removed the module and created a subroutine instead.

Platforms tested: kagiso with GNU, Intel and PGI compilers.
2008-05-27 11:06:23 -05:00
Scot Breitenfeld
887c786693 [svn-r15070] Description:
fixed typo (minor fix)
2008-05-23 12:15:52 -05:00
Scot Breitenfeld
ac687db020 [svn-r15069] Purpose:
Added code to remove module files when make clean

Description:
The module files were not being removed when make clean
and caused compiling errors. fixed.
2008-05-23 12:08:30 -05:00
Elena Pourmal
ef3b2df975 [svn-r15067] Maintenance: Daily tests failed on several platforms due to the broken dependencies when
srcdir and parallel make are used; fixed (I hope)
Platforms tested: kagiso with srcdir and parallel make; pgcc and pgf90 -i8 compilers
2008-05-22 13:23:48 -05:00
Scot Breitenfeld
e8e47591f7 [svn-r15065] Description:
Broke-up longer lines over multiple lines

Removed unused variables.
2008-05-21 15:08:24 -05:00
Scot Breitenfeld
fcf8a9a2cb [svn-r15054] Purpose:
Made reporting of the test status  global by handling the output
via a module. Cleaned-up output to the terminal.


Description:
Put writing the test status as a call to a subroutine
instead of on a per account basis. 
Added the dependency of compiling in the correct order
in the Makefiles for use of the Module.
2008-05-21 10:02:24 -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
Scot Breitenfeld
5c122eeb8b [svn-r15025] Purpose:
Cleaned up unused code (i.e. commented out) and removed extraneous output to standard out.

Tested:
N/A - No critical executable source lines were modified, only comments and write statements.
2008-05-16 15:46:10 -05:00
Mike McGreevy
389cc309c5 [svn-r15007] Purpose: configure cleanup
Description: cleaning up configure related to removal of --disable-hsizet
             flag, which we no longer support.

Tested: kagiso
2008-05-15 11:42:03 -05:00
Albert Cheng
7b7f10a444 [svn-r15003] Purpose:
Improvement.

Description:
src/libhdf5.settings was the initial configure summary and is installed.
Then configure is changed to dump a summary of the configure settings to
the output and also append it to src/libhdf5.settings.  That created
two different output formats and duplicated information.  This is the
initial attempt to clean up this confusion and unify the output format.

It is decided to use the src/libhdf5.settings template as the unified means.
This requires more macros symbols be defined. The following symbols are
all related to generating the src/libhdf5.settings file.

AC_SUBST(EXTERNAL_FILTERS)
AC_SUBST(MPE) MPE=no
AC_SUBST(STATIC_EXEC) STATIC_EXEC=no
AC_SUBST(HDF_FORTRAN) HDF_FORTRAN=no
AC_SUBST(FC) HDF_FORTRAN=no
AC_SUBST(HDF_CXX) HDF_CXX=no
AC_SUBST(CXX) HDF_CXX=no
AC_SUBST(HDF5_HL) HDF5_HL=yes
AC_SUBST(GPFS) GPFS=no
AC_SUBST(LINUX_LFS) LINUX_LFS=no
AC_SUBST(INSTRUMENT) INSTRUMENT=no
AC_SUBST(CODESTACK) CODESTACK=no
AC_SUBST(HAVE_DMALLOC) HAVE_DMALLOC=no
AC_SUBST(DIRECT_VFD) DIRECT_VFD=no
AC_SUBST(THREADSAFE) THREADSAFE=no
AC_SUBST(STATIC_SHARED)
AC_SUBST(enable_shared)
AC_SUBST(enable_static)
AC_SUBST(UNAME_INFO) UNAME_INFO=`uname -a`

The src/libhdf5.settings.in has CONDITIONAL's added to it too.  The
untrue conditions turned into a "#" and these lines are cleaned by the 
post processing script.

Platform tested:
h5committest on kagiso, smirom and linew.
2008-05-15 00:12:00 -05:00
Scot Breitenfeld
45a23603ed [svn-r14997] Purpose:
Cleaned up get_name_by_idx_f test that uses the newest API.
2008-05-14 14:13:32 -05:00
Scot Breitenfeld
33483eafdc [svn-r14996] Purpose:
Updated the call using the new interface for the get_name_by_idx_f routine
2008-05-14 13:58:44 -05:00
Elena Pourmal
ec4ae5213b [svn-r14991] Maintenance: Fixed some bugs discovered by daily testing and by manual testing using -i8 flag
Platforms tested: linew (as for daily tests), icc and pgf90 with -i8 on kagiso; g95 has the problem
                  with -i8 (will be looking into the problem)
2008-05-13 13:23:35 -05:00
Scot Breitenfeld
523bfc1c76 [svn-r14987] Purpose:
Fixed the validation problem with H5Aget_info_f

Desciption:

Recast the interger type passed into 'validate' subroutine.
2008-05-13 11:10:19 -05:00
Scot Breitenfeld
cc5f029ada [svn-r14979] Purpose:
Added additional verification test for H5Aget_info_f
2008-05-12 15:24:53 -05:00
Scott Wegner
2fd80deb4d [svn-r14975] Purpose: Add Windows fixes for new Fortran code.
Description:
There were a number of small tweaks we needed to make to add the new fortran_1_8 code on Windows.  We create new project files, add new source to them, add the test to our test suite, and fix a few typos in the Windows-specific source code.

Tested:
VS2005 on WinXP
2008-05-12 13:14:12 -05:00
Scot Breitenfeld
90205aa02c [svn-r14972] Purpose:
Corrected the way the total number of errors are summed up.
2008-05-12 12:48:23 -05:00
Scot Breitenfeld
6614c194d5 [svn-r14971] Purpose:
Added a test for H5Tget_create_plist_f
2008-05-12 12:46:12 -05:00
Scot Breitenfeld
2e1c8e196d [svn-r14963] Removed dependency on unused routines for the fortranlib_test_1_8
test program.
2008-05-09 15:51:51 -05:00
Scot Breitenfeld
9c6ec1afa0 [svn-r14962] Removed dependency on unused routines for the fortranlib_test_1_8
test program.
2008-05-09 15:47:46 -05:00
Scot Breitenfeld
b7efe1e536 [svn-r14955] Purpose:
* test passing integer constant to subroutine

Description:

  ! -- CHECK PASSING AN INTEGER CONSTANT IN DIFFERENT FORMS --

  ! 1) call by passing an integer with the _hsize_t declaration 
  
  ! 2) call by passing an integer with the INT(,hsize_t) declaration
  
  ! 3) call by passing a variable with the attribute hsize_t
2008-05-08 12:04:11 -05:00
Scot Breitenfeld
7771660c28 [svn-r14954] re-instated the test_attr_dense_open routine for debugging 2008-05-08 10:59:38 -05:00
Elena Pourmal
0a896c59a8 [svn-r14941] Maintenance: Cleaned up more test code, fixed more bugs in the test and source codes.
This check-in should address Fortran failures on liberty and smirom.

Platforms tested: kagiso with Intel, smirom with g95 -fPIC, liberty with gfortran42
2008-05-06 13:01:59 -05:00
Mike McGreevy
5bd2405c11 [svn-r14933] Purpose: Updating HDF5 to use automake 1.10.1 and libtool 2.2.2
Description: Applying update to autotools that was applied to 1.8 a couple
             of weeks ago to the trunk.

             Updated bin/reconfigure script to reflect the new versions of 
             libtool and automake in the /home1/packages/ directory.

             Rearranged configure.in script. When using libtool 2.2.2, the
             libtool script doesn't generate until later in the configuration
             process, so I had to move a test that parsed through the libtool
             script to a point after where it was actually being generated.

             Ran libtoolize on the project, and ran bin/reconfigure to
             regenerate configure and Makefile.in's throughout.

Tested:      kagiso, smirom, linew (h5committest)
2008-05-05 13:35:55 -05:00
Elena Pourmal
e182fc3bb8 [svn-r14930] Maintenance: Fixed more bugs/typos and enabled tests that were failing previously on linew.
Currently only one test (dense attributes) is failing. It looks like C library problem and we
             have a similar bug report in Bugzilla: when dense storage is used, attributes are not written
             to the file; somehow similar C test doesn't expose the problem while Fortran test does.

Platforms tested: linew, kagiso with g95 and PGI
2008-05-04 20:00:37 -05:00
Elena Pourmal
f6069ad57e [svn-r14928] Maintenance: Cleaned up the code to make it compile on smirom with the g95 compiler
Platforms tested: kagiso with PGI compilers, linew, smirom with GCC and g95 compilers;
                  some tests and function calls are commented out with !EP string; we will be
                  working on it.
2008-05-04 11:48:07 -05:00
Elena Pourmal
31b3c34908 [svn-r14927] Maintenance: Enabled all tests that pass on linew. Disabled tests are commented with !!EP for now. 2008-05-04 00:24:04 -05:00
Elena Pourmal
c08112a0c0 [svn-r14926] Maintenance: More cleanup in the test output and enabled another test for linew before daily tests start. 2008-05-03 23:54:06 -05:00
Elena Pourmal
f162bead9a [svn-r14925] Maintenance: Cleaned up reporting of the tests nd enable some tests that pass on linew. 2008-05-03 23:44:26 -05:00
Elena Pourmal
102bd35402 [svn-r14924] Commented out new tests since they failcompletely on linew while passing on smirom and kagiso. 2008-05-03 23:28:05 -05:00
Elena Pourmal
dcad778b42 [svn-r14923] Maintenance: This check-in merges changes from the fortran_1_8 branch back into the trunk (up to revision 14921)
Platforms tested: kagiso with g95 and Intel compilers; more testing will be done after checking in a fresh
                  copy from the trunk. New code itself was tested with all Fortran compilers available at THG
2008-05-03 18:39:37 -05:00
Scot Breitenfeld
aec106e324 [svn-r14903] Undoing change committed in r14902. 2008-04-30 14:51:13 -05:00