diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-08-19 06:32:47 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-08-19 06:32:47 (GMT) |
commit | 3c596787759d86e8f672f51e8675e93dc3f6d6dc (patch) | |
tree | 82869255fc6b1a25161147e0194cde2c71746b06 /test/h5test.h | |
parent | 3fe6ec11413f24d5dfcab5ac050c9e7312c3fd9d (diff) | |
download | hdf5-3c596787759d86e8f672f51e8675e93dc3f6d6dc.zip hdf5-3c596787759d86e8f672f51e8675e93dc3f6d6dc.tar.gz hdf5-3c596787759d86e8f672f51e8675e93dc3f6d6dc.tar.bz2 |
[svn-r9115] Purpose:
feature
Description:
Another revamp of the test interface.
TestInit: is used to register Test Program name, test program specific
Usage and option parsing routines.
TestUsage: will invoke extra usage routine if provided.
TestParseCmdLine: will invoke extra option parsing routine if provided.
GetTestSummary() and GetTestCleanup() replaces the previous Summary and
CleanUp arguments of TestParseCmdLine.
test/testhdf5, test/ttsafe.c, testpar/t_mpi.c, testpar/testphdf5.c:
All have been updated to use the new Test Routines.
testpar/t_mpi.c:
Also a fix of a compiler optimization bug when pgcc in Linux is
used to compile it. Changed buf[] and expected to unsigned char
type to avoid a bug that failed to do sign-extension.
Platforms tested:
"h5committested"
Also tested thread-safe option in eirene.
Diffstat (limited to 'test/h5test.h')
-rw-r--r-- | test/h5test.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/h5test.h b/test/h5test.h index 6713b92..886a681 100644 --- a/test/h5test.h +++ b/test/h5test.h @@ -124,13 +124,15 @@ H5TEST_DLL void AddTest(const char *TheName, void (*TheCall) (void), void (*Cleanup) (void), const char *TheDescr, const void *Parameters); H5TEST_DLL void TestInfo(const char *ProgName); -H5TEST_DLL void TestParseCmdLine(int argc, char *argv[], int *Summary, int *CleanUp, int (*extra_parse)(int ac, char *av[])); +H5TEST_DLL void TestParseCmdLine(int argc, char *argv[]); H5TEST_DLL void PerformTests(void); H5TEST_DLL void TestSummary(void); H5TEST_DLL void TestCleanup(void); -H5TEST_DLL void TestInit(void); +H5TEST_DLL void TestInit(const char *ProgName, void (*private_usage)(void), int (*private_parser)(int ac, char *av[])); H5TEST_DLL int GetTestVerbosity(void); H5TEST_DLL int SetTestVerbosity(int newval); +H5TEST_DLL int GetTestSummary(void); +H5TEST_DLL int GetTestCleanup(void); H5TEST_DLL void ParseTestVerbosity(char *argv); H5TEST_DLL int GetTestNumErrs(void); H5TEST_DLL const void *GetTestParameters(void); |