summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-04-01 23:00:13 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-04-01 23:00:13 (GMT)
commit3756af13c77b27656f1213870f9ecc146bd85e61 (patch)
tree08cf444ef931732535787267796fcb10410138d8 /testpar/testphdf5.c
parentfbbd2b9cd26f7c291d1707e2b960b13fc7ca02d1 (diff)
downloadhdf5-3756af13c77b27656f1213870f9ecc146bd85e61.zip
hdf5-3756af13c77b27656f1213870f9ecc146bd85e61.tar.gz
hdf5-3756af13c77b27656f1213870f9ecc146bd85e61.tar.bz2
[svn-r8294] Purpose:
feature Description: Change testphdf5 to use the common test program syntax. Needed to change the protocols of all test programs to fit the requirement of the common test syntax. Platforms tested: "h5committested". Also tested in sol with PP mode.
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r--testpar/testphdf5.c90
1 files changed, 90 insertions, 0 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index 13b391f..45b1ca7 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -359,6 +359,8 @@ done:
int main(int argc, char **argv)
{
int mpi_size, mpi_rank; /* mpi variables */
+ H5Ptest_param_t ndsets_params, ngroups_params;
+ H5Ptest_param_t collngroups_params;
/* Un-buffer the stdout and stderr */
setbuf(stderr, NULL);
@@ -391,6 +393,93 @@ int main(int argc, char **argv)
"===================================\n");
}
+ {
+ int Summary = 0;
+ int CleanUp = 1;
+
+
+
+
+ /* Initialize testing framework */
+ TestInit();
+
+ /* Tests are generally arranged from least to most complexity... */
+ AddTest("mpio_dup", test_fapl_mpio_dup, NULL,
+ "fapl_mpio_dup", NULL);
+ AddTest("mpiposix_dup", test_fapl_mpiposix_dup, NULL,
+ "fapl_mpiposix_dup", NULL);
+
+ ndsets_params.name = filenames[3];
+ ndsets_params.count = ndatasets;
+ AddTest("ndatasets", multiple_dset_write, NULL,
+ "multiple datasets write", &ndsets_params);
+
+ ngroups_params.name = filenames[4];
+ ngroups_params.count = ngroups;
+ AddTest("ngroups", multiple_group_write, NULL,
+ "multiple groups write", &ngroups_params);
+ AddTest("ngroups_read", multiple_group_read, NULL,
+ "multiple groups read", &ngroups_params);
+
+ AddTest("split", test_split_comm_access, NULL,
+ "dataset using split communicators", filenames[0]);
+ AddTest("indwrite", dataset_writeInd, NULL,
+ "dataset independent write", filenames[0]);
+ AddTest("collwrite", dataset_writeAll, NULL,
+ "dataset collective write", filenames[1]);
+ AddTest("indwriteext", extend_writeInd, NULL,
+ "extendible dataset independent write", filenames[2]);
+ AddTest("collwriteext", extend_writeAll, NULL,
+ "extendible dataset collective write", filenames[2]);
+
+ AddTest("indread", dataset_readInd, NULL,
+ "dataset independent read", filenames[0]);
+ AddTest("collread", dataset_readAll, NULL,
+ "dataset collective read", filenames[1]);
+ AddTest("indreadext", extend_readInd, NULL,
+ "extendible dataset independent read", filenames[2]);
+ AddTest("collreadext", extend_readAll, NULL,
+ "extendible dataset collective read", filenames[2]);
+
+ AddTest("compact", compact_dataset, NULL,
+ "compact dataset test", filenames[5]);
+
+ collngroups_params.name = filenames[6];
+ collngroups_params.count = ngroups;
+ AddTest("coll_ngroups", collective_group_write, NULL,
+ "collective group and dataset write", &collngroups_params);
+ AddTest("indngroupsread", independent_group_read, NULL,
+ "independent group and dataset read", &collngroups_params);
+
+ if (dobig && sizeof(MPI_Offset)>4){
+ AddTest("bigdataset", big_dataset, NULL,
+ "big dataset test", filenames[7]);
+ }
+ AddTest("fillvalue", dataset_fillvalue, NULL,
+ "dataset fill value", filenames[8]);
+
+ /* Display testing information */
+ TestInfo(argv[0]);
+
+ /* Parse command line arguments */
+/* TestParseCmdLine(argc,argv,&Summary,&CleanUp); */
+
+ /* Perform requested testing */
+ PerformTests();
+
+ /* Display test summary, if requested */
+ if (Summary)
+ TestSummary();
+
+ /* Clean up test files, if allowed */
+ if (CleanUp && !getenv("HDF5_NOCLEANUP"))
+ TestCleanup();
+
+ nerrors = GetTestNumErrs();
+
+ }
+
+#if 0
MPI_BANNER("test_fapl_mpio_dup...");
test_fapl_mpio_dup();
@@ -484,6 +573,7 @@ int main(int argc, char **argv)
MPI_BANNER("dataset fill value test...");
dataset_fillvalue(filenames[8]);
+#endif
if (!(dowrite || doread || ndatasets || ngroups || docompact || doindependent || dobig )){
usage();