summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-01-24 23:04:22 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-01-24 23:04:22 (GMT)
commitd5fb4dfcef8ae9a3f6194f3dbb4177f8d7b62df9 (patch)
tree74d550a4cf09e2cd720799acdb317649688179ca /testpar/testphdf5.c
parentea84a9d78ba977bb02cce46f7602bba058269425 (diff)
downloadhdf5-d5fb4dfcef8ae9a3f6194f3dbb4177f8d7b62df9.zip
hdf5-d5fb4dfcef8ae9a3f6194f3dbb4177f8d7b62df9.tar.gz
hdf5-d5fb4dfcef8ae9a3f6194f3dbb4177f8d7b62df9.tar.bz2
[svn-r8111] Purpose:
Improvement Description: Changed parsing of verbose level by the common test library routine. Change t_mpi.c to use the Verbose control better. Platforms tested: verena (pp). Misc. update:
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r--testpar/testphdf5.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index 5c99f66..13b391f 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -117,7 +117,7 @@ int MPI_Init(int *argc, char ***argv)
static void
usage(void)
{
- printf("Usage: testphdf5 [-r] [-w] [-v] [-m<n_datasets>] [-n<n_groups>] "
+ printf("Usage: testphdf5 [-r] [-w] [-v<verbosity>] [-m<n_datasets>] [-n<n_groups>] "
"[-o] [-f <prefix>] [-d <dim0> <dim1>]\n");
printf("\t-r\t\tno read test\n");
printf("\t-w\t\tno write test\n");
@@ -128,7 +128,7 @@ usage(void)
printf("\t-o\t\tno compact dataset test\n");
printf("\t-i\t\tno independent read test\n");
printf("\t-b\t\trun big dataset test\n");
- printf("\t-v\t\tverbose on\n");
+ printf("\t-v<verbosity>\tset verbose level (0-9,l,m,h)\n");
printf("\t-f <prefix>\tfilename prefix\n");
printf("\t-s\t\tuse Split-file together with MPIO\n");
printf("\t-p\t\tuse combo MPI-POSIX driver\n");
@@ -182,7 +182,10 @@ parse_options(int argc, char **argv)
break;
case 'b': dobig = 1;
break;
- case 'v': SetTestVerbosity(VERBO_MED);
+ case 'v': if (*((*argv+1)+1))
+ ParseTestVerbosity((*argv+1)+1);
+ else
+ SetTestVerbosity(VERBO_MED);
break;
case 'f': if (--argc < 1) {
nerrors++;