summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-04-01 23:00:11 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-04-01 23:00:11 (GMT)
commit79e7ccdd03fdec83554dc4d231642779985e1f5a (patch)
treed61d420487595c408e152a8cfb7f784b69042fad /testpar/testphdf5.c
parent44b990001fdab39ed714a7162eb0042664d43853 (diff)
downloadhdf5-79e7ccdd03fdec83554dc4d231642779985e1f5a.zip
hdf5-79e7ccdd03fdec83554dc4d231642779985e1f5a.tar.gz
hdf5-79e7ccdd03fdec83554dc4d231642779985e1f5a.tar.bz2
[svn-r8293] 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 d31593c..7000936 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -363,6 +363,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);
@@ -395,6 +397,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();
@@ -488,6 +577,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();