[sheepdog] [PATCH] tests/functional: add test for live snapshot under heavy workload
MORITA Kazutaka
morita.kazutaka at gmail.com
Thu Aug 29 02:54:24 CEST 2013
From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
This reproduces the bug reported by Valerio in
http://lists.wpkg.org/pipermail/sheepdog-users/2013-August/001209.html
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
tests/functional/075 | 29 +++++++++++++++++++++++++++++
tests/functional/075.out | 2 ++
tests/functional/group | 1 +
3 files changed, 32 insertions(+)
create mode 100755 tests/functional/075
create mode 100644 tests/functional/075.out
diff --git a/tests/functional/075 b/tests/functional/075
new file mode 100755
index 0000000..d65262b
--- /dev/null
+++ b/tests/functional/075
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+# Test live snapshot under heavy workload
+
+. ./common
+
+for i in `seq 0 2`; do
+ _start_sheep $i
+done
+
+_wait_for_sheep 3
+
+_cluster_format -c 3
+$DOG vdi create test 4M
+
+_input()
+{
+ for i in `seq 1024`; do
+ echo "aio_write -q 0 4m"
+ done
+ for i in `seq 5`; do
+ $DOG vdi snapshot test
+ sleep 1
+ done
+
+ echo quit
+}
+
+_input | $QEMU_IO sheepdog:test | sed 's/qemu-io> //g'
diff --git a/tests/functional/075.out b/tests/functional/075.out
new file mode 100644
index 0000000..afeaf74
--- /dev/null
+++ b/tests/functional/075.out
@@ -0,0 +1,2 @@
+QA output created by 075
+using backend plain store
diff --git a/tests/functional/group b/tests/functional/group
index 3e31fba..938df7a 100644
--- a/tests/functional/group
+++ b/tests/functional/group
@@ -89,3 +89,4 @@
072 auto quick store
073 auto quick sheepfs
074 auto quick clster md
+075 auto quick vdi md
--
1.7.9.5
More information about the sheepdog
mailing list