2005-02-01 11:17:02 +08:00
|
|
|
#
|
|
|
|
# Copyright by the Board of Trustees of the University of Illinois.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
|
|
# the files COPYING and Copyright.html. COPYING can be found at the root
|
|
|
|
# of the source code distribution tree; Copyright.html can be found at the
|
|
|
|
# root level of an installed copy of the electronic HDF5 document set and
|
|
|
|
# is linked from the top-level documents page. It can also be found at
|
|
|
|
# http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have
|
|
|
|
# access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu.
|
|
|
|
##
|
|
|
|
## Makefile.am
|
|
|
|
## Run automake to generate a Makefile.in from this file.
|
|
|
|
##
|
|
|
|
#
|
|
|
|
# HDF5 Library Test Makefile(.in)
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
|
2005-02-12 05:32:22 +08:00
|
|
|
INCLUDES=-I$(top_srcdir)/src -I$(top_builddir)/src
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# Test script for error_test and err_compat
|
|
|
|
TEST_SCRIPT = $(top_srcdir)/test/testerror.sh
|
|
|
|
check_SCRIPTS = $(TEST_SCRIPT)
|
2005-08-31 07:42:39 +08:00
|
|
|
SCRIPT_DEPEND = error_test$(EXEEXT) err_compat$(EXEEXT)
|
2005-02-01 11:17:02 +08:00
|
|
|
|
2005-03-30 01:38:17 +08:00
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
# These are our main targets. They should be listed in the order to be
|
|
|
|
# executed, generally most specific tests to least specific tests.
|
2005-07-22 03:28:11 +08:00
|
|
|
# As an exception, long-running tests should occur earlier in the list.
|
|
|
|
# This gives them more time to run when tests are executing in parallel.
|
|
|
|
TEST_PROG=testhdf5 lheap ohdr stab gheap btree2 cache b+tree blocktrack sheap \
|
2005-06-17 21:33:36 +08:00
|
|
|
pool hyperslab istore bittests dt_arith \
|
2005-02-01 11:17:02 +08:00
|
|
|
dtypes dsets cmpd_dset extend external links unlink big mtime \
|
2005-03-04 02:10:16 +08:00
|
|
|
fillval mount flush1 flush2 enum \
|
2005-03-30 05:45:09 +08:00
|
|
|
set_extent ttsafe stream_test \
|
2005-07-21 22:48:26 +08:00
|
|
|
getname vfd ntypes dangle dtransform reserved
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# List programs to be built when testing here. error_test and err_compat are
|
|
|
|
# built at the same time as the other tests, but executed by testerror.sh.
|
|
|
|
# 'make check' doesn't run them directly, so they are not included in TEST_PROG.
|
|
|
|
# Also build testmeta, which is used for timings test. It builds quickly,
|
|
|
|
# and this lets automake keep all its test programs in one place.
|
|
|
|
check_PROGRAMS=$(TEST_PROG) error_test err_compat testmeta
|
|
|
|
|
|
|
|
|
2005-10-15 06:52:13 +08:00
|
|
|
# These programs generate test files for the tests. They don't need to be
|
|
|
|
# compiled every time we want to test the library. However, putting
|
|
|
|
# them in a conditional causes automake to generate rules so that they
|
|
|
|
# can be built by hand. They can also be built by specifying
|
|
|
|
# --enable-build-all at configure time.
|
2005-10-21 05:36:24 +08:00
|
|
|
# The gen_old_* files can only be compiled with older versions of the library
|
|
|
|
# so do not appear in this list.
|
2005-10-15 06:52:13 +08:00
|
|
|
if BUILD_ALL_CONDITIONAL
|
|
|
|
BUILD_ALL_PROGS=gen_deflate gen_filters gen_new_array gen_new_fill \
|
2005-10-25 02:58:15 +08:00
|
|
|
gen_new_mtime gen_new_super gen_noencoder gen_nullspace \
|
|
|
|
space_overflow
|
2005-10-15 06:52:13 +08:00
|
|
|
else
|
|
|
|
BUILD_ALL_PROGS=
|
|
|
|
endif
|
|
|
|
|
|
|
|
noinst_PROGRAMS=$(BUILD_ALL_PROGS)
|
|
|
|
|
2005-08-03 01:59:03 +08:00
|
|
|
# The libh5test library provides common support code for the tests.
|
[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-14 06:30:33 +08:00
|
|
|
noinst_LTLIBRARIES=libh5test.la
|
2005-02-01 11:17:02 +08:00
|
|
|
libh5test_la_SOURCES=h5test.c testframe.c
|
|
|
|
|
|
|
|
# Use libhd5test.la to compile all of the tests
|
2005-02-04 05:59:40 +08:00
|
|
|
LDADD=libh5test.la $(LIBHDF5)
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# List the source files for tests that have more than one
|
|
|
|
ttsafe_SOURCES=ttsafe.c ttsafe_dcreate.c ttsafe_error.c ttsafe_cancel.c \
|
|
|
|
ttsafe_acreate.c
|
|
|
|
|
|
|
|
# Additional target for running timing test
|
|
|
|
timings _timings: testmeta
|
|
|
|
@for timing in $(TIMINGS) dummy; do \
|
|
|
|
if test $$timing != dummy; then \
|
|
|
|
echo "Running $$timing $(TEST_FLAGS)"; \
|
|
|
|
$(RUNTEST) ./$$timing $(TEST_FLAGS) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done;
|
|
|
|
|
|
|
|
|
2005-07-08 05:28:59 +08:00
|
|
|
# The flush1 test must run before the flush2 test
|
|
|
|
flush2.chkexe_: flush1.chkexe_
|
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
# Temporary files. These files are the ones created by setting the
|
|
|
|
# HDF5_NOCLEANUP environment variable and running `make test' without
|
|
|
|
# specifying a file prefix or low-level driver. Changing the file
|
|
|
|
# prefix or low-level driver with environment variables will influence
|
|
|
|
# the temporary file name in ways that the makefile is not aware of.
|
2005-08-03 01:59:03 +08:00
|
|
|
CHECK_CLEANFILES+=cmpd_dset.h5 compact_dataset.h5 dataset.h5 extend.h5 istore.h5\
|
2005-02-01 11:17:02 +08:00
|
|
|
tfile[1-4].h5 th5s[1-3].h5 lheap.h5 ohdr.h5 stab[1-2].h5 \
|
2005-06-17 21:33:36 +08:00
|
|
|
extern_[1-3].h5 extern_[1-4][ab].raw gheap[0-4].h5 dt_arith[1-2]\
|
2005-02-01 11:17:02 +08:00
|
|
|
links.h5 links[1-3].h5 big.data big[0-9][0-9][0-9][0-9][0-9].h5 \
|
2005-06-17 21:33:36 +08:00
|
|
|
dtypes[1-8].h5 dt_arith[1-2].h5 tattr.h5 tselect.h5 mtime.h5 \
|
2005-05-24 02:20:07 +08:00
|
|
|
unlink.h5 unicode.h5 \
|
2005-02-01 11:17:02 +08:00
|
|
|
fillval_[0-9].h5 fillval.raw mount_[0-9].h5 testmeta.h5 ttime.h5 \
|
|
|
|
trefer[1-3].h5 tvltypes.h5 tvlstr.h5 tvlstr2.h5 flush.h5 \
|
|
|
|
enum1.h5 titerate.h5 ttsafe.h5 tarray1.h5 tgenprop.h5 \
|
|
|
|
tmisc[0-9]*.h5 set_extent_read.h5 set_extent_create.h5 \
|
|
|
|
getname.h5 getname[1-3].h5 sec2_file.h5 \
|
|
|
|
family_file000[0-3][0-9].h5 multi_file-[rs].h5 core_file \
|
|
|
|
new_move_[ab].h5 ntypes.h5 dangle.h5 error_test.h5 err_compat.h5 \
|
|
|
|
dtransform.h5 test_filters.h5 get_file_name.h5 tstint[1-2].h5 \
|
2005-07-07 02:13:32 +08:00
|
|
|
unlink_chunked.h5 btree2.h5 blocktrack.h5 sheap.h5 b+tree.h5
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# Sources for testhdf5 executable
|
|
|
|
testhdf5_SOURCES=testhdf5.c tarray.c tattr.c tconfig.c tfile.c tgenprop.c \
|
|
|
|
th5s.c theap.c tid.c titerate.c tmeta.c tmisc.c ttime.c trefer.c trefstr.c \
|
2005-05-24 02:20:07 +08:00
|
|
|
tselect.c tskiplist.c ttst.c tunicode.c tvltypes.c tvlstr.c
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
include $(top_srcdir)/config/conclude.am
|