summaryrefslogtreecommitdiffstats
path: root/test/h5test.h
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-01-06 02:49:01 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-01-06 02:49:01 (GMT)
commit83c7a8dfaa7a83b462a92f8b449ed73a92d26610 (patch)
tree124bceadf0b6d04fc56c13d587dc6335139d121c /test/h5test.h
parent31dc73ffcc4d8d5f5f91c0087b13eaed85afd732 (diff)
downloadhdf5-83c7a8dfaa7a83b462a92f8b449ed73a92d26610.zip
hdf5-83c7a8dfaa7a83b462a92f8b449ed73a92d26610.tar.gz
hdf5-83c7a8dfaa7a83b462a92f8b449ed73a92d26610.tar.bz2
[svn-r8019] Purpose:
Feature Description: Moved the InitTest from individual tests (testhdf5.c, ttsafe.c) to libh5test (h5test.*) so that it can be used by other tests too. Platforms tested: "h5committested"
Diffstat (limited to 'test/h5test.h')
-rw-r--r--test/h5test.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/h5test.h b/test/h5test.h
index 2cdf217..df73952 100644
--- a/test/h5test.h
+++ b/test/h5test.h
@@ -62,6 +62,21 @@ extern MPI_Info h5_io_info_g; /* MPI INFO object for IO */
#define SKIPPED() {puts(" -SKIP-");fflush(stdout);}
#define TEST_ERROR {H5_FAILED(); AT(); goto error;}
+/*
+ * Definitions for the InitTest().
+ */
+#define MAXNUMOFTESTS 30
+extern int Index;
+typedef struct TestStruct {
+ int NumErrors;
+ char Description[64];
+ int SkipFlag;
+ char Name[16];
+ void (*Call)(void);
+ void (*Cleanup)(void);
+} TestStruct;
+extern TestStruct Test[];
+
#ifdef __cplusplus
extern "C" {
@@ -75,6 +90,8 @@ H5TEST_DLL hid_t h5_fileaccess(void);
H5TEST_DLL void h5_no_hwconv(void);
H5TEST_DLL void h5_reset(void);
H5TEST_DLL void h5_show_hostname(void);
+H5TEST_DLL void InitTest(const char *TheName, void (*TheCall) (void),
+ void (*Cleanup) (void), const char *TheDescr);
#ifdef H5_HAVE_PARALLEL
int h5_set_info_object(void);
void h5_dump_info_object(MPI_Info info);