[sheepdog] [PATCH v2 10/11] tests/functional: add test for object reclaim
MORITA Kazutaka
morita.kazutaka at gmail.com
Tue Jun 18 19:14:30 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/065 | 40 ++++++++++++++++++++++++++++++++++++++++
tests/functional/065.out | 42 ++++++++++++++++++++++++++++++++++++++++++
tests/functional/group | 1 +
3 files changed, 83 insertions(+)
create mode 100755 tests/functional/065
create mode 100644 tests/functional/065.out
diff --git a/tests/functional/065 b/tests/functional/065
new file mode 100755
index 0000000..efabbec
--- /dev/null
+++ b/tests/functional/065
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+# Test object reclaim
+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 0 1 2; do
+ _start_sheep $i
+done
+_wait_for_sheep 3
+_cluster_format -c 2
+
+$COLLIE vdi create test 16M -P
+_node_info
+
+for i in `seq 0 3`; do
+ $COLLIE vdi snapshot test -s snap$i
+ $COLLIE vdi write test $((4 * 1024 ** 2 * $i)) 512 < /dev/zero
+ _node_info
+done
+
+for i in `seq 0 3`; do
+ $COLLIE vdi delete test -s snap$i
+ sleep 1
+ _node_info
+done
+
+$COLLIE vdi delete test
+sleep 1
+_node_info
diff --git a/tests/functional/065.out b/tests/functional/065.out
new file mode 100644
index 0000000..59b8411
--- /dev/null
+++ b/tests/functional/065.out
@@ -0,0 +1,42 @@
+QA output created by 065
+using backend plain store
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 1 0 0 0 0
+1 4 1 0 0 0 0
+2 1 0 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 1 0 0 1 0
+1 5 2 0 0 1 0
+2 2 1 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 4 2 0 0 2 0
+1 6 2 0 0 2 0
+2 2 2 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 5 3 0 0 3 0
+1 7 3 0 0 3 0
+2 2 2 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 5 3 0 0 3 0
+1 8 4 0 0 4 0
+2 3 3 0 0 1 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 4 3 0 0 2 0
+1 7 4 0 0 3 0
+2 3 3 0 0 1 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 3 0 0 1 0
+1 6 4 0 0 3 0
+2 3 3 0 0 2 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 2 3 0 0 1 0
+1 5 4 0 0 3 0
+2 3 3 0 0 2 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 2 3 0 0 2 0
+1 4 4 0 0 3 0
+2 2 3 0 0 1 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 0 3 0 0 0 0
+1 0 4 0 0 0 0
+2 0 3 0 0 0 0
diff --git a/tests/functional/group b/tests/functional/group
index 73ab542..eb68ee1 100644
--- a/tests/functional/group
+++ b/tests/functional/group
@@ -78,3 +78,4 @@
062 auto quick cluster md
063 auto quick cluster
064 auto quick cluster
+065 auto quick vdi
--
1.7.9.5
More information about the sheepdog
mailing list