[sheepdog] [PATCH v8 17/17] tests/functional: new test of object reclaim for a case of continuously snapshotted VDI
Hitoshi Mitake
mitake.hitoshi at gmail.com
Sun Mar 30 16:10:10 CEST 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/092 | 32 ++++++++++++++++++++++++++++++++
tests/functional/092.out | 26 ++++++++++++++++++++++++++
tests/functional/group | 1 +
3 files changed, 59 insertions(+)
create mode 100755 tests/functional/092
create mode 100644 tests/functional/092.out
diff --git a/tests/functional/092 b/tests/functional/092
new file mode 100755
index 0000000..bf32e71
--- /dev/null
+++ b/tests/functional/092
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Test object reclaim for continuously snapshotted and partially updated VDI
+
+. ./common
+
+for i in 0 1 2; do
+ _start_sheep $i
+done
+_wait_for_sheep 3
+_cluster_format -c 3
+
+$DOG vdi create test 16M
+cat /dev/zero | $DOG vdi write test 0 512
+_node_info
+
+$DOG vdi snapshot test
+cat /dev/zero | $DOG vdi write test $((4 * 1024 * 1024)) 512
+_node_info
+
+$DOG vdi snapshot test
+cat /dev/zero | $DOG vdi write test $((4 * 1024 * 1024 * 2)) 512
+_node_info
+
+$DOG vdi delete test -s 2
+_node_info
+
+$DOG vdi delete test -s 1
+_node_info
+
+$DOG vdi delete test
+_node_info
diff --git a/tests/functional/092.out b/tests/functional/092.out
new file mode 100644
index 0000000..0a0ab9b
--- /dev/null
+++ b/tests/functional/092.out
@@ -0,0 +1,26 @@
+QA output created by 092
+using backend plain store
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 1 1 0 0 0 0
+1 1 1 0 0 0 0
+2 1 1 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 2 2 0 0 0 0
+1 2 2 0 0 0 0
+2 2 2 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 3 0 0 0 0
+1 3 3 0 0 0 0
+2 3 3 0 0 0 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 3 0 0 2 0
+1 3 3 0 0 2 0
+2 3 3 0 0 2 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 3 3 0 0 2 0
+1 3 3 0 0 2 0
+2 3 3 0 0 2 0
+STORE DATA VDI VMSTATE ATTR LEDGER STALE
+0 0 3 0 0 0 0
+1 0 3 0 0 0 0
+2 0 3 0 0 0 0
diff --git a/tests/functional/group b/tests/functional/group
index 0c5147b..2f23e0b 100644
--- a/tests/functional/group
+++ b/tests/functional/group
@@ -106,3 +106,4 @@
089 auto quick sheepfs
090 auto quick vdi md
091 auto quick vdi
+092 auto quick vdi
--
1.8.3.2
More information about the sheepdog
mailing list