diff options
author | myang6 <myang6@hdfgroup.org> | 2021-12-01 18:13:22 (GMT) |
---|---|---|
committer | myang6 <myang6@hdfgroup.org> | 2021-12-01 18:13:22 (GMT) |
commit | 210464603ed5f01144b3f18d0c368ef335cdae14 (patch) | |
tree | 2cb3a27f8ab1b80a73ba02c22f603ec1aed99744 /test/testvfdswmr.sh.in | |
parent | a58fbf52f0202546b2a75227e62b48817280ff2f (diff) | |
download | hdf5-210464603ed5f01144b3f18d0c368ef335cdae14.zip hdf5-210464603ed5f01144b3f18d0c368ef335cdae14.tar.gz hdf5-210464603ed5f01144b3f18d0c368ef335cdae14.tar.bz2 |
Add the test for independence of reader and writer.
Diffstat (limited to 'test/testvfdswmr.sh.in')
-rw-r--r-- | test/testvfdswmr.sh.in | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/test/testvfdswmr.sh.in b/test/testvfdswmr.sh.in index 535aafa..d52527b 100644 --- a/test/testvfdswmr.sh.in +++ b/test/testvfdswmr.sh.in @@ -143,13 +143,14 @@ fi all_tests="generator expand shrink expand_shrink sparse vlstr_null vlstr_oob zoo" all_tests="${all_tests} groups groups_attrs groups_ops few_big many_small attrdset" -tests=${all_tests} -# For exhaustive run, add: os_groups_attrs, os_groups_ops, os_groups_seg, dsetops, dsetchks +# For exhaustive run, add: os_groups_attrs, os_groups_ops, os_groups_seg, dsetops, dsetchks,independ_wr if [[ "$HDF5TestExpress" -eq 0 ]] ; then # exhaustive run - all_tests="${all_tests} os_groups_attrs os_groups_ops os_groups_seg dsetops dsetchks" + all_tests="${all_tests} os_groups_attrs os_groups_ops os_groups_seg dsetops dsetchks independ_wr" fi +tests=${all_tests} + if [ $# -gt 0 ]; then tests= fi @@ -1367,6 +1368,25 @@ for flush in "" "-U"; do done done +if [ ${do_independ_wr:-no} = yes ]; then + echo launch vfd_swmr_indep_wr_p0 ..... process 0 ...... + echo launch vfd_swmr_indep_wr_p1 ..... process 1 ...... + catch_out_err_and_rc vfd_swmr_indep_wr_p0 \ + ../vfd_swmr_indep_wr_p0 & + pid_writer=$! + + catch_out_err_and_rc vfd_swmr_group_reader \ + ../vfd_swmr_indep_wr_p1 & + pid_reader=$! + + wait $pid_reader + wait $pid_writer + # Clean up output files + rm -f vfd_swmr_indep_wr_p0.{out,rc} + rm -f vfd_swmr_indep_wr_p1.{out,rc} +fi + + ############################################################################### ## Report and exit ############################################################################### |