Commit Graph

500 Commits

Author SHA1 Message Date
Elena Pourmal
730a5a9b6d [svn-r11432]
Purpose: Typo fix

Description: Declaration of long double variable was after executable
             statement. Many compilers choked ;-(

Solution: Declare variable before the first executable statement

Platforms tested: shanti (compilation only), copper (tests passed)

Misc. update:
2005-09-18 12:18:02 -05:00
Albert Cheng
c0e83899c3 [svn-r11431] Purpose:
New feature.

Description:
Added the time command to the make check target to report time usage
of the execute of each test and test scripts.  This gives us some idea
how long each test takes and some vague idea it is compute bound or
not.

powerpc-ibm-aix5.x:
Change $RUNPARALLEL default setting to allow it being invoked by the
time command.

Platforms tested:
h5committested.
2005-09-17 22:04:28 -05:00
Elena Pourmal
f8e7064269 [svn-r11427] Purpose: SX-6 port
Description:

Fortran multi_file test failed on SX-6. It turned out that compiler
could not handle (long long HADDR_MAX) * ( float var). The result of this
operation was 0.

Solution:

Introduced long double variable to store the value of HADDR_MAX
and use the new variable in * operation. (Suggested by John)

Platforms tested: SX-6, mir with PGI compilers; a very minor change

Misc. update:
2005-09-17 18:43:27 -05:00
Elena Pourmal
5f326d50fa [svn-r11423] Purpose: Small bug fix
Description: wrong parameter was passed to the Fortran call.

Solution: fixed

Platforms tested: SX-6

Misc. update:
2005-09-16 21:51:09 -05:00
Elena Pourmal
b6c10b6bbf [svn-r11422] Purpose: Bug fix/ SX6 port
Description: Fortran array was passed directly to a C function. Since
             size of fortran INTEGER is bigger than size
             of C int on SX-6 with -ew switch, the passed data was wrong.

Solution: Copy Fortran array to the appropriate C array.

Platforms tested: SX-6 ; trivial change

Misc. update:
2005-09-16 21:49:21 -05:00
James Laird
ae2a313b5b [svn-r11421] Purpose:
Feature

Description:
Added H5_CFLAGS, etc. to 1.7 branch.
Now compilation flags can be put in H5_*FLAGS and they'll be used when
building hdf5 but not in h5cc.


Platforms tested:
mir, sleipnir, modi4

Misc. update:
2005-09-16 16:26:17 -05:00
James Laird
b656c90c8a [svn-r11420] Purpose:
Bug fix

Description:
Disabled C++ shared libraries for Sun Workshop compiler.

Solution:
This bug only seems to happen when using the -xarch=v9 flag to compile in
64-bit mode, but disabling shared libraries entirely for this compiler is
an easier fix (I don't know how to detect 64 bit mode from the command line).
The framework for disabling shared libraries for other C++ compilers is
in place.

Platforms tested:
sol, mir, sleipnir, modi4
2005-09-16 16:16:11 -05:00
James Laird
cc8f7d98bf [svn-r11418] Purpose:
Bug fix/feature

Description:
Disabled shared libraries for a number of Fortran compilers that don't
support them.
This allows other compilers to support shared Fortran libraries.

Solution:
Added a conditional, SHARED_FORTRAN_CONDITIONAL, which is true if
Fortran supports shared libraries.  It is set in configure.in.

Platforms tested:
mir, sleipnir, colonelk, heping
2005-09-15 16:30:06 -05:00
James Laird
33beeb7f55 [svn-r11411] Purpose:
Bug fix

Description:
Building with --disable-static seems to have been broken on several platforms.
Fixed this.
Configure will now disable shared libraries automatically when using pgf90
or when building on Cygwin.

Solution:
To avoid errors when using shared libraries with pgf90 (which I had not
realized were compiler-specific), I had manually set convenience libraries
to use the -static linking flag.  Apparently, this is not necessary, and
caused these libraries to be created as empty archives when --disable-static
was used.
Also, some libraries were including other libraries, which was not
necessary.
I also fixed code in configure.in to correctly detect whether shared
or static libraries are enabled, and moved code that disables shared libraries
to before libtool is created (rather than editing libtool after the fact).
Despite repeated warnings that only one shared library can be linked at a
time, I have yet to have shared libraries break the linking of tests on
any system.  We'll see if the Daily Tests turn up anything.

Platforms tested:
mir (fortran, C++), sleipnir (C++), modi4 (fortran, C++, parallel),
sol (fortran, C++), cygwin
2005-09-13 17:30:33 -05:00
Elena Pourmal
48ae256b07 [svn-r11401] Purpose: Maintenance
Description: brought back changes from SX-6

Solution:

Platforms tested: SX-6, heping and mir with new g95

Misc. update:
2005-09-12 22:16:23 -05:00
Quincey Koziol
f9fee72df9 [svn-r11392] Purpose:
Bug fix

Description:
    Recent group code changes tweaked the size of the free space in the file
for this test.  Update to the latest correct value.

Platforms tested:
    h5committested
2005-09-12 12:33:55 -05:00
Elena Pourmal
4a998f8a86 [svn-r11373] Purpose: Maintenance/improvement
Description: Fixeda typo in an error message

Solution:

Platforms tested: heping with g95 (-r8, -d8)
                  mir with ifc (-r16, -r8)

Misc. update:
2005-09-08 14:37:05 -05:00
Elena Pourmal
244d72b6f5 [svn-r11372] Purpose: Maintenance/improvement
Description: Added support for "big" REAL and DOUBLE PRECISION
             datatypes (i.e. sizes of Fortran real and double precision
             may be 8 and/or 16 bytes; usually specified by compilers
             flags like -r8, -r16, -d8, etc.)

Solution: Added code to generate all necessary datatypes on a fly.

Platforms tested: heping with g95 (-r8, -d8)
                  mir with ifc (-r16, -r8)
                  Note: multi file test failed when REAL is 128 bit.
                        I will address this later.

Misc. update:
2005-09-08 14:36:24 -05:00
Elena Pourmal
a0c61b514b [svn-r11370] Purpose: Typo fix
Description: Fixed a typo introduced by my previous check in

Solution:

Platforms tested: heping

Misc. update:
2005-09-07 18:19:38 -05:00
Elena Pourmal
64fdc49ab9 [svn-r11369] Purpose: Improvement/maintenance
Description: Added code to generate sizes of Fortran REAL and
             DOUBLE PRECISION types. This will "almost" eliminate
             H5f90i.h file that defines C stubs datatypes.

Solution:

Platforms tested: heping with g95 (-r8, -d8 and default settings)

Misc. update:
2005-09-07 17:24:18 -05:00
Elena Pourmal
181102ff74 [svn-r11359] Purpose: Bug fix/maintenance/new feature
Description: Currently we are trying to match excatly Fortran and C types.
             Unfortunately, some systems (SX-6) provide compiler switches
             (-ew) that make ALL Fortran types to be at least of size 8.
             As a result, Fortran library cannot be compiled.

Solution: Allow INTEGER(HID_T) type to be 8 bytes if necessary. The values
          of this type are originated in the C library and can be safely
          passed back and forth. Please note that we cannot do the same
          for INTEGER(SIZE_T) type. Fortunately there is a switch
          that allows size_t be 8 bytes for both C and Fortran compilers.


Platforms tested: It is a minor change, therefore SX-6 only;
                  daily tests will do the rest :-)

Misc. update:
2005-09-07 11:06:49 -05:00
James Laird
2733f697b6 [svn-r11330] Purpose:
Bug fix

Description:
Errors on sol may have been due to "make clean" being run both
manually and by automake.  Removed the manual run.
Also cleaned c++/examples/ii_files directory created by some compilers
(e.g., on modi4).

Solution:
This does mean that examples directories will not be cleaned by
'make clean'.

Platforms tested:
sol, mir, heping, modi4
2005-08-31 18:12:15 -05:00
Albert Cheng
6d3715e537 [svn-r11323] Purpose:
tidy up.

Description:
MPE option created *.clog file whenever it is executed in MPI.
The cleanup of *.clog files were done in individual Makefile.in.
Often, it is forgotten.

Solution:
Moved the cleaning of *.clog files to CHECK_CLEANFILES in commence.am
so that it is applied whenever check-clean is called.

Platforms tested:
heping pp using MPE.
2005-08-31 15:03:52 -05:00
James Laird
66af6dce17 [svn-r11319] Purpose:
Bug fixes

Description:
This checkin fixes an occasional error on kelgia on sol during distclean.
It also causes test scripts to depend properly on the programs they're
supposed to be testing.

Solution:
The kelgia bug was due to some files being cleaned by automake and manually.
Removed the manual cleaning in src/Makefile.am.
Test script dependencies now need to be specified manually, since the
makefile can't guess what they test from their name.  Currently all test
scripts in a given directory have a single list of dependencies--this was
easy and seems to be sufficient.
These dependencies are listed in the SCRIPT_DEPEND variable in the Makefile.am.

Platforms tested:
heping, mir, modi4, sol

Misc. update:
2005-08-30 18:42:39 -05:00
Albert Cheng
538d37a1bc [svn-r11303] Purpose:
minor tidy up.

Description:
Changed both test programs and test scripts to use the same suffixes
(.chkexe and .chklog).  Changed from .log to .chklog to avoid running
into potential conflicts by other "things" (e.g., config.log).

Tested:
Heping.
2005-08-26 17:24:27 -05:00
Quincey Koziol
6b45f5172c [svn-r11245] Purpose:
Code cleanup

Description:
    Trim trailing whitespace, which is making 'diff'ing the two branches
difficult.

Solution:
    Ran this script in each directory:

foreach f (*.[ch] *.cpp)
    sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f
end


Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-08-13 15:53:35 -05:00
Albert Cheng
fbb2dd8545 [svn-r11213] Purpose:
Bug fix and improvement.


Description:
The test output were not displayed for parallel tests.
The serial tests output were always displayed whether the test was
actually ran this time or not.


Solution:
Moved the display of test output inside the target where the actual
tests are run.


Platforms tested:
Tested in heping using pp and fortran.
2005-08-08 12:30:23 -05:00
Albert Cheng
ea15f348a1 [svn-r11208] Purpose:
Bug fix and code minor cleanup.

Description:
The attempt to redirect stderr together to the log files were
done in the wrong order such that stderr output goes to where
stdout WAS.  Fixed that.

Code minor cleanup--use shell variables to hold the name of the
log file and the test instead of generating them repeatedly.  This
makes easier code reading, less crowded and avoid typos.

Only conclude.in is changed.  The Makefile.in changes are all
derived from automake.

Platforms tested:
h5committested.
2005-08-08 02:32:27 -05:00
Albert Cheng
8e52b3c798 [svn-r11202] Purpose:
bug fix.

Description:
Fortran test, fflush2, depends on a file created by fflush1.
Fixed Makefile to reflect such a dependency.

Platforms tested:
heping.
2005-08-04 15:23:25 -05:00
Albert Cheng
548608ed7f [svn-r11201] Purpose:
bug fix.

Description:
test program used fortran STOP to end the program even when there
was an error.  STOP does not exit with non-zero.  Therefore, make
or other programs could not detect an error has occurred.

Solution:
Wherever it is appropirate, replace STOP with h5_exit_f statments.

Platforms tested:
Tested in heping.
2005-08-04 15:22:11 -05:00
James Laird
e75a185eca [svn-r11185] Purpose:
Makefile feature

Description:
'make check-clean' now cleans *.h5 files created by tests as well as
.log and .chkexe files.

Solution:
check-clean is now a separate target in its own right, which cleans less
than mostlyclean (check-clean < mostlyclean < clean < distclean).

Platforms tested:
mir, heping, modi4 (serial and parallel)
2005-08-02 12:59:03 -05:00
James Laird
9f07929a07 [svn-r11183] Purpose:
Bug fix

Description:
Removed an extraneous @ from the fortran/src makefile.

Platforms tested:
mir (simple fix)
2005-08-02 11:11:35 -05:00
James Laird
c63ef2cba2 [svn-r11179] Purpose:
Feature: check-clean target

Description:
'make check-clean' cleans up output files from tests.

Solution:
Tests create foo.chkexe and foo.log files.  Scripts create foo.chksh and
foo.logsh files.  'make check-clean' will clean these files up so that
the tests can be re-run.
Also suppressed some not-very-useful output of Makefiles when it would
echo commands.

Platforms tested:
mir, sleipnir, modi4

Misc. update:
2005-08-01 17:22:55 -05:00
Quincey Koziol
34bd25f361 [svn-r11144] Purpose:
New port

Description:
    Elena asked me to check in her NEC SX-6 work, so here it is! :-)

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    NEC SX-6 (by Elena)
2005-07-22 20:55:12 -05:00
James Laird
7236935a9d [svn-r11095] Purpose:
Configuration feature

Description:
Serial test output is now stored in log files and printed when all tests
in a directory complete, or when a test fails.  This should make test output
more readable and useful.
Also made changes to clean up ii_files directories that are created by some
C++ compilers/linkers.
Also fixed a few minor Makefile bugs.

Solution:
When serial tests run, their output is saved in *.log or *.logsh.  While
running, tests only print when they begin and when they complete; their
more specific output (from the log file) is printed if the test fails or
when all tests have completed.
Comments welcome.

Platforms tested:
mir, modi4 (parallel and serial), copper, shanti
2005-07-21 14:28:11 -05:00
James Laird
d2e92fd236 [svn-r11083] Purpose:
Bug fixes

Description:
A number of minor changes to Makefiles.  Some files will now be cleaned
properly, some comments are more informative, etc.


Platforms tested:
heping, mir, modi4
2005-07-18 18:30:38 -05:00
Albert Cheng
b802c46622 [svn-r11062] Purpose:
bug fix

Description:
rwdsetexample and attrexample both modify the same file created by
dsetexample. Need to serialize all three of them.

Platforms tested:
Did 50 times of make check in fortran/examples.  It used to fail
at least once.  Now it does not fail.
2005-07-11 00:07:29 -05:00
Quincey Koziol
9b597516c0 [svn-r11042] Purpose:
Bug fix

Description:
    The ".chksh" file for a test script was being created in the "source"
location rather than the build location.  This can cause problems when
multiple builds are running because "slower" machines will see the ".cshsh"
file from faster machines and will not run the test script as they should.

Solution:
    Use 'basename' command to strip off the path of the script and create
the ".chksh" file in the build location.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    h5committest
2005-07-07 15:46:49 -05:00
Albert Cheng
f68a2e6db7 [svn-r11034] Purpose:
bug fix.

Description:
-nt is not a universal option for the test command in all platforms.
The use of it in conclude.am cause some platforms to bark at the
Makefile generated.

Solution:
Created a command script bin/newer which tests if file1 is newer
than file2.  Replace the "test file1 -nt file2" by
"newer file1 file2".

Platforms tested:
Tested in sol.
2005-07-06 23:52:45 -05:00
James Laird
7c7a856c5f [svn-r11018] Purpose:
Bug fix

Description:
Fixed error in Fortran examples on modi4.

Solution:
Added another dependency in the Fortran examples.

Platforms tested:
mir, modi4 (serial and parallel)
2005-07-05 12:42:19 -05:00
James Laird
c80b03cf33 [svn-r11016] Purpose:
Bug fix

Description:
Added dependencies to examples Makefiles so that examples can be run in
parallel.

Solution:
The examples directories (for C, C++, and Fortran) all have some dependencies
explicitly spelled out in their Makefiles.am.  This is a good short-term
solution, and should prevent errors in the Daily Tests.

Platforms tested:
mir, modi4 (parallel and sequential)
2005-07-04 16:25:07 -05:00
James Laird
4cf99e9f28 [svn-r11013] Purpose:
Bug fix

Description:
Fixed bugs that caused tests to be unable to find testhdf5.sh during
daily tests, and another that broke sol and shanti.

Solution:
When tests are run, their path is ./$testname .
When scripts are run, their path has no leading "./".  Fixed.
Sol and shanti don't recognize the -e option for test, but they do know
-f.  Fixed.
Also modified release notes.

Platforms tested:
mir, shanti, heping
2005-07-01 16:22:05 -05:00
James Laird
43f091f462 [svn-r11008] Purpose:
Feature: tests now use parallel make and only run once

Description:
When make is invoked in parallel (using the -j option), several tests will
now be run simultaneously.  This should speed up testing on a number of
systems.
When a test passes, it creates a foo.chkexe or foo.chksh file, which prevents
the test from running again unless the test or library changes.

Solution:
Most of the changes live in config/conclude.am.  Added *.chkexe and *.chksh
files to the list of files to be cleaned at "make mostlyclean" time.
Parallel tests still run one at a time, but use the same make instructions
as serial tests.

Platforms tested:
mir, eirene, sleipnir, pommier, copper, modi4 (some errors occurred, probably
due to the test being run before updating hdf5.  Will re-run tests after
checkin.)
2005-06-30 18:35:32 -05:00
Elena Pourmal
1e1e2578f6 [svn-r10997] Purpose: Small bug fix
Description: "long long" type caused compilation problems on Windows

Solution: Use long_long definition

Platforms tested: heping, Windows will follow

Misc. update:
2005-06-28 14:42:51 -05:00
Elena Pourmal
ea66068977 [svn-r10970] Purpose: New feature/bug #350 fix
Description:
             When compiler flag was used to set the size of Fortran integer
             to 8 bytes, library would fail.

Solution:
             Cleaned up the code; added detection of Fortran INTEGER type size
             and appropriately defined int_f type for C-stubs routines.

Platforms tested:
             Solaris 2.8 32 and 64-bit, AIX 5.1 64-bit parallel
             PGI Fortran with -i8 flag on heping
             Absoft Fortran with -i8 flag on heping
             g95 on mir (Fortran integer is 8 bytes by default that cannot be
                         changed - compiler bug ;-)
             AIX Fortran with -qintsize=8 32 and 64-bit modes on copper

Misc. update:
2005-06-22 13:23:21 -05:00
James Laird
6dd39e45be [svn-r10883] Purpose:
Bug fix

Description:
H5test_kind.f90 had an error when being compiled by pgf90.

Solution:
A variable wasn't declared.  Declared it to fix the bug.

Platforms tested:
heping, mir
2005-06-09 10:04:08 -05:00
James Laird
602a9ce693 [svn-r10882] Purpose:
Bug fix/improvement

Description:
Added another step to fortran type detection.  This should help on some
bizarre platforms.

Solution:
Formerly, H5fortran_detect.f90 was included in the distribution.  Now
it is generated by H5test_kind.f90 (written by Elena).

Platforms tested:
verbena, modi4, copper
2005-06-08 16:05:07 -05:00
James Laird
6a259df23d [svn-r10870] Purpose:
Bug fix

Description:
Fortran type detection failed on Cygwin.  This is because executables
in Cygwin have the .exe extension, which confused dependencies in
the Makefile.

Solution:
Sprinkled the $(EXEEXT) variable liberally about the fortran/src
Makefile.am.  This variable is set at configure time and will
be ".exe" on Cygwin and stay "" on Linux.

Platforms tested:
Cygwin, modi4, mir
2005-06-07 16:17:46 -05:00
Albert Cheng
65107926e1 [svn-r10858] Purpose:
bug fix.

Description:
The check-s and check-p targets are not recursively passes down.
Make them so.

Platforms tested:
heping (serial and pp).
2005-06-04 00:01:12 -05:00
Albert Cheng
a2217d58c8 [svn-r10849] Purpose:
bug fix

Description:
check-s and check-p were set as pre-requistics of test.  They
would get executed in parallel if parallel make is used.  This
could cause problems since serial tests are used to be executed
before parallel tests. It is not known if it is always okay to
run serial and parallel tests in simultantously.

Solution:
Change check-s and check-p as actions of the target test so
that they get executed sequnentially.

Platforms tested:
heping PP.
2005-06-02 18:42:48 -05:00
James Laird
2423bd6cab [svn-r10840] Purpose:
Added check-s and check-p targets.

Description:
Added check-s and check-p targets to 1.7 branch to match changes to 1.6
branch.  Now parallel and serial tests can be run separately.

Platforms tested:
mir, modi4, copper
2005-06-01 20:51:52 -05:00
James Laird
f1aa157f58 [svn-r10794] Purpose:
Bug fix

Description:
Fortran tests failed because UTF-8 character set flag wasn't initialized
properly.

Solution:
Elena showed me where the flags needs to be initialized.  Problem solved.

Platforms tested:
heping, copper, modi4
2005-05-24 14:17:43 -05:00
Pedro Vicente Nunes
2e6769592d [svn-r10793] Purpose:
new fortran parallel test

Description:
added a test that writes and reads several datasets

Solution:

Platforms tested:
linux (intel compiler, tungsten)
AIX (copper)


Misc. update:
2005-05-23 16:40:43 -05:00
James Laird
985af5617f [svn-r10785] Purpose:
Feature

Description:
Added "support" for UTF-8 character encoding.

Solution:
Wrote tests to check that UTF-8 can be used in a number of places in
HDF5 (object names, data, etc.).  These tests live in test/tunicode.c.
Added a new UTF-8 character encoding for datatypes.

Platforms tested:
mir, modi4, heping

Misc. update:
2005-05-23 13:20:07 -05:00
James Laird
8bf9952205 [svn-r10743] Purpose:
Code cleanup

Description:
fortran/src/H5f90i.h used to define different fortran types for every
compiler.  Now it only defines three things, and they are the
same for every platform but one.

Solution:
Eliminate duplicate definitions; now there are only two cases
("UNICOS" and "everything else").
This should also let the HDF5 Fortran compile anywhere, even on
unknown platforms.

Platforms tested:
mir, pommier, modi4, copper, Cray X1 (in progress)
2005-05-12 15:00:56 -05:00