From 7a4d4b9aa2d54be49b7447104015cf366fd8e0a6 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 11 Nov 2000 19:10:08 -0500 Subject: [svn-r2872] Purpose: Code update Description: Added stub for generic property testing, although it doesn't do anything yet. Platforms tested: FreeBSD 4.1.1 (hawkwind) --- test/Makefile.in | 13 ++++++----- test/testhdf5.c | 1 + test/testhdf5.h | 2 ++ test/tgenprop.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+), 6 deletions(-) create mode 100644 test/tgenprop.c diff --git a/test/Makefile.in b/test/Makefile.in index a6108bf..257170b 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -48,7 +48,7 @@ MOSTLYCLEAN=cmpd_dset.h5 dataset.h5 extend.h5 istore.h5 tfile1.h5 tfile2.h5 \ tattr.h5 tselect.h5 mtime.h5 ragged.h5 unlink.h5 overhead.h5 \ fillval_[0-9].h5 fillval.raw mount_[0-9].h5 ttime.h5 trefer[12].h5 \ tvltypes.h5 tvlstr.h5 flush.h5 enum1.h5 titerate.h5 ttsafe.h5 \ - tarray1.h5 + tarray1.h5 tgenprop.h5 CLEAN=$(TIMINGS) ## Source and object files for programs... The TEST_SRC list contains all the @@ -59,9 +59,9 @@ CLEAN=$(TIMINGS) TEST_SRC=big.c bittests.c chunk.c cmpd_dset.c dsets.c dtypes.c extend.c \ 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 \ - ragged.c stab.c tarray.c tattr.c testhdf5.c tfile.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 \ + ragged.c stab.c tarray.c tattr.c testhdf5.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 \ dpss_write.c srb_read.c srb_write.c srb_append.c stream_test.c @@ -83,8 +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 titerate.lo tmeta.lo \ - ttime.lo trefer.lo tselect.lo ttbbt.lo tvltypes.lo tvlstr.lo th5s.lo +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 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 51b6ef3..e206046 100644 --- a/test/testhdf5.c +++ b/test/testhdf5.c @@ -174,6 +174,7 @@ main(int argc, char *argv[]) InitTest("vlstrings", test_vlstrings, cleanup_vlstrings, "Variable-Length Strings"); InitTest("iterate", test_iterate, cleanup_iterate, "Group & Attribute Iteration"); InitTest("array", test_array, cleanup_array, "Array Datatypes"); + InitTest("genprop", test_genprop, cleanup_genprop, "Generic Properties"); Verbosity = 4; /* Default Verbosity is Low */ H5get_libversion(&major, &minor, &release); diff --git a/test/testhdf5.h b/test/testhdf5.h index ae2ccc6..7e6c9c6 100644 --- a/test/testhdf5.h +++ b/test/testhdf5.h @@ -131,6 +131,7 @@ void test_vltypes(void); void test_vlstrings(void); void test_iterate(void); void test_array(void); +void test_genprop(void); /* Prototypes for the cleanup routines */ void cleanup_metadata(void); @@ -144,5 +145,6 @@ void cleanup_vltypes(void); void cleanup_vlstrings(void); void cleanup_iterate(void); void cleanup_array(void); +void cleanup_genprop(void); #endif /* HDF5cleanup_H */ diff --git a/test/tgenprop.c b/test/tgenprop.c new file mode 100644 index 0000000..ecd170c --- /dev/null +++ b/test/tgenprop.c @@ -0,0 +1,68 @@ +/**************************************************************************** + * NCSA HDF * + * Software Development Group * + * National Center for Supercomputing Applications * + * University of Illinois at Urbana-Champaign * + * 605 E. Springfield, Champaign IL 61820 * + * * + * For conditions of distribution and use, see the accompanying * + * hdf/COPYING file. * + * * + ****************************************************************************/ + +#ifdef RCSID +static char RcsId[] = "$Revision$"; +#endif + +/* $Id$ */ + +/*********************************************************** +* +* Test program: tgenprop +* +* Test the Generic Property functionality +* +*************************************************************/ + +#include + +#include + +#define FILENAME "tgenprop.h5" + +/**************************************************************** +** +** test_genprop(): Main generic property testing routine. +** +****************************************************************/ +void +test_genprop(void) +{ + /* Output message about test being performed */ + MESSAGE(5, ("Testing Generic Properties\n")); + + /* These tests use the same file... */ + +} /* test_genprop() */ + + +/*------------------------------------------------------------------------- + * Function: cleanup_genprop + * + * Purpose: Cleanup temporary test files + * + * Return: none + * + * Programmer: Quincey Koziol + * June 8, 1999 + * + * Modifications: + * + *------------------------------------------------------------------------- + */ +void +cleanup_genprop(void) +{ + remove(FILENAME); +} + -- cgit v0.12