On 08/30/2012 05:47 AM, Yu Mingfei wrote:
Signed-off-by: Yu Mingfei<[email protected]> --- client/virt/subtests.cfg.sample | 81 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 81 insertions(+), 0 deletions(-)diff --git a/client/virt/subtests.cfg.sample b/client/virt/subtests.cfg.sample index ce6918e..ed22bdd 100644 --- a/client/virt/subtests.cfg.sample +++ b/client/virt/subtests.cfg.sample @@ -432,6 +432,87 @@ variants: addition_status_error = "yes" libvirtd = "off" + - virt_edit: + type = virt_edit + start_vm = no + #wait time to start vm + wait_time = 60 + variants: + - valid_option_vm: + vm_status_error = no + variants: + - vm_name: + vm_ref = "vm_name" + - vm_disk: + vm_ref = "vm_disk" + - vm_uuid: + vm_ref = "vm_uuid" + - invalid_option_vm: + vm_status_error = yes + variants: + - invalid_disk: + vm_ref = "created_img" + #Please put img in a dir with enough space(>=1G) + created_img = "/tmp/foo.img" + - none_vm: + vm_ref = "" + - invalid_number_vm: + vm_ref = 9999 + variants: + - valid_option_file: + windows_file = "/Windows/System32/drivers/etc/hosts" + linux_file = "/etc/hosts" + file_status_error = "no" + variants: + - exist_file: + file_ref = "exist_file" + #add a foo_line to exist_file + addition_edit = "yes" + foo_line = "#foo" + - invalid_option_file: + file_status_error = "yes" + variants: + - wrong_file: + file_ref = "/etc/foo" + - none_file: + file_ref = "" + variants: + - normal_test: + - with_new_vm_name: + addition_status_error = no + only valid_option_file.exist_file.valid_option_vm.vm_name + variants: + - number: + new_vm_name = 12345678 + - symbol: + new_vm_name = "#" + escape_name = yes + - symbol_letter_number: + new_vm_name = "-vm1" + prefix_option = "--" + - with_additional_args: + only valid_option_file.exist_file.valid_option_vm + addition_status_error = "yes" + suffix_option = "xyz" + - with_vm_running: + only valid_option_file.exist_file.valid_option_vm.vm_name + addition_status_error = "yes" + vm_running = yes + - with_libvirt_off: + variants: + - with_vm_disk: + only valid_option_file.exist_file.valid_option_vm.vm_disk + addition_status_error = "no" + libvirtd = "off" + - with_vm_uuid: + only valid_option_file.exist_file.valid_option_vm.vm_uuid + addition_status_error = "yes" + libvirtd = "off" + - with_vm_name: + only valid_option_file.exist_file.valid_option_vm.vm_name + 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
There are some problems here still with possibly ambiguous param names. For example 'file_ref' and 'suffix_option'. I'm guessing you just forgot, which is no prob. After the pull/533 stuff is done, and we've settled on a libvirt_xml interface, let's look at fixing this up.
-- Chris Evich, RHCA, RHCE, RHCDS, RHCSS Quality Assurance Engineer e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
