1999-07-20 03:56:57 +08:00
|
|
|
## HDF5 Library Test Makefile(.in)
|
|
|
|
##
|
2002-02-13 00:20:56 +08:00
|
|
|
## Copyright (C) 1997, 2002
|
|
|
|
## National Center for Supercomputing Applications.
|
|
|
|
## All rights reserved.
|
1999-07-20 03:56:57 +08:00
|
|
|
##
|
|
|
|
##
|
1999-03-04 07:17:48 +08:00
|
|
|
top_srcdir=@top_srcdir@
|
1999-03-20 04:09:50 +08:00
|
|
|
top_builddir=..
|
|
|
|
srcdir=@srcdir@
|
|
|
|
@COMMENCE@
|
1997-08-16 00:54:08 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Add include directory to the C preprocessor flags and the h5test and hdf5
|
|
|
|
## libraries to the library list.
|
1999-03-20 04:09:50 +08:00
|
|
|
CPPFLAGS=-I. -I$(srcdir) -I../src -I$(top_srcdir)/src @CPPFLAGS@
|
1997-08-16 00:54:08 +08:00
|
|
|
|
1999-07-20 03:56:57 +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.
|
2002-02-13 03:08:10 +08:00
|
|
|
TEST_PROGS=testhdf5 lheap ohdr stab gheap hyperslab istore bittests dtypes \
|
|
|
|
dsets cmpd_dset extend external links unlink big mtime fillval mount \
|
2002-04-10 23:35:27 +08:00
|
|
|
flush1 flush2 enum gass_write gass_read gass_append set_extent \
|
2002-10-01 00:31:55 +08:00
|
|
|
srb_write srb_append srb_read ttsafe stream_test getname file_handle
|
2000-05-19 03:13:33 +08:00
|
|
|
|
2001-08-16 13:27:33 +08:00
|
|
|
TIMINGS=testmeta
|
1997-08-16 00:54:08 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## The libh5test.a library provides common support code for the tests. We link
|
|
|
|
## this library statically because some systems can only link executables to
|
|
|
|
## a single shared library and libhdf5 is much bigger than libh5test.
|
1999-03-18 21:42:52 +08:00
|
|
|
LIBHDF5=../src/libhdf5.la
|
1999-04-26 22:43:53 +08:00
|
|
|
LIB=libh5test.la
|
1998-11-21 11:36:51 +08:00
|
|
|
LIB_SRC=h5test.c
|
1999-04-26 22:43:53 +08:00
|
|
|
LIB_OBJ=$(LIB_SRC:.c=.lo)
|
1999-04-16 03:57:50 +08:00
|
|
|
PUB_LIB=
|
1998-11-21 11:36:51 +08:00
|
|
|
|
1999-07-20 03:56:57 +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.
|
2002-08-27 21:42:22 +08:00
|
|
|
MOSTLYCLEAN=cmpd_dset.h5 compact_dataset.h5 dataset.h5 extend.h5 istore.h5 \
|
|
|
|
tfile1.h5 tfile2.h5 tfile3.h5 th5s1.h5 lheap.h5 ohdr.h5 stab1.h5 \
|
|
|
|
stab2.h5 extern_1.h5 extern_2.h5 extern_3.h5 extern_1a.raw \
|
|
|
|
extern_1b.raw extern_2a.raw extern_2b.raw extern_3a.raw \
|
|
|
|
extern_3b.raw extern_4a.raw extern_4b.raw gheap0.h5 gheap1.h5 \
|
2002-11-06 00:28:58 +08:00
|
|
|
gheap2.h5 gheap3.h5 gheap4.h5 links.h5 links[1-3].h5 big.data \
|
|
|
|
big[0-9][0-9][0-9][0-9][0-9].h5 dtypes[1-3].h5 tattr.h5 \
|
2002-02-13 03:08:10 +08:00
|
|
|
tselect.h5 mtime.h5 unlink.h5 fillval_[0-9].h5 fillval.raw \
|
2002-11-06 00:28:58 +08:00
|
|
|
mount_[0-9].h5 testmeta.h5 ttime.h5 trefer[1-3].h5 tvltypes.h5 \
|
2002-02-13 03:08:10 +08:00
|
|
|
tvlstr.h5 flush.h5 enum1.h5 titerate.h5 ttsafe.h5 tarray1.h5 \
|
2002-03-28 04:25:48 +08:00
|
|
|
tgenprop.h5 tmisc.h5 tmisc2a.h5 tmisc2b.h5 tmisc3.h5 tmisc4a.h5 \
|
2002-08-14 22:34:01 +08:00
|
|
|
tmisc4b.h5 tmisc5.h5 tmisc6.h5 tmisc7.h5 tmisc8.h5 \
|
2002-10-15 03:42:27 +08:00
|
|
|
set_extent_read.h5 set_extent_create.h5 getname.h5 getname1.h5 \
|
2002-11-06 00:28:58 +08:00
|
|
|
getname2.h5 getname3.h5 sec2_file.h5 family_file000[0-3][0-9].h5 \
|
|
|
|
multi_file-[rs].h5 core_file new_move_[ab].h5
|
1998-09-08 21:39:18 +08:00
|
|
|
CLEAN=$(TIMINGS)
|
1998-01-28 23:41:45 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Source and object files for programs... The TEST_SRC list contains all the
|
|
|
|
## source files and is used for things like dependencies, archiving, etc. The
|
|
|
|
## other source lists are for the individual tests, the files of which may
|
|
|
|
## overlap with other tests.
|
2000-05-19 03:13:33 +08:00
|
|
|
|
2002-02-13 03:08:10 +08:00
|
|
|
TEST_SRC=big.c bittests.c cmpd_dset.c dsets.c dtypes.c extend.c \
|
|
|
|
external.c fillval.c flush1.c flush2.c gheap.c h5test.c hyperslab.c \
|
|
|
|
istore.c lheap.c links.c mount.c mtime.c ohdr.c stab.c tarray.c \
|
|
|
|
tattr.c tconfig.c testhdf5.c testmeta.c tfile.c tgenprop.c th5s.c \
|
|
|
|
titerate.c tmeta.c trefer.c tselect.c ttime.c ttbbt.c tvltypes.c \
|
|
|
|
tvlstr.c tmisc.c unlink.c enum.c ttsafe.c ttsafe_dcreate.c \
|
|
|
|
ttsafe_error.c ttsafe_cancel.c ttsafe_acreate.c gass_write.c \
|
|
|
|
gass_read.c gass_append.c srb_read.c srb_write.c srb_append.c \
|
2002-10-01 00:31:55 +08:00
|
|
|
stream_test.c set_extent.c getname.c file_handle.c
|
1999-08-31 12:55:00 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
TEST_OBJ=$(TEST_SRC:.c=.lo)
|
1998-05-22 23:05:53 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Private header files (not to be installed)...
|
2000-05-19 03:13:33 +08:00
|
|
|
PRIVATE_HDR=testhdf5.h ttsafe.h
|
1997-08-16 00:54:08 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Additional targets
|
1998-03-17 09:29:54 +08:00
|
|
|
.PHONY: timings _timings
|
|
|
|
timings _timings: $(TIMINGS)
|
|
|
|
@for timing in $(TIMINGS) dummy; do \
|
|
|
|
if test $$timing != dummy; then \
|
|
|
|
echo "Running $$timing $(TEST_FLAGS)"; \
|
|
|
|
$(RUNTEST) ./$$timing $(TEST_FLAGS) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done;
|
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## How to build the tests... They all depend on the test and hdf5 libraries.
|
1999-03-18 21:42:52 +08:00
|
|
|
$(TEST_PROGS): $(LIB) $(LIBHDF5)
|
2000-05-19 03:13:33 +08:00
|
|
|
|
2001-09-26 13:37:15 +08:00
|
|
|
TESTHDF5_OBJ=testhdf5.lo tarray.lo tattr.lo tconfig.lo tfile.lo tgenprop.lo \
|
|
|
|
th5s.lo titerate.lo tmeta.lo ttime.lo trefer.lo tselect.lo ttbbt.lo \
|
2002-01-24 05:28:24 +08:00
|
|
|
tvltypes.lo tvlstr.lo tmisc.lo
|
2000-05-19 03:13:33 +08:00
|
|
|
|
|
|
|
TTS_OBJ=ttsafe.lo ttsafe_dcreate.lo ttsafe_error.lo ttsafe_cancel.lo \
|
|
|
|
ttsafe_acreate.lo
|
|
|
|
|
1998-11-13 23:06:06 +08:00
|
|
|
testhdf5: $(TESTHDF5_OBJ)
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ $(TESTHDF5_OBJ) $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1997-10-21 07:14:35 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
lheap: lheap.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ lheap.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-11-25 22:58:22 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
ohdr: ohdr.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ ohdr.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-11-25 22:58:22 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
stab: stab.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ stab.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-11-25 22:58:22 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
gheap: gheap.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ gheap.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-04-03 11:29:38 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
dsets: dsets.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ dsets.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1997-12-11 06:41:56 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
bittests: bittests.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ bittests.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-06-17 03:38:26 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
dtypes: dtypes.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ dtypes.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1997-12-11 06:41:56 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
hyperslab: hyperslab.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ hyperslab.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1997-10-21 07:14:35 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
istore: istore.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ istore.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1997-08-16 00:54:08 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
cmpd_dset: cmpd_dset.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ cmpd_dset.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-01-24 03:53:37 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
extend: extend.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ extend.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-01-31 07:32:28 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
external: external.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ external.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-03-05 00:20:23 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
big: big.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ big.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
[svn-r339] Changes since 19980408
----------------------
./src/H5Osdspace.c
./html/H5.format.html
In the past we were allowed to have >2GB files on a 32-bit
machine as long as no dataset within the file was larger than
4GB (or whatever sizeof(size_t) is). That's been fixed now.
All dataset size calculations are done with `hsize_t' which is
normally defined as `unsigned long long'.
./src/H5F.c
./src/H5Ffamily.c
./src/H5Fprivate.h
./src/H5P.c
./src/H5Ppublic.h
The file family member size can now be set/queried. The
default is still 64MB, but it can be set to 1GB by saying:
H5Pset_family (plist, 30, H5P_DEFAULT);
When opening an existing file family the specified
bits-per-member is ignored and the first member of the family
determines the bits-per-member, which can be retrieved with
H5Pget_family().
./acconfig.h
./configure.in
./src/H5config.h
./src/H5public.h
Added `--disable-hsizet' so that those with old GCC compilers
(<2.8.1) can still compile the code.
./src/H5.c
./src/H5private.h
Added HDfprintf() which works just like fprintf() except you
can give `H' as a size modifier for the integer conversions
and supply an `hsize_t' or `hssize_t' argument without casting
it. For instance:
hsize_t npoints = H5Sget_npoints(space);
HDfprintf(stdout,"Dataset has %Hd (%#018Hx) points\n",
npoints, npoints);
You can now give `%a' as a format to print an address, but all
formating flags are ignored and it causes the return value of
HDfprintf() to not include the characters in the address (but
who uses the return value anyway :-). Example:
H5G_t *grp;
HDfprintf(stdout, "Group object header at %a\n",
&(grp->ent.header));
Added HDstrtoll() which works exactly like [HD]strtol() except
the result is an int64.
./src/debug.c
Large addresses can now be entered from the command-line. Use
either decimal, octal (leading `0') or hexadecimal (leading
`0x') when giving the address.
./src/h5ls.c
The printf format for dataset dimensions was changed to `%Hu'
to support large datasets.
./test/big.c [NEW]
A test for big datasets on 32-bit machines. This test is not
run by default. Don't try to run it on an nfs-mounted file
system or other file system that doesn't support holes because
it creates two 32GB datasets of all zero.
1998-04-10 04:22:11 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
links: links.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ links.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-04-15 00:44:46 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
mtime: mtime.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ mtime.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-07-31 00:38:21 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
unlink: unlink.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ unlink.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-09-28 22:20:21 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
fillval: fillval.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ fillval.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-10-06 05:01:10 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
mount: mount.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ mount.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-10-15 03:35:08 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
flush1: flush1.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ flush1.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-10-26 22:49:52 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
flush2: flush2.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ flush2.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-10-26 22:49:52 +08:00
|
|
|
|
1999-04-26 22:43:53 +08:00
|
|
|
enum: enum.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ enum.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1999-01-07 19:42:04 +08:00
|
|
|
|
2000-05-19 03:13:33 +08:00
|
|
|
ttsafe: $(TTS_OBJ)
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ $(TTS_OBJ) $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
2000-05-19 03:13:33 +08:00
|
|
|
|
1999-08-31 12:55:00 +08:00
|
|
|
gass_write: gass_write.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ gass_write.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1999-08-31 12:55:00 +08:00
|
|
|
|
|
|
|
gass_read: gass_read.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ gass_read.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1999-08-31 12:55:00 +08:00
|
|
|
|
|
|
|
gass_append: gass_append.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ gass_append.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1999-08-31 12:55:00 +08:00
|
|
|
|
2002-04-10 23:35:27 +08:00
|
|
|
set_extent: set_extent.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ set_extent.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
2002-02-13 00:20:56 +08:00
|
|
|
|
2000-04-13 23:17:14 +08:00
|
|
|
srb_read: srb_read.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ srb_read.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
2000-04-13 23:17:14 +08:00
|
|
|
|
|
|
|
srb_write: srb_write.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ srb_write.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
2000-04-13 23:17:14 +08:00
|
|
|
|
|
|
|
srb_append: srb_append.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ srb_append.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
2000-04-13 23:17:14 +08:00
|
|
|
|
2000-09-15 19:54:06 +08:00
|
|
|
stream_test: stream_test.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ stream_test.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
|
|
|
|
2001-07-31 04:03:25 +08:00
|
|
|
testmeta: testmeta.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ testmeta.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
|
|
|
|
2002-08-29 02:34:12 +08:00
|
|
|
getname: getname.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ getname.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
|
|
|
|
2002-10-01 00:31:55 +08:00
|
|
|
file_handle: file_handle.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ file_handle.lo $(LIB) $(LIBHDF5) $(LDFLAGS)
|
2002-08-29 02:34:12 +08:00
|
|
|
|
1997-08-16 00:54:08 +08:00
|
|
|
@CONCLUDE@
|