summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-03-21 21:00:48 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-03-21 21:00:48 (GMT)
commitdd1b2c3208ecb4969ad854a65e2261bced518698 (patch)
treefcbf369b09c49439974678efbe12e2bf290ce8cb /testpar/testphdf5.c
parentd476ce138bbb78d3f7bf22a21172724f6519a1cf (diff)
downloadhdf5-dd1b2c3208ecb4969ad854a65e2261bced518698.zip
hdf5-dd1b2c3208ecb4969ad854a65e2261bced518698.tar.gz
hdf5-dd1b2c3208ecb4969ad854a65e2261bced518698.tar.bz2
[svn-r22115] Add 2 new API routines to set/unset file atomicity for files opened with the MPI-IO VFD
Add test cases for these two routines Jira issue HDFFV-7961
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r--testpar/testphdf5.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index e3c72ef..4ec05ca 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -512,6 +512,18 @@ int main(int argc, char **argv)
/* Parse command line arguments */
TestParseCmdLine(argc, argv);
+ if((mpi_size < 2)&& MAINPROCESS ) {
+ printf("Atomicity tests need at least 2 processes to participate\n");
+ printf("8 is more recommended.. Atomicity tests will be skipped \n");
+ }
+ else if (facc_type != FACC_MPIO && MAINPROCESS) {
+ printf("Atomicity tests will not work with a non MPIO VFD\n");
+ }
+ else if(mpi_size >= 2 && facc_type == FACC_MPIO){
+ AddTest("atomicity", dataset_atomicity, NULL,
+ "dataset atomic updates", PARATESTFILE);
+ }
+
if (facc_type == FACC_MPIPOSIX && MAINPROCESS){
printf("===================================\n"
" Using MPIPOSIX driver\n"