summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-09-26 14:18:28 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-09-26 14:18:28 (GMT)
commit5884b869155616ad96892ef64c91ed9e975181c7 (patch)
tree52209a8246a624daa8665b6a3fed23c97a1d5881
parent45a7ae09d2c9651cabb09b3786cb067d8016194a (diff)
downloadhdf5-5884b869155616ad96892ef64c91ed9e975181c7.zip
hdf5-5884b869155616ad96892ef64c91ed9e975181c7.tar.gz
hdf5-5884b869155616ad96892ef64c91ed9e975181c7.tar.bz2
[svn-r4478] Purpose:
New feature. Description: Added a test to verify the correctness of information provided by configure in H5config.h. Some information, such as SIZEOF some types can be hardcoded by config/<machine>. This test verified the information is indeed correct. Currenly, only size of C language types are verified. Platforms tested: eirene. (Same code has been tested in v1.5)
-rw-r--r--test/Makefile.in12
-rw-r--r--test/testhdf5.c1
-rw-r--r--test/testhdf5.h2
3 files changed, 9 insertions, 6 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index bd095f4..15fdb4b 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -43,7 +43,7 @@ MOSTLYCLEAN=cmpd_dset.h5 dataset.h5 extend.h5 istore.h5 tfile1.h5 tfile2.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 gheap2.h5 gheap3.h5 gheap4.h5 links.h5 \
+ gheap1.h5 gheap2.h5 gheap3.h5 gheap4.h5 links.h5 \
big.data big[0-9][0-9][0-9][0-9][0-9].h5 dtypes1.h5 dtypes2.h5 \
tattr.h5 tselect.h5 mtime.h5 unlink.h5 \
fillval_[0-9].h5 fillval.raw mount_[0-9].h5 testmeta.h5 \
@@ -58,8 +58,8 @@ CLEAN=$(TIMINGS)
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 testhdf5.c testmeta.c tfile.c tgenprop.c th5s.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 \
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 dpss_read.c \
@@ -83,9 +83,9 @@ timings _timings: $(TIMINGS)
## How to build the tests... They all depend on the test and hdf5 libraries.
$(TEST_PROGS): $(LIB) $(LIBHDF5)
-TESTHDF5_OBJ=testhdf5.lo tarray.lo tattr.lo tfile.lo tgenprop.lo th5s.lo \
- titerate.lo tmeta.lo ttime.lo trefer.lo tselect.lo ttbbt.lo tvltypes.lo \
- tvlstr.lo
+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 \
+ tvltypes.lo tvlstr.lo
TTS_OBJ=ttsafe.lo ttsafe_dcreate.lo ttsafe_error.lo ttsafe_cancel.lo \
ttsafe_acreate.lo
diff --git a/test/testhdf5.c b/test/testhdf5.c
index b7cd79f..798c3ee 100644
--- a/test/testhdf5.c
+++ b/test/testhdf5.c
@@ -156,6 +156,7 @@ main(int argc, char *argv[])
H5Eset_auto (NULL, NULL);
/* Tests are generally arranged from least to most complexity... */
+ InitTest("configure", test_configure, cleanup_configure, "Configure definitions");
InitTest("metadata", test_metadata, cleanup_metadata, "Encode/decode metadata code");
InitTest("tbbt", test_tbbt, NULL, "Threaded, Balanced, Binary Trees");
InitTest("file", test_file, cleanup_file, "Low-Level File I/O");
diff --git a/test/testhdf5.h b/test/testhdf5.h
index d60c229..ff79e75 100644
--- a/test/testhdf5.h
+++ b/test/testhdf5.h
@@ -134,6 +134,7 @@ void test_vlstrings(void);
void test_iterate(void);
void test_array(void);
void test_genprop(void);
+void test_configure(void);
/* Prototypes for the cleanup routines */
void cleanup_metadata(void);
@@ -148,5 +149,6 @@ void cleanup_vlstrings(void);
void cleanup_iterate(void);
void cleanup_array(void);
void cleanup_genprop(void);
+void cleanup_configure(void);
#endif /* HDF5cleanup_H */