[sheepdog] [PATCH 2/2] functional: add 066 to stress test object cache

Liu Yuan namei.unix at gmail.com
Thu Jun 20 09:59:57 CEST 2013


Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 tests/functional/066     |   45 +++++++++++++++++++++++++++++++++++++++++
 tests/functional/066.out |   50 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/functional/group   |    1 +
 3 files changed, 96 insertions(+)
 create mode 100755 tests/functional/066
 create mode 100644 tests/functional/066.out

diff --git a/tests/functional/066 b/tests/functional/066
new file mode 100755
index 0000000..5c652d3
--- /dev/null
+++ b/tests/functional/066
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+# Test cache push in stress
+
+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 1 2`; do
+    _start_sheep $i "-w size=200"
+done
+
+_wait_for_sheep 3
+_cluster_format -c 2
+
+$COLLIE vdi create t 300M -P
+$COLLIE vdi create t0 300M -P
+$COLLIE vdi create t1 300M -P
+
+dd if=/dev/zero | $COLLIE vdi write -w t &
+for j in 0 1; do
+    dd if=/dev/zero | $COLLIE vdi write -w t$j -p 700$j &
+done
+
+for i in `seq 3 7`; do
+    _start_sheep $i
+    _wait_for_sheep 4
+    _kill_sheep $(($i - 1))
+    _wait_for_sheep_recovery 0
+done
+
+wait
+
+for i in 0 1 7; do
+    $COLLIE cluster info -p 700$i | _filter_cluster_info
+done
diff --git a/tests/functional/066.out b/tests/functional/066.out
new file mode 100644
index 0000000..419706a
--- /dev/null
+++ b/tests/functional/066.out
@@ -0,0 +1,50 @@
+QA output created by 066
+using backend plain store
+Cluster status: running, auto-recovery enabled
+
+Cluster created at DATE
+
+Epoch Time           Version
+DATE     11 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7007]
+DATE     10 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7006, 127.0.0.1:7007]
+DATE      9 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7006]
+DATE      8 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7005, 127.0.0.1:7006]
+DATE      7 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7005]
+DATE      6 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7004, 127.0.0.1:7005]
+DATE      5 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7004]
+DATE      4 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7003, 127.0.0.1:7004]
+DATE      3 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7003]
+DATE      2 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002, 127.0.0.1:7003]
+DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
+Cluster status: running, auto-recovery enabled
+
+Cluster created at DATE
+
+Epoch Time           Version
+DATE     11 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7007]
+DATE     10 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7006, 127.0.0.1:7007]
+DATE      9 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7006]
+DATE      8 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7005, 127.0.0.1:7006]
+DATE      7 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7005]
+DATE      6 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7004, 127.0.0.1:7005]
+DATE      5 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7004]
+DATE      4 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7003, 127.0.0.1:7004]
+DATE      3 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7003]
+DATE      2 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002, 127.0.0.1:7003]
+DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
+Cluster status: running, auto-recovery enabled
+
+Cluster created at DATE
+
+Epoch Time           Version
+DATE     11 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7007]
+DATE     10 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7006, 127.0.0.1:7007]
+DATE      9 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7006]
+DATE      8 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7005, 127.0.0.1:7006]
+DATE      7 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7005]
+DATE      6 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7004, 127.0.0.1:7005]
+DATE      5 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7004]
+DATE      4 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7003, 127.0.0.1:7004]
+DATE      3 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7003]
+DATE      2 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002, 127.0.0.1:7003]
+DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
diff --git a/tests/functional/group b/tests/functional/group
index 4653979..259be76 100644
--- a/tests/functional/group
+++ b/tests/functional/group
@@ -79,3 +79,4 @@
 063 auto quick cluster
 064 auto quick cluster
 065 auto quick cluster md
+066 auto quick cluster md
-- 
1.7.9.5




More information about the sheepdog mailing list