[sheepdog] [PATCH v3 8/9] tests/functional: add test for object reclaim
Hitoshi Mitake
mitake.hitoshi at gmail.com
Sun Feb 23 06:28:27 CET 2014
Cc: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Cc: Valerio Pachera <sirio81 at gmail.com>
Cc: Alessandro Bolgia <alessandro at extensys.it>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
tests/functional/087 | 30 ++++++++++++++++++++++++++++++
tests/functional/087.out | 42 ++++++++++++++++++++++++++++++++++++++++++
tests/functional/group | 1 +
3 files changed, 73 insertions(+)
create mode 100755 tests/functional/087
create mode 100644 tests/functional/087.out
diff --git a/tests/functional/087 b/tests/functional/087
new file mode 100755
index 0000000..f958126
--- /dev/null
+++ b/tests/functional/087
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+# Test object reclaim
+
+. ./common
+
+for i in 0 1 2; do
+ _start_sheep $i
+done
+_wait_for_sheep 3
+_cluster_format -c 2
+
+$DOG vdi create test 16M -P
+_node_info
+
+for i in `seq 0 3`; do
+ $DOG vdi snapshot test -s snap$i
+ $DOG vdi write test $((4 * 1024 ** 2 * $i)) 512 < /dev/zero
+ _node_info
+done
+
+for i in `seq 0 3`; do
+ $DOG vdi delete test -s snap$i
+ sleep 1
+ _node_info
+done
+
+$DOG vdi delete test
+sleep 1
+_node_info
diff --git a/tests/functional/087.out b/tests/functional/087.out
new file mode 100644
index 0000000..f7ddfd3
--- /dev/null
+++ b/tests/functional/087.out
@@ -0,0 +1,42 @@
+QA output created by 087
+using backend plain store
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 0 0 0 0 0
+1 3 1 0 0 0 0
+2 2 1 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 4 1 0 0 1 0
+1 4 1 0 0 0 0
+2 4 2 0 0 1 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 6 2 0 0 2 0
+1 5 1 0 0 0 0
+2 5 3 0 0 2 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 8 2 0 0 3 0
+1 7 2 0 0 1 0
+2 5 4 0 0 2 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 9 3 0 0 4 0
+1 9 3 0 0 2 0
+2 6 4 0 0 2 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 4 5 0 0 0 0
+1 4 3 0 0 0 0
+2 4 5 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 4 5 0 0 0 0
+1 4 3 0 0 0 0
+2 8 5 0 0 4 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 4 5 0 0 0 0
+1 4 3 0 0 0 0
+2 9 5 0 0 5 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 4 5 0 0 0 0
+1 4 3 0 0 0 0
+2 10 5 0 0 6 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 4 5 0 0 0 0
+1 4 3 0 0 0 0
+2 7 5 0 0 5 0
diff --git a/tests/functional/group b/tests/functional/group
index 13306d9..0991ad7 100644
--- a/tests/functional/group
+++ b/tests/functional/group
@@ -101,3 +101,4 @@
084 auto quick sheepfs
085 auto quick vdi md
086 auto quick vdi md
+087 auto quick vdi
--
1.8.3.2
More information about the sheepdog
mailing list