diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2003-02-18 21:50:42 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2003-02-18 21:50:42 (GMT) |
commit | 941509ab25e444f4e66f0f9d7e355e1ecef9b245 (patch) | |
tree | f9036787cf306f868242a2e22cf0839d8588f86f /testpar/testphdf5.c | |
parent | e384b7fa03c02475f23f1d4cd67011cd45de32d1 (diff) | |
download | hdf5-941509ab25e444f4e66f0f9d7e355e1ecef9b245.zip hdf5-941509ab25e444f4e66f0f9d7e355e1ecef9b245.tar.gz hdf5-941509ab25e444f4e66f0f9d7e355e1ecef9b245.tar.bz2 |
[svn-r6419]
Purpose:
More test.
Description:
Test independent read of groups and chunked dataset.
Solution:
This test is similar to multiple group test. So just add it in the
testphdf5.c,h.
Platforms tested:
modi4, eirene.
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r-- | testpar/testphdf5.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c index 95dbf03..ea41e93 100644 --- a/testpar/testphdf5.c +++ b/testpar/testphdf5.c @@ -29,16 +29,19 @@ void *old_client_data; /* previous error handler arg.*/ int doread=1; /* read test */ int dowrite=1; /* write test */ int docompact=1; /* compact dataset test */ +int doindependent=1; /* independent test */ + /* FILENAME and filenames must have the same number of names */ -const char *FILENAME[7]={ +const char *FILENAME[8]={ "ParaEg1", "ParaEg2", "ParaEg3", "ParaMdset", "ParaMgroup", "ParaCompact", + "ParaIndividual", NULL}; -char filenames[7][PATH_MAX]; +char filenames[8][PATH_MAX]; hid_t fapl; /* file access property list */ #ifdef USE_PAUSE @@ -107,6 +110,7 @@ usage(void) printf("\t-n<n_groups>" "\tset number of groups for the multiple group test\n"); printf("\t-o\t\tno compact dataset test\n"); + printf("\t-i\t\tno independent read 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"); @@ -157,6 +161,8 @@ parse_options(int argc, char **argv) break; case 'o': docompact = 0; break; + case 'i': doindependent = 0; + break; case 'v': verbose = 1; break; case 'f': if (--argc < 1) { @@ -392,6 +398,18 @@ int main(int argc, char **argv) else { MPI_BANNER("compact dataset test skipped"); } + + if (doindependent){ + MPI_BANNER("collective group and dataset write ..."); + collective_group_write(filenames[6], ngroups); + if (doread) { + MPI_BANNER("indepenent group and dataset read ..."); + independent_group_read(filenames[6], ngroups); + } + } + else{ + MPI_BANNER("Independent test skipped"); + } if (!(dowrite || doread || ndatasets || ngroups || docompact)){ usage(); |