diff options
Diffstat (limited to 'test/testswmr.sh')
-rwxr-xr-x | test/testswmr.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/testswmr.sh b/test/testswmr.sh index 43f9f39..b178af0 100755 --- a/test/testswmr.sh +++ b/test/testswmr.sh @@ -76,6 +76,33 @@ do do echo echo "###############################################################################" + echo "## Generator test" + echo "###############################################################################" + # Launch the Generator without SWMR_WRITE + echo launch the swmr_generator + ./swmr_generator $compress $index_type + if test $? -ne 0; then + echo generator had error + nerrors=`expr $nerrors + 1` + fi + + # Launch the Generator with SWMR_WRITE + echo launch the swmr_generator with SWMR_WRITE + ./swmr_generator -s $compress $index_type + if test $? -ne 0; then + echo generator had error + nerrors=`expr $nerrors + 1` + fi + + # Check for error and exit if one occured + $DPRINT nerrors=$nerrors + if test $nerrors -ne 0 ; then + echo "SWMR tests failed with $nerrors errors." + exit 1 + fi + + echo + echo "###############################################################################" echo "## Writer test - test expanding the dataset" echo "###############################################################################" |