Signed-off-by: Yanbing Du <[email protected]>
---
 libvirt/tests/cfg/virsh_blockcopy.cfg |   56 +++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)
 create mode 100644 libvirt/tests/cfg/virsh_blockcopy.cfg

diff --git a/libvirt/tests/cfg/virsh_blockcopy.cfg 
b/libvirt/tests/cfg/virsh_blockcopy.cfg
new file mode 100644
index 0000000..6786722
--- /dev/null
+++ b/libvirt/tests/cfg/virsh_blockcopy.cfg
@@ -0,0 +1,56 @@
+- virsh_blockcopy:
+    virt_test_type = libvirt
+    type = virsh_blockcopy
+    blockcopy_options = ""
+    #source_path = "vda"
+    dest_path = ""
+    blockcopy_options = ""
+    dest_format = ""
+    bandwidth = ""
+    timeout = "no"
+    reuse_external = "no"
+    persistent_vm = "no"
+    variants:
+        - positive_test:
+            status_error = "no"
+            variants:
+                - no_option:
+                    blockcopy_options = ""
+                - reuse_external:
+                    reuse_external = "yes"
+                - raw_format:
+                    dest_format = "raw"
+                - min_bandwidth:
+                    bandwidth= "1"
+                #- max_bandwidth:
+                #    bandwidth="17592186044415" BZ927156
+                - timeout:
+                    timeout = "yes"
+                - shallow_option:
+                    blockcopy_options = "--shallow"
+                - wait_option:
+                    blockcopy_options = "--wait --verbose"
+                - pivot_option:
+                    blockcopy_options = "--wait --pivot --verbose"
+                - finish_option:
+                    blockcopy_options = "--wait --finish --verbose"
+                - pivot_async_option:
+                    blockcopy_options = "--wait --pivot --async --verbose"
+                - finish_async_option:
+                    blockcopy_options = "--wait --finish --async --verbose"
+        - negative_test:
+            status_error = "yes"
+            variants:
+                - invalid_external_dest:
+                    dest_path = "/tmp/non-exist.img"
+                    reuse_external = "yes"
+                - invalid_bandwidth:
+                    bandwidth = "abc"
+                #- invalid_timeout:
+                #    timeout = "invalid" #BZ927495
+                - miss_wait_option:
+                    blockcopy_options = "--verbose --async"
+                - invalid_mix_option:
+                    blockcopy_options = "--wait --pivot --finish"
+               -  persistent_domain:
+                    persistent_vm = "yes"
-- 
1.7.1

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to