diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2013-05-31 23:20:21 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2013-05-31 23:20:21 (GMT) |
commit | 39a3d4aa3e8441e886a3eb44c1040aad47886537 (patch) | |
tree | e8fb669449be5b6ab7f6439707938f52d43ff121 /test/usecase.h | |
parent | d8b37d28a3cdfbf52fa904e9c25d9d18d5e6dbca (diff) | |
download | hdf5-39a3d4aa3e8441e886a3eb44c1040aad47886537.zip hdf5-39a3d4aa3e8441e886a3eb44c1040aad47886537.tar.gz hdf5-39a3d4aa3e8441e886a3eb44c1040aad47886537.tar.bz2 |
[svn-r23725] Added two new features:
1. "-f filename" can create the test file somewhere other than
the current directory or <progname>.h5. This allows running tests in different
filesystems, for example.
2. "-l w|r" can launch only the writer or the reader (default does both).
This allows launching writer (includes the "create file") in one process and
launching the reader somewhere else. (The "-f" helps too.)
Tested: h5committested.
Diffstat (limited to 'test/usecase.h')
-rw-r--r-- | test/usecase.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/usecase.h b/test/usecase.h index 858359b..8957ac1 100644 --- a/test/usecase.h +++ b/test/usecase.h @@ -34,14 +34,19 @@ #define UC_CTYPE short /* use case C data type */ /* type declarations */ +typedef enum part_t { + UC_READWRITE =0, /* both writer and reader */ + UC_WRITER, /* writer only */ + UC_READER /* reader only */ +} part_t; typedef struct options_t { - int num_dsets; /* number of datasets */ - int use_swmr; /* use swmr open or not */ + int use_swmr; /* use swmr open (1) or not */ int compress; /* 0: no compress */ int h5_use_chunks; /* 0/1: Not use/use chunked dataset */ int chunksize; /* chunks are chunksize^2 planes */ int nplanes; /* number of planes, default chunksize */ char *filename; /* use case data filename */ + part_t launch; /* launch writer, reader or both */ } options_t; /* global variables declarations */ |