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

diff --git a/client/virt/subtests.cfg.sample b/client/virt/subtests.cfg.sample
index daad3d4..dd7df35 100644
--- a/client/virt/subtests.cfg.sample
+++ b/client/virt/subtests.cfg.sample
@@ -432,6 +432,116 @@ variants:
                         addition_status_error = "yes"
                         libvirtd = "off"

+    - virsh_schedinfo:
+        type = virsh_schedinfo
+        kill_vm = yes
+        kill_vm_on_error = yes
+        schedinfo_vm = "%s"
+        schedinfo_options_ref = ""
+        schedinfo_options_prefix = ""
+        schedinfo_options_suffix = ""
+        variants:
+            - with_valid_option:
+                schedinfo_status_error = no
+                variants:
+                    - domid:
+                        schedinfo_vm_ref = "domid"
+                    - domname:
+                        schedinfo_vm_ref = "domname"
+                    - domuuid:
+                        schedinfo_vm_ref = "domuuid"
+            - with_invalid_option:
+                schedinfo_status_error = yes
+                variants:
+                    - none:
+                        schedinfo_vm_ref = ""
+                    - hex_domid:
+                        schedinfo_vm_ref = "domid"
+                        schedinfo_vm = "%x"
+                    - invalid_domid:
+                        schedinfo_vm_ref = "9999"
+                    - invalid_uuid:
+                        schedinfo_vm_ref = 
"99999999-9999-9999-9999-999999999999"
+        variants:
+            - normal_test:
+                addition_status_error = no
+            - with_vm_state:
+                only with_valid_option.domname
+                addition_status_error = no
+                variants:
+                    - vm_paused:
+                        vm_state_ref = "paused"
+                        paused_after_start_vm = yes
+                    - vm_shut_off:
+                        vm_state_ref = "shut off"
+                        start_vm = no
+            - with_libvirtd_stop:
+                only with_valid_option.domname
+                addition_status_error = yes
+                schedinfo_libvirt = "off"
+            - with_addition_args:
+                only with_valid_option.domname
+                addition_status_error = yes
+                schedinfo_options_suffix = "xyz"
+            - with_set_cpu_shares:
+                only with_valid_option.domname
+                #the parameter we will set
+                set_ref = "cpu_shares"
+                #posix is used on RHEL6 for kvm,
+                #while credit is used on RHEL5 for xen.
+                #cpu_shares only support posix
+                scheduler_value = posix
+                variants:
+                    - valid_value:
+                        addition_status_error = no
+                        #If value we get after set should be right
+                        value_is_expected = yes
+                        variants:
+                            - value1:
+                                set_value = "-1"
+                                value_is_expected = no
+                            - value2:
+                                set_value = "0"
+                                value_is_expected = no
+                            - value3:
+                                set_value = "512"
+                            - value4:
+                                set_value = "262145"
+                                value_is_expected = no
+                            - value5:
+                                set_value = "262144"
+                    - invalid_value:
+                        addition_status_error = yes
+                        variants:
+                            - value1:
+                                set_value = ""
+                            - value2:
+                                set_value = "xyz"
+            - with_set_xyz:
+                only with_valid_option.domname
+                addition_status_error = yes
+                set_ref = "xyz"
+                variants:
+                    - valide_value:
+                        set_value = "1"
+                    - invalid_value:
+                        set_value = "xyz"
+            - with_set_none:
+                only with_valid_option.domname
+                addition_status_error = yes
+                set_ref = "none"
+                set_value = ""
+            - schedinfo_local_on_remote_host:
+                #Need a remote host to execute virsh schedinfo command.
+                #And you need to configure ssh autologin between
+                #local and remote host.
+                only with_valid_option.domname
+                addition_status_error = no
+                remote_ref = "remote"
+                remote_host_ip = "127.0.0.1"
+                remote_host_passwd = "password"
+                local_host_ip = "127.0.0.1"
+
     - 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