major changes in preparations for 1.6 release: will add details to CHANGES
This commit is contained in:
+70
@@ -0,0 +1,70 @@
|
||||
#include <stdlib.h>
|
||||
#include <H5Part.h>
|
||||
|
||||
#include "testframe.h"
|
||||
#include "params.h"
|
||||
|
||||
/* from write.c */
|
||||
void test_write1(void);
|
||||
void test_write2(void);
|
||||
void test_write3(void);
|
||||
void test_write4(void);
|
||||
|
||||
/* from read.c */
|
||||
void test_read1(void);
|
||||
void test_read2(void);
|
||||
void test_read3(void);
|
||||
void test_read4(void);
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
#ifdef PARALLEL_IO
|
||||
MPI_Init(&argc, &argv);
|
||||
int procs;
|
||||
MPI_Comm_size(MPI_COMM_WORLD, &procs);
|
||||
if (procs > MAX_MPI_TASKS) {
|
||||
fprintf(stderr, "ERROR: please use <= %d MPI tasks for the test.",
|
||||
MAX_MPI_TASKS);
|
||||
MPI_Abort(MPI_COMM_WORLD, -1);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize testing framework */
|
||||
TestInit(argv[0], NULL, NULL);
|
||||
|
||||
/* Tests are generally arranged from least to most complexity... */
|
||||
AddTest("write1", test_write1, NULL, "Write 32-bit data", NULL);
|
||||
AddTest("read1", test_read1, NULL, "Read 32-bit data", NULL);
|
||||
AddTest("write2", test_write2, NULL, "Write 32-bit strided data", NULL);
|
||||
AddTest("read2", test_read2, NULL, "Read 32-bit strided data", NULL);
|
||||
AddTest("write3", test_write3, NULL, "Write 64-bit strided data", NULL);
|
||||
AddTest("read3", test_read3, NULL, "Read 64-bit strided data", NULL);
|
||||
AddTest("write4", test_write4, NULL, "Write 64-bit data", NULL);
|
||||
AddTest("read4", test_read4, NULL, "Read 64-bit data", NULL);
|
||||
|
||||
/* Display testing information */
|
||||
TestInfo(argv[0]);
|
||||
|
||||
/* Parse command line arguments */
|
||||
TestParseCmdLine(argc, argv);
|
||||
|
||||
H5PartSetVerbosityLevel(GetTestVerbosity());
|
||||
|
||||
/* Perform requested testing */
|
||||
PerformTests();
|
||||
|
||||
/* Display test summary, if requested */
|
||||
if (GetTestSummary())
|
||||
TestSummary();
|
||||
|
||||
/* Clean up test files, if allowed */
|
||||
//if (GetTestCleanup() && !getenv("HDF5_NOCLEANUP"))
|
||||
// TestCleanup();
|
||||
|
||||
//return GetTestNumErrs();
|
||||
|
||||
#ifdef PARALLEL_IO
|
||||
return MPI_Finalize();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user