summaryrefslogtreecommitdiffstats
path: root/test/h5test.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-01-06 17:53:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-01-06 17:53:13 (GMT)
commitce2b03097bbf2fb80db60673610e707a028645d0 (patch)
tree20178d40250fff3696bfff8b6864c011e8018562 /test/h5test.h
parent68607efcd10222ed1b1d19308d3586eb65fe3644 (diff)
downloadhdf5-ce2b03097bbf2fb80db60673610e707a028645d0.zip
hdf5-ce2b03097bbf2fb80db60673610e707a028645d0.tar.gz
hdf5-ce2b03097bbf2fb80db60673610e707a028645d0.tar.bz2
[svn-r8022] Purpose:
Code cleanup Description: Refactor library testing framework (used for the testhdf5 & ttsafe tests) to remove almost all of the duplicated code, moving the common code into a new 'testframe.c' source file. Platforms tested: FreeBSD 4.9 (sleipnir) w & w/o thread-safety h5committest
Diffstat (limited to 'test/h5test.h')
-rw-r--r--test/h5test.h32
1 files changed, 8 insertions, 24 deletions
diff --git a/test/h5test.h b/test/h5test.h
index af709b4..fac6c26 100644
--- a/test/h5test.h
+++ b/test/h5test.h
@@ -21,6 +21,8 @@
#ifndef _H5TEST_H
#define _H5TEST_H
+#include <stdarg.h>
+
#undef NDEBUG
#include "hdf5.h"
#include "H5private.h"
@@ -29,9 +31,6 @@
# include <signal.h>
#endif
-#define H5T_PACKAGE
-#include "H5Tpkg.h" /*to turn off hardware conversions*/
-
/*
* This contains the filename prefix specificied as command line option for
* the parallel test files.
@@ -62,26 +61,11 @@ 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" {
#endif
+/* Generally useful testing routines */
H5TEST_DLL int h5_cleanup(const char *base_name[], hid_t fapl);
H5TEST_DLL char *h5_fixname(const char *base_name, hid_t fapl, char *fullname,
size_t size);
@@ -89,13 +73,13 @@ 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);
+H5TEST_DLL off_t h5_get_file_size(const char *filename);
+H5TEST_DLL int print_func(const char *format, ...);
+
#ifdef H5_HAVE_PARALLEL
-int h5_set_info_object(void);
-void h5_dump_info_object(MPI_Info info);
+H5TEST_DLL int h5_set_info_object(void);
+H5TEST_DLL void h5_dump_info_object(MPI_Info info);
#endif
-H5TEST_DLL off_t h5_get_file_size(const char *filename);
#ifdef __cplusplus
}