From: Yu Mingfei <[email protected]>

Signed-off-by: Yu Mingfei <[email protected]>
---
 client/virt/subtests.cfg.sample |   72 +++++++++++++++++++++++++++++++++++++--
 1 file changed, 69 insertions(+), 3 deletions(-)

diff --git a/client/virt/subtests.cfg.sample b/client/virt/subtests.cfg.sample
index c2aca1f..d27fb98 100644
--- a/client/virt/subtests.cfg.sample
+++ b/client/virt/subtests.cfg.sample
@@ -54,7 +54,7 @@ variants:
             - in_cdrom_ks:
                 only Linux, unattended_install.cdrom
                 unattended_delivery_method = integrated
-            # Autotest starts simple http server providing kickstart 
+            # Autotest starts simple http server providing kickstart
             - http_ks:
                 only Linux
                 unattended_delivery_method = url
@@ -307,6 +307,72 @@ variants:
                 libvirtd = "off"
                 status_error = "yes"
 
+    - virsh_list:
+        type = virsh_list
+        variants:
+            - with_valid_options:
+                status_error = "no"
+                variants:
+                    - inactive:
+                        options_ref = "inactive"
+                    - all:
+                        options_ref = "all"
+                    - none:
+                        options_ref = ""
+                variants:
+                    - list_table:
+                        list_ref = "table"
+                    - list_name:
+                        list_ref = "name"
+                    - list_uuid:
+                        list_ref = "uuid"
+            - with_invalid_options:
+                status_error = "yes"
+                variants:
+                    - invalid_string:
+                        options_ref = "xyz"
+                    - vm_id:
+                        options_ref = "vm_id"
+                    - vm_name:
+                        options_ref = "vm_name"
+                    - vm_uuid:
+                        options_ref = "vm_uuid"
+        variants:
+            - normal_test:
+                addition_status_error = "no"
+            - special_test:
+                variants:
+                    - list_transient_domains:
+                        only with_valid_options
+                        addition_status_error = "no"
+                        vm_ref = "transient"
+                    - list_persistent_domains:
+                        only with_valid_options
+                        addition_status_error = "no"
+                        vm_ref = "persistent"
+                    - with_managed_save:
+                        only with_valid_options.list_table.all
+                        #Because managedsave command will shutdown domain
+                        #we should list all if we need to check the mark of 
saved.
+                        addition_status_error = "no"
+                        vm_ref = "managed-save"
+                    - list_local_domains_on_remote:
+                        #You should config ssh autologin between remote and 
local
+                        #when you test list_local_domains_on_remote.
+                        only with_valid_options
+                        addition_status_error = "no"
+                        remote_ref = "remote"
+                        #remote host's IP
+                        remote_ip = "127.0.0.1"
+                        #remote host's password
+                        remote_passwd = "password"
+                        #local host's ip
+                        local_ip = "127.0.0.1"
+                    - with_libvirt_off:
+                        only with_valid_options
+                        addition_status_error = "yes"
+                        libvirtd = "off"
+
     - module_probe:
         type = module_probe
         # You can specify your own module list, though it is not needed 
usually.
@@ -2454,9 +2520,9 @@ variants:
         display_vm2 = vnc
         os_type_vm2 = linux
         shell_prompt_vm2 = ^\[.*\][\#\$]\s*$
-        shell_client_vm2 = ssh 
+        shell_client_vm2 = ssh
         username_vm2 = root
-        shell_port_vm2 = 22 
+        shell_port_vm2 = 22
         status_test_command_vm2 = echo $?
 
         variants:
-- 
1.7.10.4

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to