mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
[svn-r17518] Description:
Bring most of Vailin's changes to the fixed array data structure back to the trunk, including new regression test for data structure. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) 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, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.5.8 (amazon) in debug mode Mac OS X/32 10.5.8 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
This commit is contained in:
parent
d67bb5f130
commit
74c6507d9f
7
MANIFEST
7
MANIFEST
@ -824,6 +824,7 @@
|
||||
./test/family_v16_00001.h5
|
||||
./test/family_v16_00002.h5
|
||||
./test/family_v16_00003.h5
|
||||
./test/farray.c
|
||||
./test/fheap.c
|
||||
./test/freespace.c
|
||||
./test/fill_old.h5
|
||||
@ -1512,16 +1513,16 @@
|
||||
./tools/h5diff/testfiles/h5diff_207.txt
|
||||
|
||||
|
||||
./tools/h5diff/testfiles/h5diff_attr1.h5
|
||||
./tools/h5diff/testfiles/h5diff_attr2.h5
|
||||
./tools/h5diff/testfiles/h5diff_basic1.h5
|
||||
./tools/h5diff/testfiles/h5diff_basic2.h5
|
||||
./tools/h5diff/testfiles/h5diff_dtypes.h5
|
||||
./tools/h5diff/testfiles/h5diff_dset1.h5
|
||||
./tools/h5diff/testfiles/h5diff_dset2.h5
|
||||
./tools/h5diff/testfiles/h5diff_dtypes.h5
|
||||
./tools/h5diff/testfiles/h5diff_empty.h5
|
||||
./tools/h5diff/testfiles/h5diff_hyper1.h5
|
||||
./tools/h5diff/testfiles/h5diff_attr1.h5
|
||||
./tools/h5diff/testfiles/h5diff_hyper2.h5
|
||||
./tools/h5diff/testfiles/h5diff_attr2.h5
|
||||
./tools/h5diff/testfiles/h5diff_types.h5
|
||||
|
||||
|
||||
|
2
configure
vendored
2
configure
vendored
@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.in Id: configure.in 17446 2009-09-03 18:02:46Z lrknox .
|
||||
# From configure.in Id: configure.in 17502 2009-09-21 05:28:44Z acheng .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.64 for HDF5 1.9.46.
|
||||
#
|
||||
|
22
src/H5FA.c
22
src/H5FA.c
@ -361,16 +361,16 @@ HDfprintf(stderr, "%s: fixed array data block address not defined!\n", FUNC, idx
|
||||
else { /* paging */
|
||||
size_t page_idx; /* Index of page within data block */
|
||||
size_t dblk_page_nelmts; /* # of elements in a data block page */
|
||||
hsize_t elmt_idx; /* Element index within the page */
|
||||
size_t elmt_idx; /* Element index within the page */
|
||||
haddr_t dblk_page_addr; /* Address of data block page */
|
||||
|
||||
/* Compute the page & element index */
|
||||
page_idx = (size_t)idx / dblock->dblk_page_nelmts;
|
||||
elmt_idx = (size_t)idx % dblock->dblk_page_nelmts;
|
||||
page_idx = (size_t)(idx / dblock->dblk_page_nelmts);
|
||||
elmt_idx = (size_t)(idx % dblock->dblk_page_nelmts);
|
||||
|
||||
/* Get the address of the data block page */
|
||||
dblk_page_addr = dblock->addr + H5FA_DBLOCK_PREFIX_SIZE(dblock) +
|
||||
(page_idx * dblock->dblk_page_size);
|
||||
((hsize_t)page_idx * dblock->dblk_page_size);
|
||||
|
||||
/* Check for using last page, to set the number of elements on the page */
|
||||
if((page_idx + 1) == dblock->npages)
|
||||
@ -378,7 +378,7 @@ HDfprintf(stderr, "%s: fixed array data block address not defined!\n", FUNC, idx
|
||||
else
|
||||
dblk_page_nelmts = dblock->dblk_page_nelmts;
|
||||
|
||||
/* Check if the page has been create yet */
|
||||
/* Check if the page has been created yet */
|
||||
if(!H5V_bit_get(dblock->dblk_page_init, page_idx)) {
|
||||
/* Create the data block page */
|
||||
if(H5FA__dblk_page_create(hdr, dxpl_id, dblk_page_addr, dblk_page_nelmts) < 0)
|
||||
@ -468,7 +468,7 @@ HDfprintf(stderr, "%s: Index %Hu\n", FUNC, idx);
|
||||
size_t page_idx; /* Index of page within data block */
|
||||
|
||||
/* Compute the page index */
|
||||
page_idx = (size_t)idx / dblock->dblk_page_nelmts;
|
||||
page_idx = (size_t)(idx / dblock->dblk_page_nelmts);
|
||||
|
||||
/* Check if the page is defined yet */
|
||||
if(!H5V_bit_get(dblock->dblk_page_init, page_idx)) {
|
||||
@ -480,15 +480,15 @@ HDfprintf(stderr, "%s: Index %Hu\n", FUNC, idx);
|
||||
H5_LEAVE(SUCCEED)
|
||||
} /* end if */
|
||||
else { /* get the page */
|
||||
hsize_t elmt_idx; /* Element index within the page */
|
||||
haddr_t dblk_page_addr; /* Address of data block page */
|
||||
size_t dblk_page_nelmts; /* # of elements in a data block page */
|
||||
size_t dblk_page_nelmts; /* # of elements in a data block page */
|
||||
size_t elmt_idx; /* Element index within the page */
|
||||
haddr_t dblk_page_addr; /* Address of data block page */
|
||||
|
||||
/* Compute the element index */
|
||||
elmt_idx = (size_t)idx % dblock->dblk_page_nelmts;
|
||||
elmt_idx = (size_t)(idx % dblock->dblk_page_nelmts);
|
||||
|
||||
/* Compute the address of the data block */
|
||||
dblk_page_addr = dblock->addr + H5FA_DBLOCK_PREFIX_SIZE(dblock) + (page_idx * dblock->dblk_page_size);
|
||||
dblk_page_addr = dblock->addr + H5FA_DBLOCK_PREFIX_SIZE(dblock) + ((hsize_t)page_idx * dblock->dblk_page_size);
|
||||
|
||||
/* Check for using last page, to set the number of elements on the page */
|
||||
if((page_idx + 1) == dblock->npages)
|
||||
|
@ -230,6 +230,25 @@ H5FA__cache_hdr_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void *_cls,
|
||||
hdr->stats.nelmts = hdr->cparam.nelmts;
|
||||
hdr->stats.hdr_size = hdr->size = size; /* Size of header in file */
|
||||
|
||||
/* Check for data block */
|
||||
if(H5F_addr_defined(hdr->dblk_addr)) {
|
||||
H5FA_dblock_t dblock; /* Fake data block for computing size */
|
||||
size_t dblk_page_nelmts; /* # of elements per data block page */
|
||||
|
||||
/* Set up fake data block for computing size on disk */
|
||||
dblock.hdr = hdr;
|
||||
dblock.dblk_page_init_size = 0;
|
||||
dblock.npages = 0;
|
||||
dblk_page_nelmts = (size_t)1 << hdr->cparam.max_dblk_page_nelmts_bits;
|
||||
if(hdr->cparam.nelmts > dblk_page_nelmts) {
|
||||
dblock.npages = (size_t)(((hdr->cparam.nelmts + dblk_page_nelmts) - 1) / dblk_page_nelmts);
|
||||
dblock.dblk_page_init_size = (dblock.npages + 7) / 8;
|
||||
} /* end if */
|
||||
|
||||
/* Compute Fixed Array data block size for hdr statistics */
|
||||
hdr->stats.dblk_size = (size_t)H5FA_DBLOCK_SIZE(&dblock);
|
||||
} /* end if */
|
||||
|
||||
/* Sanity check */
|
||||
/* (allow for checksum not decoded yet) */
|
||||
HDassert((size_t)(p - buf) == (size - H5FA_SIZEOF_CHKSUM));
|
||||
|
@ -53,13 +53,6 @@
|
||||
/* Local Typedefs */
|
||||
/******************/
|
||||
|
||||
/* Fixed array create/open user data */
|
||||
typedef struct ctx_ud_t {
|
||||
const H5F_t *f; /* Pointer to file info */
|
||||
const H5O_layout_t *layout; /* Pointer to layout info */
|
||||
} ctx_ud_t;
|
||||
|
||||
|
||||
/********************/
|
||||
/* Package Typedefs */
|
||||
/********************/
|
||||
@ -105,9 +98,7 @@ H5FA__hdr_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent,
|
||||
|
||||
/* Local variables */
|
||||
H5FA_hdr_t *hdr = NULL; /* Shared fixed array header */
|
||||
H5O_loc_t obj_loc; /* Pointer to an object's location */
|
||||
H5O_layout_t layout; /* Layout message */
|
||||
ctx_ud_t udata; /* User data */
|
||||
void *dbg_ctx = NULL; /* Fixed array debugging context */
|
||||
|
||||
/* Check arguments */
|
||||
HDassert(f);
|
||||
@ -118,28 +109,15 @@ H5FA__hdr_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent,
|
||||
HDassert(fwidth >= 0);
|
||||
HDassert(cls);
|
||||
|
||||
H5O_loc_reset(&obj_loc);
|
||||
obj_loc.file = f;
|
||||
obj_loc.addr = obj_addr;
|
||||
|
||||
/* Open the object header where the layout message resides */
|
||||
if(H5O_open(&obj_loc) < 0)
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to open object header")
|
||||
|
||||
/* Read the layout message */
|
||||
if(NULL == H5O_msg_read(&obj_loc, H5O_LAYOUT_ID, &layout, dxpl_id))
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to read layout message")
|
||||
|
||||
/* close the object header */
|
||||
if(H5O_close(&obj_loc) < 0)
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to close object header")
|
||||
|
||||
/* Create user data */
|
||||
udata.f = f;
|
||||
udata.layout = &layout;
|
||||
/* Check for debugging context callback available */
|
||||
if(cls->crt_dbg_ctx) {
|
||||
/* Create debugging context */
|
||||
if(NULL == (dbg_ctx = cls->crt_dbg_ctx(f, dxpl_id, obj_addr)))
|
||||
H5E_THROW(H5E_CANTGET, "unable to create fixed array debugging context")
|
||||
} /* end if */
|
||||
|
||||
/* Load the fixed array header */
|
||||
if(NULL == (hdr = (H5FA_hdr_t *)H5AC_protect(f, dxpl_id, H5AC_FARRAY_HDR, addr, cls, &udata, H5AC_READ)))
|
||||
if(NULL == (hdr = (H5FA_hdr_t *)H5AC_protect(f, dxpl_id, H5AC_FARRAY_HDR, addr, cls, dbg_ctx, H5AC_READ)))
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to load fixed array header")
|
||||
|
||||
/* Print opening message */
|
||||
@ -170,6 +148,8 @@ H5FA__hdr_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent,
|
||||
"Fixed Array Data Block Address:", hdr->dblk_addr);
|
||||
|
||||
CATCH
|
||||
if(dbg_ctx && cls->dst_dbg_ctx(dbg_ctx) < 0)
|
||||
H5E_THROW(H5E_CANTRELEASE, "unable to release fixed array debugging context")
|
||||
if(hdr && H5AC_unprotect(f, dxpl_id, H5AC_FARRAY_HDR, addr, hdr, H5AC__NO_FLAGS_SET) < 0)
|
||||
H5E_THROW(H5E_CANTUNPROTECT, "unable to release fixed array header")
|
||||
|
||||
@ -197,10 +177,8 @@ H5FA__dblock_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int inde
|
||||
/* Local variables */
|
||||
H5FA_hdr_t *hdr = NULL; /* Shared fixed array header */
|
||||
H5FA_dblock_t *dblock = NULL; /* Fixed array data block */
|
||||
void *dbg_ctx = NULL; /* Fixed array context */
|
||||
size_t u; /* Local index variable */
|
||||
H5O_loc_t obj_loc; /* Pointer to an object's location */
|
||||
H5O_layout_t layout; /* Layout message */
|
||||
ctx_ud_t udata; /* User data */
|
||||
|
||||
/* Check arguments */
|
||||
HDassert(f);
|
||||
@ -212,28 +190,15 @@ H5FA__dblock_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int inde
|
||||
HDassert(H5F_addr_defined(hdr_addr));
|
||||
HDassert(H5F_addr_defined(obj_addr));
|
||||
|
||||
H5O_loc_reset(&obj_loc);
|
||||
obj_loc.file = f;
|
||||
obj_loc.addr = obj_addr;
|
||||
|
||||
/* Open the object header where the layout message resides */
|
||||
if(H5O_open(&obj_loc) < 0)
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to open object header")
|
||||
|
||||
/* Read the layout message */
|
||||
if(NULL == H5O_msg_read(&obj_loc, H5O_LAYOUT_ID, &layout, dxpl_id))
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to read layout message")
|
||||
|
||||
/* close the object header */
|
||||
if(H5O_close(&obj_loc) < 0)
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to close object header")
|
||||
|
||||
/* Create user data */
|
||||
udata.f = f;
|
||||
udata.layout = &layout;
|
||||
/* Check for debugging context callback available */
|
||||
if(cls->crt_dbg_ctx) {
|
||||
/* Create debugging context */
|
||||
if(NULL == (dbg_ctx = cls->crt_dbg_ctx(f, dxpl_id, obj_addr)))
|
||||
H5E_THROW(H5E_CANTGET, "unable to create fixed array debugging context")
|
||||
} /* end if */
|
||||
|
||||
/* Load the fixed array header */
|
||||
if(NULL == (hdr = (H5FA_hdr_t *)H5AC_protect(f, dxpl_id, H5AC_FARRAY_HDR, hdr_addr, cls, &udata, H5AC_READ)))
|
||||
if(NULL == (hdr = (H5FA_hdr_t *)H5AC_protect(f, dxpl_id, H5AC_FARRAY_HDR, hdr_addr, cls, dbg_ctx, H5AC_READ)))
|
||||
H5E_THROW(H5E_CANTPROTECT, "unable to load fixed array header")
|
||||
|
||||
/* Protect data block */
|
||||
@ -243,7 +208,6 @@ H5FA__dblock_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int inde
|
||||
/* Print opening message */
|
||||
HDfprintf(stream, "%*sFixed Array data Block...\n", indent, "");
|
||||
|
||||
|
||||
/* Print the values */
|
||||
HDfprintf(stream, "%*s%-*s %s\n", indent, "", fwidth,
|
||||
"Array class ID:", hdr->cparam.cls->name);
|
||||
@ -312,6 +276,8 @@ H5FA__dblock_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int inde
|
||||
} /* end else */
|
||||
|
||||
CATCH
|
||||
if(dbg_ctx && cls->dst_dbg_ctx(dbg_ctx) < 0)
|
||||
H5E_THROW(H5E_CANTRELEASE, "unable to release fixed array debugging context")
|
||||
if(dblock && H5FA__dblock_unprotect(dblock, dxpl_id, H5AC__NO_FLAGS_SET) < 0)
|
||||
H5E_THROW(H5E_CANTUNPROTECT, "unable to release fixed array data block")
|
||||
if(hdr && H5AC_unprotect(f, dxpl_id, H5AC_FARRAY_HDR, hdr_addr, hdr, H5AC__NO_FLAGS_SET) < 0)
|
||||
|
@ -167,6 +167,10 @@ HDfprintf(stderr, "%s: Called\n", FUNC);
|
||||
/* Check for valid parameters */
|
||||
if(cparam->raw_elmt_size == 0)
|
||||
H5E_THROW(H5E_BADVALUE, "element size must be greater than zero")
|
||||
if(cparam->max_dblk_page_nelmts_bits == 0)
|
||||
H5E_THROW(H5E_BADVALUE, "max. # of elements bits must be greater than zero")
|
||||
if(cparam->nelmts == 0)
|
||||
H5E_THROW(H5E_BADVALUE, "# of elements must be greater than zero")
|
||||
}
|
||||
#endif /* NDEBUG */
|
||||
|
||||
|
@ -203,7 +203,6 @@ typedef struct H5FA_dblk_page_load_ud_t {
|
||||
} H5FA_dblk_page_load_ud_t;
|
||||
|
||||
|
||||
|
||||
/*****************************/
|
||||
/* Package Private Variables */
|
||||
/*****************************/
|
||||
|
@ -70,6 +70,8 @@ typedef struct H5FA_class_t {
|
||||
herr_t (*encode)(void *raw, const void *elmt, size_t nelmts, void *ctx); /* Encode elements from native form to disk storage form */
|
||||
herr_t (*decode)(const void *raw, void *elmt, size_t nelmts, void *ctx); /* Decode elements from disk storage form to native form */
|
||||
herr_t (*debug)(FILE *stream, int indent, int fwidth, hsize_t idx, const void *elmt); /* Print an element for debugging */
|
||||
void *(*crt_dbg_ctx)(H5F_t *f, hid_t dxpl_id, haddr_t obj_addr); /* Create debugging context */
|
||||
herr_t (*dst_dbg_ctx)(void *dbg_ctx); /* Destroy debugging context */
|
||||
} H5FA_class_t;
|
||||
|
||||
/* Fixed array creation parameters */
|
||||
|
@ -134,9 +134,6 @@ H5FA__test_crt_context(void UNUSED *udata))
|
||||
/* Local variables */
|
||||
H5FA__test_ctx_t *ctx; /* Context for callbacks */
|
||||
|
||||
/* Sanity checks */
|
||||
HDassert(udata);
|
||||
|
||||
/* Allocate new context structure */
|
||||
if(NULL == (ctx = H5FL_MALLOC(H5FA__test_ctx_t)))
|
||||
H5E_THROW(H5E_CANTALLOC, "can't allocate fixed array client callback context")
|
||||
|
@ -42,7 +42,7 @@ TEST_PROG=testhdf5 lheap ohdr stab gheap cache cache_api \
|
||||
fillval mount flush1 flush2 app_ref enum \
|
||||
set_extent ttsafe \
|
||||
getname vfd ntypes dangle dtransform reserved cross_read \
|
||||
freespace mf earray btree2 fheap
|
||||
freespace mf farray earray btree2 fheap
|
||||
|
||||
# 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.
|
||||
@ -122,7 +122,8 @@ CHECK_CLEANFILES+=cmpd_dset.h5 compact_dataset.h5 dataset.h5 dset_offset.h5 \
|
||||
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 \
|
||||
unlink_chunked.h5 btree2.h5 objcopy_src.h5 objcopy_dst.h5 \
|
||||
objcopy_ext.dat trefer1.h5 trefer2.h5 app_ref.h5 earray.h5
|
||||
objcopy_ext.dat trefer1.h5 trefer2.h5 app_ref.h5 farray.h5 \
|
||||
earray.h5
|
||||
|
||||
# Sources for testhdf5 executable
|
||||
testhdf5_SOURCES=testhdf5.c tarray.c tattr.c tchecksum.c tconfig.c tfile.c \
|
||||
|
@ -85,7 +85,7 @@ am__EXEEXT_1 = testhdf5$(EXEEXT) lheap$(EXEEXT) ohdr$(EXEEXT) \
|
||||
ttsafe$(EXEEXT) getname$(EXEEXT) vfd$(EXEEXT) ntypes$(EXEEXT) \
|
||||
dangle$(EXEEXT) dtransform$(EXEEXT) reserved$(EXEEXT) \
|
||||
cross_read$(EXEEXT) freespace$(EXEEXT) mf$(EXEEXT) \
|
||||
earray$(EXEEXT) btree2$(EXEEXT) fheap$(EXEEXT)
|
||||
farray$(EXEEXT) earray$(EXEEXT) btree2$(EXEEXT) fheap$(EXEEXT)
|
||||
am__EXEEXT_2 = gen_bad_ohdr$(EXEEXT) gen_bogus$(EXEEXT) \
|
||||
gen_cross$(EXEEXT) gen_deflate$(EXEEXT) gen_filters$(EXEEXT) \
|
||||
gen_new_array$(EXEEXT) gen_new_fill$(EXEEXT) \
|
||||
@ -170,6 +170,10 @@ external_SOURCES = external.c
|
||||
external_OBJECTS = external.$(OBJEXT)
|
||||
external_LDADD = $(LDADD)
|
||||
external_DEPENDENCIES = libh5test.la $(LIBHDF5)
|
||||
farray_SOURCES = farray.c
|
||||
farray_OBJECTS = farray.$(OBJEXT)
|
||||
farray_LDADD = $(LDADD)
|
||||
farray_DEPENDENCIES = libh5test.la $(LIBHDF5)
|
||||
fheap_SOURCES = fheap.c
|
||||
fheap_OBJECTS = fheap.$(OBJEXT)
|
||||
fheap_LDADD = $(LDADD)
|
||||
@ -356,10 +360,10 @@ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||
SOURCES = $(libh5test_la_SOURCES) app_ref.c big.c bittests.c btree2.c \
|
||||
cache.c cache_api.c cmpd_dset.c cross_read.c dangle.c dsets.c \
|
||||
dt_arith.c dtransform.c dtypes.c earray.c enum.c err_compat.c \
|
||||
error_test.c extend.c external.c fheap.c fillval.c flush1.c \
|
||||
flush2.c freespace.c gen_bad_ohdr.c gen_bogus.c gen_cross.c \
|
||||
gen_deflate.c gen_filters.c gen_new_array.c gen_new_fill.c \
|
||||
gen_new_group.c gen_new_mtime.c gen_new_super.c \
|
||||
error_test.c extend.c external.c farray.c fheap.c fillval.c \
|
||||
flush1.c flush2.c freespace.c gen_bad_ohdr.c gen_bogus.c \
|
||||
gen_cross.c gen_deflate.c gen_filters.c gen_new_array.c \
|
||||
gen_new_fill.c gen_new_group.c gen_new_mtime.c gen_new_super.c \
|
||||
gen_noencoder.c gen_nullspace.c gen_udlinks.c getname.c \
|
||||
gheap.c hyperslab.c istore.c lheap.c links.c mf.c mount.c \
|
||||
mtime.c ntypes.c objcopy.c ohdr.c pool.c reserved.c \
|
||||
@ -368,7 +372,7 @@ SOURCES = $(libh5test_la_SOURCES) app_ref.c big.c bittests.c btree2.c \
|
||||
DIST_SOURCES = $(libh5test_la_SOURCES) app_ref.c big.c bittests.c \
|
||||
btree2.c cache.c cache_api.c cmpd_dset.c cross_read.c dangle.c \
|
||||
dsets.c dt_arith.c dtransform.c dtypes.c earray.c enum.c \
|
||||
err_compat.c error_test.c extend.c external.c fheap.c \
|
||||
err_compat.c error_test.c extend.c external.c farray.c fheap.c \
|
||||
fillval.c flush1.c flush2.c freespace.c gen_bad_ohdr.c \
|
||||
gen_bogus.c gen_cross.c gen_deflate.c gen_filters.c \
|
||||
gen_new_array.c gen_new_fill.c gen_new_group.c gen_new_mtime.c \
|
||||
@ -658,7 +662,7 @@ CHECK_CLEANFILES = *.chkexe *.chklog *.clog cmpd_dset.h5 \
|
||||
err_compat.h5 dtransform.h5 test_filters.h5 get_file_name.h5 \
|
||||
tstint[1-2].h5 unlink_chunked.h5 btree2.h5 objcopy_src.h5 \
|
||||
objcopy_dst.h5 objcopy_ext.dat trefer1.h5 trefer2.h5 \
|
||||
app_ref.h5 earray.h5
|
||||
app_ref.h5 farray.h5 earray.h5
|
||||
INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/src
|
||||
|
||||
# Test script for error_test and err_compat
|
||||
@ -679,7 +683,7 @@ TEST_PROG = testhdf5 lheap ohdr stab gheap cache cache_api \
|
||||
fillval mount flush1 flush2 app_ref enum \
|
||||
set_extent ttsafe \
|
||||
getname vfd ntypes dangle dtransform reserved cross_read \
|
||||
freespace mf earray btree2 fheap
|
||||
freespace mf farray earray btree2 fheap
|
||||
|
||||
|
||||
# These programs generate test files for the tests. They don't need to be
|
||||
@ -857,6 +861,9 @@ extend$(EXEEXT): $(extend_OBJECTS) $(extend_DEPENDENCIES)
|
||||
external$(EXEEXT): $(external_OBJECTS) $(external_DEPENDENCIES)
|
||||
@rm -f external$(EXEEXT)
|
||||
$(LINK) $(external_OBJECTS) $(external_LDADD) $(LIBS)
|
||||
farray$(EXEEXT): $(farray_OBJECTS) $(farray_DEPENDENCIES)
|
||||
@rm -f farray$(EXEEXT)
|
||||
$(LINK) $(farray_OBJECTS) $(farray_LDADD) $(LIBS)
|
||||
fheap$(EXEEXT): $(fheap_OBJECTS) $(fheap_DEPENDENCIES)
|
||||
@rm -f fheap$(EXEEXT)
|
||||
$(LINK) $(fheap_OBJECTS) $(fheap_LDADD) $(LIBS)
|
||||
@ -1004,6 +1011,7 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error_test.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/extend.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/external.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/farray.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fheap.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fillval.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/flush1.Po@am__quote@
|
||||
|
1659
test/farray.c
Normal file
1659
test/farray.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -72,6 +72,7 @@ am_libh5tools_la_OBJECTS = h5tools.lo h5tools_str.lo h5tools_utils.lo \
|
||||
h5diff_util.lo h5trav.lo h5tools_filters.lo h5tools_ref.lo \
|
||||
h5tools_type.lo
|
||||
libh5tools_la_OBJECTS = $(am_libh5tools_la_OBJECTS)
|
||||
am__EXEEXT_1 =
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src
|
||||
depcomp = $(SHELL) $(top_srcdir)/bin/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
@ -354,7 +355,7 @@ libh5tools_la_SOURCES = h5tools.c h5tools_str.c h5tools_utils.c h5diff.c \
|
||||
|
||||
|
||||
# Test program. Link using libhdf5 and libh5tools
|
||||
TEST_PROG =
|
||||
TEST_PROG =
|
||||
|
||||
# Name libh5tools.la so that dependencies work out. Automake knows how
|
||||
# to build 'libh5tools.la', but not '../../tools/lib/libh5tools.la'.
|
||||
|
@ -71,13 +71,6 @@ CONFIG_CLEAN_VPATH_FILES =
|
||||
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"
|
||||
am__EXEEXT_1 = h5repart_gentest$(EXEEXT) talign$(EXEEXT)
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
talign_SOURCES = talign.c
|
||||
talign_OBJECTS = talign.$(OBJEXT)
|
||||
talign_LDADD = $(LDADD)
|
||||
talign_DEPENDENCIES = $(LIBH5TOOLS) $(LIBHDF5)
|
||||
talign_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(talign_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
h5debug_SOURCES = h5debug.c
|
||||
h5debug_OBJECTS = h5debug.$(OBJEXT)
|
||||
h5debug_LDADD = $(LDADD)
|
||||
@ -107,6 +100,10 @@ repart_test_SOURCES = repart_test.c
|
||||
repart_test_OBJECTS = repart_test.$(OBJEXT)
|
||||
repart_test_LDADD = $(LDADD)
|
||||
repart_test_DEPENDENCIES = $(LIBH5TOOLS) $(LIBHDF5)
|
||||
talign_SOURCES = talign.c
|
||||
talign_OBJECTS = talign.$(OBJEXT)
|
||||
talign_LDADD = $(LDADD)
|
||||
talign_DEPENDENCIES = $(LIBH5TOOLS) $(LIBHDF5)
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user