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

diff --git a/libvirt/tests/cfg/virsh_dump.cfg b/libvirt/tests/cfg/virsh_dump.cfg
new file mode 100644
index 0000000..7c05244
--- /dev/null
+++ b/libvirt/tests/cfg/virsh_dump.cfg
@@ -0,0 +1,54 @@
+virsh_dump:
+    virt_test_type = libvirt
+    type = virsh_dump
+    dump_options = ""
+    dump_file = "/tmp/vm.core"
+    dump_image_format = ""
+    start_vm = "yes"
+    variants:
+        - positive_test:
+            status_error = "no"
+            variants:
+                - no_option:
+                    dump_options = ""
+                - live_dump:
+                    dump_options = "--live"
+                - crash_dump:
+                    dump_options = "--crash"
+                - reset_dump:
+                    dump_options = "--reset"
+                - bypass_cache_dump:
+                    dump_options = "--bypass-cache"
+                - bypass_cache_reset_dump:
+                    dump_options = "--reset --bypass-cache"
+                - memory_dump:
+                    dump_options = "--memory-only"
+                - memory_crash_dump:
+                    dump_options = "--crash --memory-only"
+                - memory_bypass_cache_dump:
+                    dump_options = "--memory-only --bypass-cache --verbose"
+                - lzop_format_dump:
+                    dump_image_format = "lzop"
+                - gzip_format_dump:
+                    dump_image_format = "gzip"
+                - bzip2_format_dump:
+                    dump_image_format = "bzip2"
+                - zx_format_dump:
+                    dump_image_format = "xz"
+                - invalid_image_format:
+                    dump_image_format = "xyz"
+        - negative_test:
+            status_error = "yes"
+            variants:
+                - no_dump_file:
+                    dump_file = ""
+                - unexist_dir_dump:
+                    dump_file = "/xyz/vm.core"
+                - invalid_option1:
+                    dump_options = "--xyz"
+                - invalid_option2:
+                    dump_options = "--live --crash"
+                - invalid_option3:
+                    dump_options = "--live --reset"
+                - shutoff_dump:
+                    start_vm = "no"
-- 
1.7.1

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

Reply via email to