Signed-off-by: Christoph Hellwig <[email protected]> --- tests/023 | 39 +++++++++++++++++++++++++++++++++++++++ tests/023.out | 3 +++ tests/group | 1 + 3 files changed, 43 insertions(+) create mode 100755 tests/023 create mode 100644 tests/023.out
diff --git a/tests/023 b/tests/023 new file mode 100755 index 0000000..d9a2200 --- /dev/null +++ b/tests/023 @@ -0,0 +1,39 @@ +#!/bin/bash + +# Reproduce a joinstorm just after format + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter + +_cleanup + +for i in `seq 0 0`; do + $SHEEP $STORE/$i -d -z $i -p 700$i -c $DRIVER +done + +_wait_for_sheep "1" + +$COLLIE cluster format -c 1 + +for i in `seq 1 9`; do + $SHEEP $STORE/$i -d -g -z $i -p 700$i -c $DRIVER +done + +_wait_for_sheep "10" + + +echo "comparing cluster info for all sheep. Should be the same" +for i in `seq 0 10`; do + $COLLIE cluster info > /tmp/cinfo.$i +done +for i in `seq 1 10`; do + diff -u /tmp/cinfo.0 /tmp/cinfo.$i +done diff --git a/tests/023.out b/tests/023.out new file mode 100644 index 0000000..e5d2637 --- /dev/null +++ b/tests/023.out @@ -0,0 +1,3 @@ +QA output created by 023 +using backend farm store +comparing cluster info for all sheep. Should be the same diff --git a/tests/group b/tests/group index 1737258..79cf01d 100644 --- a/tests/group +++ b/tests/group @@ -34,3 +34,4 @@ 020 auto quick cache 021 auto quick cluster 022 auto quick cluster +023 auto quick cluster -- 1.7.10.4 -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
