Signed-off-by: Yu Mingfei <[email protected]> --- tests/cfg/virsh_schedinfo_xen_credit.cfg | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 tests/cfg/virsh_schedinfo_xen_credit.cfg
diff --git a/tests/cfg/virsh_schedinfo_xen_credit.cfg b/tests/cfg/virsh_schedinfo_xen_credit.cfg new file mode 100644 index 0000000..8ab4647 --- /dev/null +++ b/tests/cfg/virsh_schedinfo_xen_credit.cfg @@ -0,0 +1,69 @@ +- virsh_schedinfo_xen_credit: + type = virsh_schedinfo_xen_credit + schedinfo_options = "" + schedinfo_options_suffix = "" + start_vm = yes + variants: + - normal_test: + status_error = no + variants: + - valid_domname: + schedinfo_vm_ref = domname + - valid_domid: + schedinfo_vm_ref = domid + - valid_domuuid: + schedinfo_vm_ref = domuuid + variants: + # Do not set, just show the parameters + - show_schedinfo: + # Legal weights range from 1 to 65535 and the default is 256. + - set_weight: + schedinfo_set_ref = weight + variants: + - value_minimum: + schedinfo_set_value = 1 + schedinfo_set_value_expected = 1 + - value_normal: + schedinfo_set_value = 512 + schedinfo_set_value_expected = 512 + - value_maximum: + schedinfo_set_value = 65535 + schedinfo_set_value_expected = 65535 + # TODO: to support more parameters + - error_test: + status_error = yes + variants: + - invalid_options: + variants: + - invalid_domid: + schedinfo_vm_ref = 9999 + - invalid_domuuid: + schedinfo_vm_ref = 99999999-9999-9999-9999-999999999999 + - none: + schedinfo_vm_ref = "" + - hex_domid: + schedinfo_vm_ref = hex_id + - additional_args: + schedinfo_options_suffix = xyz + - set_weight: + schedinfo_set_ref = weight + variants: + - value_none: + schedinfo_set_value = "" + - value_invalid: + schedinfo_set_value = xyz + - value_negative: + schedinfo_set_value = -1 + - value_zero: + schedinfo_set_value = 0 + - value_exceed: + schedinfo_set_value = 65536 + - set_xyz: + schedinfo_set_ref = xyz + variants: + - value_valid: + schedinfo_set_value = 1 + - value_invalid: + schedinfo_set_value = xyz + - set_none: + schedinfo_set_ref = none -- 1.7.11.7 _______________________________________________ Virt-test-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-test-devel
