2005-02-01 11:17:02 +08:00
|
|
|
#
|
2007-02-08 06:28:58 +08:00
|
|
|
# Copyright by The HDF Group.
|
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
|
2007-02-08 06:28:58 +08:00
|
|
|
# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
|
|
|
|
# access to either file, you may request a copy from help@hdfgroup.org.
|
2005-02-01 11:17:02 +08:00
|
|
|
##
|
|
|
|
## Makefile.am
|
|
|
|
## Run automake to generate a Makefile.in from this file.
|
|
|
|
##
|
|
|
|
#
|
|
|
|
# HDF5 Library Test Makefile(.in)
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
|
2014-04-01 01:07:05 +08:00
|
|
|
AM_CPPFLAGS+=-I$(top_srcdir)/src -I$(top_builddir)/src
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# Test script for error_test and err_compat
|
2013-03-29 01:17:19 +08:00
|
|
|
TEST_SCRIPT = testerror.sh testlibinfo.sh testcheck_version.sh testlinks_env.sh
|
|
|
|
SCRIPT_DEPEND = error_test$(EXEEXT) err_compat$(EXEEXT) links_env$(EXEEXT)
|
2013-03-27 23:39:16 +08:00
|
|
|
if HAVE_SHARED_CONDITIONAL
|
2013-03-29 01:17:19 +08:00
|
|
|
TEST_SCRIPT += test_plugin.sh
|
|
|
|
SCRIPT_DEPEND += plugin$(EXEEXT)
|
2013-03-27 23:39:16 +08:00
|
|
|
endif
|
2005-02-01 11:17:02 +08:00
|
|
|
|
2013-03-27 23:39:16 +08:00
|
|
|
check_SCRIPTS = $(TEST_SCRIPT)
|
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.
|
2015-12-19 22:42:15 +08:00
|
|
|
TEST_PROG= testhdf5 cache cache_api cache_tagging lheap ohdr stab gheap \
|
|
|
|
farray earray btree2 fheap \
|
2010-10-16 03:16:41 +08:00
|
|
|
pool accum hyperslab istore bittests dt_arith \
|
2011-02-09 01:32:56 +08:00
|
|
|
dtypes dsets cmpd_dset filter_fail extend external efc objcopy links unlink \
|
2010-09-10 02:15:36 +08:00
|
|
|
big mtime fillval mount flush1 flush2 app_ref enum \
|
2015-09-17 03:55:38 +08:00
|
|
|
set_extent ttsafe enc_dec_plist enc_dec_plist_cross_platform\
|
2006-11-18 21:52:32 +08:00
|
|
|
getname vfd ntypes dangle dtransform reserved cross_read \
|
2015-12-19 22:42:15 +08:00
|
|
|
freespace mf vds file_image unregister
|
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.
|
2009-09-28 23:44:35 +08:00
|
|
|
# tcheck_version is used by testcheck_version.sh.
|
2005-02-01 11:17:02 +08:00
|
|
|
# '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.
|
2013-03-29 01:17:19 +08:00
|
|
|
check_PROGRAMS=$(TEST_PROG) error_test err_compat tcheck_version testmeta links_env
|
2013-03-27 23:39:16 +08:00
|
|
|
if HAVE_SHARED_CONDITIONAL
|
2013-03-29 01:17:19 +08:00
|
|
|
check_PROGRAMS+= plugin
|
2013-03-27 23:39:16 +08:00
|
|
|
endif
|
2005-02-01 11:17:02 +08:00
|
|
|
|
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.
|
[svn-r14402] Description:
Add work-around to allow reading files that were produced with a buggy
earlier version of the library, which could create objects with the wrong
object header message count. There is now a configure flag
"--enable-strict-format-checks" which triggers a failure on reading a file
with this sort of corruption (when enabled) and allows the object to be read
(when disabled). The default value for the "strict-format-checks" flag is
yes when the "debug" flag is enabled and no when the "debug" flag is disabled.
Note that if strict format checks are disabled (allowing objects with
this particular kind of corruption to be read) and the file is opened with
write access, the library will re-write the object header for the corrupt
object with the correct # of object header messages.
This closes bugzilla bug #1010.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-01-13 13:37:00 +08:00
|
|
|
BUILD_ALL_PROGS=gen_bad_ohdr gen_bogus gen_cross gen_deflate gen_filters gen_new_array \
|
[svn-r14199] Description:
Add H5Dcreate to API versioned routines, replacing internal usage with
H5Dcreate2
Fix thread-safe error stack initialization for API versioned error
stack printing routines.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-12 00:24:11 +08:00
|
|
|
gen_new_fill gen_new_group gen_new_mtime gen_new_super gen_noencoder \
|
2010-07-17 00:32:49 +08:00
|
|
|
gen_nullspace gen_udlinks space_overflow gen_filespace gen_specmetaread \
|
[svn-r22807] Description:
Add encode/decode API routines for property lists: H5Pencode/H5Pdecode.
Tested on:
FreeBSD/32 8.2 (loyalty) w/gcc4.6, w/C++ & FORTRAN, in debug mode
FreeBSD/64 8.2 (freedom) w/gcc4.6, w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (koala) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, w/threadsafe, in production mode
Linux/PPC 2.6 (ostrich) w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-ia64 2.6 (ember) w/Intel compilers, w/parallel, C++ & FORTRAN,
in production mode
Mac OS X/32 10.7.3 (amazon) in debug mode
Mac OS X/32 10.7.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
Mac OS X/32 10.7.3 (amazon) w/parallel, in debug mode
2012-09-25 23:47:25 +08:00
|
|
|
gen_sizes_lheap gen_file_image gen_plist
|
2006-08-03 07:41:53 +08:00
|
|
|
|
2005-10-15 06:52:13 +08:00
|
|
|
if BUILD_ALL_CONDITIONAL
|
2006-08-03 07:41:53 +08:00
|
|
|
noinst_PROGRAMS=$(BUILD_ALL_PROGS)
|
2005-10-15 06:52:13 +08:00
|
|
|
endif
|
|
|
|
|
2013-03-27 23:39:16 +08:00
|
|
|
if HAVE_SHARED_CONDITIONAL
|
|
|
|
# The libh5test library provides common support code for the tests.
|
2013-03-29 04:14:11 +08:00
|
|
|
noinst_LTLIBRARIES=libh5test.la
|
2013-03-27 23:39:16 +08:00
|
|
|
|
2013-03-30 04:59:15 +08:00
|
|
|
# The libdynlib1 and libdynlib2 library for testing plugin module plugin.c.
|
2013-03-27 23:39:16 +08:00
|
|
|
# Build it as shared library if configure is enabled for shared library.
|
2013-04-02 07:28:48 +08:00
|
|
|
lib_LTLIBRARIES=libdynlib1.la libdynlib2.la libdynlib3.la
|
2013-03-27 23:39:16 +08:00
|
|
|
libdynlib1_la_SOURCES=dynlib1.c
|
2013-03-30 04:59:15 +08:00
|
|
|
libdynlib2_la_SOURCES=dynlib2.c
|
2013-04-02 07:28:48 +08:00
|
|
|
libdynlib3_la_SOURCES=dynlib3.c
|
2013-03-29 04:14:11 +08:00
|
|
|
|
2013-04-02 06:45:02 +08:00
|
|
|
install-exec-hook:
|
2013-03-30 04:59:15 +08:00
|
|
|
$(RM) $(DESTDIR)$(libdir)/*dynlib*
|
2013-03-29 04:14:11 +08:00
|
|
|
|
2013-03-27 23:39:16 +08:00
|
|
|
else
|
|
|
|
# The libh5test library provides common support code for the tests.
|
|
|
|
noinst_LTLIBRARIES=libh5test.la
|
|
|
|
endif
|
|
|
|
|
2006-01-28 06:58:48 +08:00
|
|
|
libh5test_la_SOURCES=h5test.c testframe.c cache_common.c
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2014-04-09 11:35:16 +08:00
|
|
|
VFD_LIST = sec2 stdio core core_paged split multi family
|
2006-10-11 04:47:24 +08:00
|
|
|
if DIRECT_VFD_CONDITIONAL
|
2013-03-29 01:17:19 +08:00
|
|
|
VFD_LIST += direct
|
2006-10-11 04:47:24 +08:00
|
|
|
endif
|
2006-08-01 03:46:16 +08:00
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
# 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)"; \
|
2010-01-13 07:58:30 +08:00
|
|
|
$(RUNEXEC) ./$$timing $(TEST_FLAGS) || exit 1; \
|
2005-02-01 11:17:02 +08:00
|
|
|
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
|
2006-06-27 22:45:06 +08:00
|
|
|
# prefix or low-level driver with environment variables will influence
|
2005-02-01 11:17:02 +08:00
|
|
|
# the temporary file name in ways that the makefile is not aware of.
|
2010-10-16 03:16:41 +08:00
|
|
|
CHECK_CLEANFILES+=accum.h5 cmpd_dset.h5 compact_dataset.h5 dataset.h5 dset_offset.h5 \
|
2009-10-02 05:52:27 +08:00
|
|
|
max_compact_dataset.h5 simple.h5 set_local.h5 random_chunks.h5 \
|
|
|
|
huge_chunks.h5 chunk_cache.h5 big_chunk.h5 chunk_expand.h5 \
|
2010-01-30 04:38:34 +08:00
|
|
|
copy_dcpl_newfile.h5 extend.h5 istore.h5 extlinks*.h5 frspace.h5 links*.h5 \
|
2013-11-02 05:15:37 +08:00
|
|
|
sys_file1 tfile[1-7].h5 th5s[1-4].h5 lheap.h5 fheap.h5 ohdr.h5 \
|
2016-02-04 23:35:17 +08:00
|
|
|
stab.h5 extern_[1-4].h5 extern_[1-4][rw].raw gheap[0-4].h5 \
|
2009-10-02 05:52:27 +08:00
|
|
|
dt_arith[1-2] links.h5 links[0-6]*.h5 extlinks[0-15].h5 tmp \
|
|
|
|
big.data big[0-9][0-9][0-9][0-9][0-9].h5 \
|
2012-06-24 07:42:09 +08:00
|
|
|
stdio.h5 sec2.h5 dtypes[0-9].h5 dtypes1[0].h5 dt_arith[1-2].h5 tattr.h5 \
|
2009-10-02 05:52:27 +08:00
|
|
|
tselect.h5 mtime.h5 unlink.h5 unicode.h5 coord.h5 \
|
|
|
|
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[1-5].h5 ext[12].bin \
|
|
|
|
getname.h5 getname[1-3].h5 sec2_file.h5 direct_file.h5 \
|
|
|
|
family_file000[0-3][0-9].h5 new_family_v16_000[0-3][0-9].h5 \
|
2013-03-27 23:39:16 +08:00
|
|
|
multi_file-[rs].h5 core_file plugin.h5 \
|
2009-10-02 05:52:27 +08:00
|
|
|
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 \
|
2015-12-19 22:42:15 +08:00
|
|
|
unlink_chunked.h5 btree2.h5 btree2_tmp.h5 objcopy_src.h5 objcopy_dst.h5 \
|
|
|
|
objcopy_ext.dat trefer1.h5 trefer2.h5 app_ref.h5 farray.h5 farray_tmp.h5 \
|
|
|
|
earray.h5 earray_tmp.h5 efc[0-5].h5 log_vfd_out.log \
|
2012-06-24 07:42:09 +08:00
|
|
|
new_multi_file_v16-r.h5 new_multi_file_v16-s.h5 \
|
2012-06-24 07:32:02 +08:00
|
|
|
split_get_file_image_test-m.h5 split_get_file_image_test-r.h5 \
|
2015-02-18 05:11:22 +08:00
|
|
|
file_image_core_test.h5.copy unregister_filter_1.h5 unregister_filter_2.h5 \
|
2015-06-04 02:00:58 +08:00
|
|
|
vds_virt.h5 vds_src_[0-1].h5
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# Sources for testhdf5 executable
|
2006-08-22 07:27:11 +08:00
|
|
|
testhdf5_SOURCES=testhdf5.c tarray.c tattr.c tchecksum.c tconfig.c tfile.c \
|
2007-12-21 05:09:58 +08:00
|
|
|
tgenprop.c th5o.c th5s.c tcoords.c theap.c tid.c titerate.c tmeta.c tmisc.c \
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
trefer.c trefstr.c tselect.c tskiplist.c tsohm.c ttime.c ttst.c tunicode.c \
|
|
|
|
tvlstr.c tvltypes.c
|
2005-02-01 11:17:02 +08:00
|
|
|
|
2007-08-22 05:08:27 +08:00
|
|
|
# Temporary files.
|
2013-03-14 03:35:26 +08:00
|
|
|
DISTCLEANFILES=testerror.sh testlibinfo.sh testcheck_version.sh testlinks_env.sh test_plugin.sh
|
2007-08-22 05:08:27 +08:00
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
include $(top_srcdir)/config/conclude.am
|