summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-12-25 22:52:39 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-12-25 22:52:39 (GMT)
commit3043f95b2946d6c77f035da42773a5422322b3c2 (patch)
tree56429930afdb757c9258df0d2c7a9172c6226e88 /testpar/testphdf5.c
parent41e958a30ffd23fd62945e100b812c0831a16b58 (diff)
downloadhdf5-3043f95b2946d6c77f035da42773a5422322b3c2.zip
hdf5-3043f95b2946d6c77f035da42773a5422322b3c2.tar.gz
hdf5-3043f95b2946d6c77f035da42773a5422322b3c2.tar.bz2
[svn-r7979] Purpose:
Feature. Description: Added the short_dataset test (was in v1.6 first.) Platforms tested: Tested in eirene (pp) only since these have been tested in v1.6 already. Misc. update:
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r--testpar/testphdf5.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index 436cccb..8394db4 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -45,9 +45,10 @@ int dowrite=1; /* write test */
int docompact=1; /* compact dataset test */
int doindependent=1; /* independent test */
unsigned dobig=0; /* "big" dataset tests */
+unsigned doshort=1; /* "short" dataset tests */
/* FILENAME and filenames must have the same number of names */
-const char *FILENAME[9]={
+const char *FILENAME[10]={
"ParaEg1",
"ParaEg2",
"ParaEg3",
@@ -56,8 +57,9 @@ const char *FILENAME[9]={
"ParaCompact",
"ParaIndividual",
"ParaBig",
+ "ParaShort",
NULL};
-char filenames[9][PATH_MAX];
+char filenames[10][PATH_MAX];
hid_t fapl; /* file access property list */
#ifdef USE_PAUSE
@@ -128,6 +130,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-S\t\tno short dataset test\n");
printf("\t-v\t\tverbose on\n");
printf("\t-f <prefix>\tfilename prefix\n");
printf("\t-s\t\tuse Split-file together with MPIO\n");
@@ -225,6 +228,8 @@ parse_options(int argc, char **argv)
break;
case 'h': /* print help message--return with nerrors set */
return(1);
+ case 'S': doshort = 0;
+ break;
default: nerrors++;
return(1);
}
@@ -479,7 +484,15 @@ int main(int argc, char **argv)
MPI_BANNER("big dataset test skipped");
}
- if (!(dowrite || doread || ndatasets || ngroups || docompact || doindependent || dobig)){
+ if (doshort) {
+ MPI_BANNER("short dataset test...");
+ short_dataset(filenames[8]);
+ }
+ else {
+ MPI_BANNER("short dataset test skipped");
+ }
+
+ if (!(dowrite || doread || ndatasets || ngroups || docompact || doindependent || dobig || doshort)){
usage();
nerrors++;
}