summaryrefslogtreecommitdiffstats
path: root/test/h5test.h
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-01-05 21:58:37 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-01-05 21:58:37 (GMT)
commitdc458e5f6f7f4ea69644653aa3f348d2f6eb9d53 (patch)
treea5757b2575f4116a6470d242a94c5a612b1e7924 /test/h5test.h
parente076771380e248497a7dd8eac37319a030c99db6 (diff)
downloadhdf5-dc458e5f6f7f4ea69644653aa3f348d2f6eb9d53.zip
hdf5-dc458e5f6f7f4ea69644653aa3f348d2f6eb9d53.tar.gz
hdf5-dc458e5f6f7f4ea69644653aa3f348d2f6eb9d53.tar.bz2
[svn-r8017] Purpose:
Code reorg. Description: Move the InitTest() from individual tests (testhdf5 and ttsafe) to libh5test (h5test.c) so that it can be shared among all tests. Platforms tested: Only tested in Eirene via serial with thread-safe enabled. No other platforms test since this is pretty trivial.
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 5084c6f..acaa197 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 50
+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" {
@@ -74,6 +89,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);