[sheepdog] [PATCH 1/2] tests/functional: add test for temporary object lost
MORITA Kazutaka
morita.kazutaka at gmail.com
Wed Aug 28 08:30:52 CEST 2013
From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
tests/functional/074 | 35 +++++++++++++++++++++++++++++++++++
tests/functional/074.out | 12 ++++++++++++
tests/functional/group | 1 +
3 files changed, 48 insertions(+)
create mode 100755 tests/functional/074
create mode 100644 tests/functional/074.out
diff --git a/tests/functional/074 b/tests/functional/074
new file mode 100755
index 0000000..6454b9e
--- /dev/null
+++ b/tests/functional/074
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+# Test temporary object lost
+
+. ./common
+
+for i in 0 1 2; do
+ _start_sheep $i
+done
+
+_wait_for_sheep 3
+
+# start Sheepdog with 3 nodes
+_cluster_format -c 1
+
+for i in `seq 0 9`; do
+ $DOG vdi create test$i 16M -P
+done
+
+for i in 2 1 0; do
+ _wait_for_sheep_recovery 0
+ _kill_sheep $i
+done
+
+_wait_for_sheep_stop
+
+for i in 0 1 2; do
+ _start_sheep $i
+ _wait_for_sheep $(($i + 1))
+ _wait_for_sheep_recovery 0
+done
+
+for i in `seq 0 9`; do
+ $DOG vdi check test$i
+done
diff --git a/tests/functional/074.out b/tests/functional/074.out
new file mode 100644
index 0000000..7d862b6
--- /dev/null
+++ b/tests/functional/074.out
@@ -0,0 +1,12 @@
+QA output created by 074
+using backend plain store
+finish check&repair test0
+finish check&repair test1
+finish check&repair test2
+finish check&repair test3
+finish check&repair test4
+finish check&repair test5
+finish check&repair test6
+finish check&repair test7
+finish check&repair test8
+finish check&repair test9
diff --git a/tests/functional/group b/tests/functional/group
index 15a60af..3e31fba 100644
--- a/tests/functional/group
+++ b/tests/functional/group
@@ -88,3 +88,4 @@
071 auto quick store md
072 auto quick store
073 auto quick sheepfs
+074 auto quick clster md
--
1.7.9.5
More information about the sheepdog
mailing list