Signed-off-by: Tang Chen <[email protected]>
---
client/virt/subtests.cfg.sample | 123 +++++++++++++++++++++++++++++++++++++++
1 file changed, 123 insertions(+)
diff --git a/client/virt/subtests.cfg.sample b/client/virt/subtests.cfg.sample
index 099f28e..36ac612 100644
--- a/client/virt/subtests.cfg.sample
+++ b/client/virt/subtests.cfg.sample
@@ -307,6 +307,129 @@ variants:
libvirtd = "off"
status_error = "yes"
+ - virsh_attach_detach_interface:
+ type = virsh_attach_detach_interface
+ start_vm = no
+ at_options = ""
+ dt_options = ""
+ vm_ref = name
+ pre_vm_state = running
+ libvirtd_state = on
+ status_error = no
+ no_attach = no
+ delay = 10
+ test_times = 1
+ # Nic information.
+ device = interface
+ device_type = bridge
+ device_source = virbr0
+ device_targets = vnet1
+ auto_target = no
+ auto_nic_mac = yes
+ bus_type = virtio
+ variants:
+ - attach_interface:
+ test_cmd = attach-interface
+ - detach_interface:
+ test_cmd = detach-interface
+ device_targets = ""
+ variants:
+ - no_vm_name:
+ vm_ref = ""
+ status_error = yes
+ - vm_id:
+ vm_ref = id
+ - hex_vm_id:
+ vm_ref = hex_id
+ status_error = yes
+ - invalid_vm_id:
+ vm_ref = invalid_id
+ invalid_vm_id = 9999
+ status_error = yes
+ - vm_name:
+ - num_vm_name:
+ vm_ref = new_name
+ new_vm_name = 12345678
+ - pound_vm_name:
+ vm_ref = invalid_vm_name
+ # The \ here is used as a escape character.
+ invalid_vm_name = "\#"
+ status_error = yes
+ - dash_vm_name:
+ vm_ref = new_name
+ new_vm_name = "-vm1"
+ - vm_suspend:
+ pre_vm_state = paused
+ - libvirtd_stop:
+ libvirtd_state = off
+ status_error = yes
+ - vm_uuid:
+ vm_ref = uuid
+ - invalid_vm_uuid:
+ vm_ref = invalid_vm_uuid
+ invalid_vm_uuid = 99999999-9999-9999-9999-999999999999
+ status_error = yes
+ - vm_shutdown:
+ pre_vm_state = "shut off"
+ status_error = yes
+ - invalid_type:
+ device_type = xyz
+ status_error = yes
+ - invalid_option_1:
+ at_options = xyz
+ dt_options = xyz
+ status_error = yes
+ - invalid_option_2:
+ at_options = "--xyz"
+ dt_options = "--xyz"
+ status_error = yes
+ - invalid_option_3:
+ only detach_interface
+ dt_options = xyz
+ auto_nic_mac = no
+ status_error = yes
+ - invalid_source:
+ only attach_interface
+ device_source = xyz
+ status_error = yes
+ - target_vnet0:
+ only attach_interface
+ device_targets = vnet0
+ status_error = yes
+ - invalid_mac:
+ invalid_nic_mac = xyz
+ status_error = yes
+ - twice_same_mac:
+ test_times = 2
+ device_targets = vnet1 vnet2
+ nic_macs = 02:17:42:2F:99:01 02:17:42:2F:99:01
+ auto_nic_mac = no
+ status_error = yes
+ - invalid_script:
+ only attach_interface
+ at_options = "--script xyz"
+ status_error = yes
+ - loop_10:
+ only attach_interface
+ test_times = 10
+ auto_target = yes
+ - remote:
+ # Here, we test -c option. We first login into a remote
+ # host, and connect back to local host uri to test
+ # -c option. This is being improved.
+ remote_ip = REMOTE_HOST_IP
+ back_uri = qemu+ssh://LOCAL_HOSTNAME.EXAMPLE.COM/system
+ remote_user = root
+ remote_pwd = REMOTE_HOST_ROOT_PASSWORD
+ remote_prompt = #
+ - vm_running_persistent:
+ at_options = "--persistent"
+ dt_options = "--persistent"
+ - vm_shutdown_persistent:
+ at_options = "--persistent"
+ dt_options = "--persistent"
+ pre_vm_state = "shut off"
+
- module_probe:
type = module_probe
# You can specify your own module list, though it is not needed
usually.
--
1.7.10.2
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest