Signed-off-by: Christoph Hellwig <[email protected]>

---
 tests/021     |   24 ++++++++++++++++++++++++
 tests/021.out |    2 ++
 tests/group   |    1 +
 3 files changed, 27 insertions(+)
 create mode 100755 tests/021
 create mode 100644 tests/021.out

diff --git a/tests/021 b/tests/021
new file mode 100755
index 0000000..0476b47
--- /dev/null
+++ b/tests/021
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# Test that format still works in a cluster that has only gateways
+
+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 2`; do
+    $SHEEP $STORE/$i -d -g -z $i -p 700$i -c $DRIVER
+done
+
+_wait_for_sheep "3"
+
+$COLLIE cluster format -c 3
diff --git a/tests/021.out b/tests/021.out
new file mode 100644
index 0000000..147988a
--- /dev/null
+++ b/tests/021.out
@@ -0,0 +1,2 @@
+QA output created by 021
+using backend farm store
diff --git a/tests/group b/tests/group
index e1e9da6..f750d42 100644
--- a/tests/group
+++ b/tests/group
@@ -32,3 +32,4 @@
 018 auto quick cache
 019 auto quick cache
 020 auto quick cache
+021 auto quick cluster
-- 
1.7.10.4


-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to