summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-08-13 22:06:44 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-08-13 22:06:44 (GMT)
commitcb7a720fac660eae75decca37b37086210f6b833 (patch)
tree56ca5ec662849f97ac1730d6b3cdede137b97aae /testpar/testphdf5.c
parentfa2f99e642e732753a0268cbe06fdbd6257778dc (diff)
downloadhdf5-cb7a720fac660eae75decca37b37086210f6b833.zip
hdf5-cb7a720fac660eae75decca37b37086210f6b833.tar.gz
hdf5-cb7a720fac660eae75decca37b37086210f6b833.tar.bz2
[svn-r9082] Purpose:
Feature Description: Updated to use the new syntax of TestParseCmdLine(). Platforms tested: On eirene both serial and parallel.
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r--testpar/testphdf5.c55
1 files changed, 26 insertions, 29 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index 9a3a97e..6e1a777 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -367,6 +367,8 @@ 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;
+ int Summary = 0;
+ int CleanUp = 1;
/* Un-buffer the stdout and stderr */
setbuf(stderr, NULL);
@@ -384,28 +386,6 @@ int main(int argc, char **argv)
H5open();
h5_show_hostname();
- fapl = H5Pcreate (H5P_FILE_ACCESS);
- H5Pset_fapl_mpio(fapl, MPI_COMM_WORLD, MPI_INFO_NULL);
-
- if (parse_options(argc, argv) != 0){
- if (MAINPROCESS)
- usage();
- goto finish;
- }
-
- if (facc_type == FACC_MPIPOSIX && MAINPROCESS){
- printf("===================================\n"
- " Using MPIPOSIX driver\n"
- "===================================\n");
- }
-
- {
- int Summary = 0;
- int CleanUp = 1;
-
-
-
-
/* Initialize testing framework */
TestInit();
@@ -483,16 +463,34 @@ int main(int argc, char **argv)
AddTest("coll_chunked4", coll_chunk4,NULL,
"collective to independent chunk io",filenames[12]);
- /* Argument requests */
- if (dobig && sizeof(MPI_Offset)>4){
- SetTest("bigdataset", ONLYTEST);
- }
-
/* Display testing information */
TestInfo(argv[0]);
+ /* setup file access property list */
+ fapl = H5Pcreate (H5P_FILE_ACCESS);
+ H5Pset_fapl_mpio(fapl, MPI_COMM_WORLD, MPI_INFO_NULL);
+
/* Parse command line arguments */
-/* TestParseCmdLine(argc,argv,&Summary,&CleanUp); */
+ TestParseCmdLine(argc, argv, &Summary, &CleanUp, parse_options);
+
+ /*
+ if (parse_options(argc, argv) != 0){
+ if (MAINPROCESS)
+ usage();
+ goto finish;
+ }
+ */
+
+ if (facc_type == FACC_MPIPOSIX && MAINPROCESS){
+ printf("===================================\n"
+ " Using MPIPOSIX driver\n"
+ "===================================\n");
+ }
+
+ /* Argument requests */
+ if (dobig && sizeof(MPI_Offset)>4){
+ SetTest("bigdataset", ONLYTEST);
+ }
/* Perform requested testing */
PerformTests();
@@ -507,7 +505,6 @@ int main(int argc, char **argv)
nerrors += GetTestNumErrs();
- }
if (!(dowrite || doread || ndatasets || ngroups || docompact || doindependent || dobig )){
usage();