Add configuration for virsh cpu-stats

Signed-off-by: Prem Karat <[email protected]>
---
 client/tests/virt/shared/cfg/subtests.cfg.sample |   38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/client/tests/virt/shared/cfg/subtests.cfg.sample 
b/client/tests/virt/shared/cfg/subtests.cfg.sample
index 28bfb93..35998b5 100644
--- a/client/tests/virt/shared/cfg/subtests.cfg.sample
+++ b/client/tests/virt/shared/cfg/subtests.cfg.sample
@@ -432,6 +432,44 @@ variants:
                         addition_status_error = "yes"
                         libvirtd = "off"
 
+   - virsh_cpu_stats: install setup image_copy unattended_install.cdrom
+        type = virsh_cpu_stats
+        vms = ""
+        variants:
+            - expected_options:
+                status_error = "no"
+                variants:
+                    - expected_option_none:
+                        virsh_cpu_stats_options = ""
+                    - expected_option_start:
+                        virsh_cpu_stats_options = "--start"
+                    - expected_option_count:
+                        virsh_cpu_stats_options = "--count"
+                    - expected_option_total:
+                        virsh_cpu_stats_options = "--total"
+                    - expected_option_start_count:
+                        virsh_cpu_stats_options = "--start --count"
+                    - expected_option_start_total:
+                        virsh_cpu_stats_options = "--start --total"
+                    - expected_option_count_total:
+                        virsh_cpu_stats_options = "--count --total"
+                    - expected_option_start_count_total:
+                        virsh_cpu_stats_options = "--start --count --total"
+
+            - error_test:
+                status_error = "yes"
+                variants:
+                    - unexpected_option_xyz:
+                        virsh_cpu_stats_options = "--xyz"
+                    - unexpected_option_12345:
+                        virsh_cpu_stats_options = "--12345"
+        variants:
+            - libvirton:
+                libvirtd = "on"
+            - libvirtoff:
+                libvirtd = "off"
+                status_error = "yes"
+
     - module_probe:
         type = module_probe
         # You can specify your own module list, though it is not needed 
usually.
-- 
1.7.10.4

-- 
        -prem

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

Reply via email to