This patch adds configuration for domname test.

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

diff --git a/client/virt/subtests.cfg.sample b/client/virt/subtests.cfg.sample
index 099f28e..7d2d652 100644
--- a/client/virt/subtests.cfg.sample
+++ b/client/virt/subtests.cfg.sample
@@ -307,6 +307,57 @@ variants:
                 libvirtd = "off"
                 status_error = "yes"

+    - virsh_domname:
+        type = virsh_domname
+        kill_vm = yes
+        kill_vm_on_error = yes
+        options = "%s"
+        options_suffix = ""
+        variants:
+            - with_valid_option:
+                status_error = "no"
+                # status_error means the correctness of the options
+                variants:
+                    - domid:
+                        options_ref = "id"
+                    - uuid:
+                        options_ref = "uuid"
+            - with_invalid_option:
+                status_error = "yes"
+                variants:
+                    - none:
+                        options_ref = ""
+                    - hex_domid:
+                        options_ref = "id"
+                        options = "%x"
+                    - invalid_domid:
+                        options_ref = "9999"
+                    - invalid_uuid:
+                        options_ref = "99999999-9999-9999-9999-999999999999"
+                    - addition_invalid_param:
+                        options_ref = "id"
+                        options_suffix = "xyz"
+                    - vm_name:
+                        options_ref = "name"
+        variants:
+            - vm_state:
+                variants:
+                    - vm_running:
+                        addition_status_error = "no"
+                        start_vm = "yes"
+                    - vm_paused:
+                        addition_status_error = "no"
+                        start_vm = "paused"
+                    - vm_shut_off:
+                        addition_status_error = "yes"
+                        start_vm = "no"
+            - with_libvirtd_stop:
+                only with_valid_option
+                # addition_status_error means the correctness of the operation.
+                # only when the two status_error are ok, the result will be ok.
+                addition_status_error = "yes"
+                libvirtd = "off"
+
     - module_probe:
         type = module_probe
         # You can specify your own module list, though it is not needed 
usually.
--
1.7.1


--
Best Regards
Yu Mingfei

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

Reply via email to