1999-07-20 03:56:57 +08:00
|
|
|
## HDF5 Library Test Makefile(.in)
|
|
|
|
##
|
|
|
|
## Copyright (C) 1997 National Center for Supercomputing Applications.
|
|
|
|
## All rights reserved.
|
|
|
|
##
|
|
|
|
##
|
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.
|
1999-03-03 01:15:35 +08:00
|
|
|
RUNTEST=$(LT_RUN)
|
2000-05-19 03:13:33 +08:00
|
|
|
|
2000-04-13 23:17:14 +08:00
|
|
|
TEST_PROGS=testhdf5 lheap ohdr stab gheap hyperslab istore bittests dtypes \
|
|
|
|
dsets cmpd_dset extend external links unlink big mtime fillval mount \
|
|
|
|
flush1 flush2 enum gass_write gass_read gass_append dpss_write \
|
2000-05-19 03:13:33 +08:00
|
|
|
dpss_read srb_write srb_append srb_read ttsafe
|
|
|
|
|
1998-10-01 02:50:49 +08:00
|
|
|
TIMINGS=iopipe chunk ragged overhead
|
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.
|
1998-01-31 07:32:28 +08:00
|
|
|
MOSTLYCLEAN=cmpd_dset.h5 dataset.h5 extend.h5 istore.h5 tfile1.h5 tfile2.h5 \
|
1998-11-25 22:58:22 +08:00
|
|
|
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 iopipe.raw iopipe.h5 gheap0.h5 \
|
1998-11-24 04:40:35 +08:00
|
|
|
gheap1.h5 gheap2.h5 gheap3.h5 gheap4.h5 links.h5 chunk.h5 \
|
|
|
|
big.data big[0-9][0-9][0-9][0-9][0-9].h5 dtypes1.h5 dtypes2.h5 \
|
1999-08-18 03:12:59 +08:00
|
|
|
tattr.h5 tselect.h5 mtime.h5 ragged.h5 unlink.h5 overhead.h5 \
|
|
|
|
fillval_[0-9].h5 fillval.raw mount_[0-9].h5 trefer[12].h5 \
|
2000-05-19 03:13:33 +08:00
|
|
|
tvltypes.h5 tvlstr.h5 flush.h5 enum1.h5 titerate.h5 ttsafe.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
|
|
|
|
1999-08-18 03:12:59 +08:00
|
|
|
TEST_SRC=big.c bittests.c chunk.c cmpd_dset.c dsets.c dtypes.c extend.c \
|
2000-04-13 23:17:14 +08:00
|
|
|
external.c fillval.c flush1.c flush2.c gheap.c h5test.c hyperslab.c \
|
|
|
|
iopipe.c istore.c lheap.c links.c mount.c mtime.c ohdr.c overhead.c \
|
2000-04-14 01:03:59 +08:00
|
|
|
ragged.c stab.c tattr.c testhdf5.c tfile.c th5s.c titerate.c tmeta.c \
|
2000-05-09 07:09:09 +08:00
|
|
|
trefer.c tselect.c ttbbt.c tvltypes.c tvlstr.c unlink.c enum.c \
|
2000-05-19 03:13:33 +08:00
|
|
|
ttsafe.c ttsafe_dcreate.c ttsafe_error.c ttsafe_cancel.c \
|
|
|
|
ttsafe_acreate.c \
|
2000-05-09 07:09:09 +08:00
|
|
|
gass_write.c gass_read.c gass_append.c dpss_read.c dpss_write.c \
|
|
|
|
srb_read.c srb_write.c srb_append.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
|
|
|
|
2000-05-09 07:09:09 +08:00
|
|
|
TESTHDF5_OBJ=testhdf5.lo tattr.lo tfile.lo titerate.lo tmeta.lo trefer.lo tselect.lo ttbbt.lo tvltypes.lo tvlstr.lo th5s.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
|
|
|
iopipe: iopipe.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ iopipe.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-03-14 01:50:38 +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
|
|
|
chunk: chunk.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ chunk.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-05-22 23:05:53 +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
|
|
|
ragged: ragged.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ ragged.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-08-28 23:24:12 +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
|
|
|
overhead: overhead.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ overhead.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1998-10-01 02:50:49 +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
|
|
|
|
1999-12-22 06:17:55 +08:00
|
|
|
dpss_read: dpss_read.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ dpss_read.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1999-12-22 06:17:55 +08:00
|
|
|
|
|
|
|
dpss_write: dpss_write.lo
|
2000-09-12 15:55:38 +08:00
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ dpss_write.lo $(LIB) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
1999-12-22 06:17:55 +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
|
|
|
|
1997-08-16 00:54:08 +08:00
|
|
|
@CONCLUDE@
|
2000-05-19 03:13:33 +08:00
|
|
|
|