Add test for clear_emulator_capabilities in qemu.conf

Test clear_emulator_capabilities parameter in qemu.conf.

1) Change clear_emulator_capabilities in qemu.conf;
2) Restart libvirt daemon;
3) Check if libvirtd successfully started;
4) Check if qemu process capabilities changed accordingly;

Signed-off-by: Hao Liu <hliu@redhat.com>
Add test for set_process_name in qemu.conf

Test set_process_name parameter in qemu.conf.

1) Change set_process_name in qemu.conf;
2) Restart libvirt daemon;
3) Check if libvirtd successfully started;
4) Check if qemu command line changed accordingly;

Signed-off-by: Hao Liu <hliu@redhat.com>
Add test for seccomp_sandbox in qemu.conf

Test seccomp_sandbox parameter in qemu.conf.

1) Change seccomp_sandbox in qemu.conf;
2) Restart libvirt daemon;
3) Check if libvirtd successfully started;
4) Check if qemu command line changed accordingly;

Signed-off-by: Hao Liu <hliu@redhat.com>
Cpu mode test case with managedsave command.
virsh.cpu_baseline: Using baseline cpu to config guest

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh.iface_bridge: add a negative case for iface not existing.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virsh.iface_bridge: fix bug when delay is not zero.

    when option of delay is not zero, we will get a FAIL in test.
    Because the default ping count is 3, so it will fail to ping
    remote_ip in 3 second.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
dac_nfs_disk: Add test cases for domain vol on netfs pool

Test start domain with netfs pool vol, while netfs server exportfs
with root_squash, no_root_squash and ro options.

The test scenarios including:
1. ro: domain will fail to start with nfs vol.
2. no_root_squash: start domain depends on the nfs file ownership,
   user, group and dynamic_ownership option in qemu.conf.
3. root_squash: start domain depends on the nfs file ownership,
   user and group option in qemu.conf.

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_nfs_disk: Fix typo

s/successed/succeeded/

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_nfs_disk: Add test case for disk snapshot with img backing file on nfs

Add test case for bug:
https://bugzilla.redhat.com/show_bug.cgi?id=822015

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_nfs_save_restore: Add test cases for save and restore domain with nfs file

For save domain to nfs file, 2 scenarios need be concerned:
  1. the file did not exist, root_squash will fail
  2. the file exist, similar to dac_nfs_disk test scenarios

In this commit, restore from file is following behind succeeded domain
saving, so the rule for restore follows as save.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virsh.setmem: Update case for inactive dominfo change

In the following patch inactive domain used memory is shown as 0 in
`virsh dominfo`.
https://www.redhat.com/archives/libvir-list/2014-July/msg00887.html

This patch fix setmem according to this change.

Signed-off-by: Hao Liu <hliu@redhat.com>
virsh.dumpxml: cpu features check enhancement

In the case, custom_cpu() hard code the feature name and policy to
update domain xml.  When check cpu features after run vrish dumpxml
command, we need check if the added features are supported by host
to get the expect require features.

Signed-off-by: Yanbing Du <ydu@redhat.com>
libvirt.tests: Add testcases for migrating with virtio-scsi devices.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Add test for option libvirtd_config in sysconfig file

Test libvirtd_config parameter in /etc/sysconfig/libvirtd.

1) Change libvirtd_config in sysconfig;
2) Change host_uuid in newly defined libvirtd.conf file;
3) Restart libvirt daemon;
4) Check if libvirtd successfully started;
5) Check if host_uuid updated accordingly;

Signed-off-by: Hao Liu <hliu@redhat.com>
libvirt.tests: Support default value for --timeout in .cfg files for virsh migrate.

Migrate with stress may cost more than the old default value for
"virsh migrate --timeout", which was 60 and was assigned in the .py files.
This patch provides "virsh_migrate_timeout" param in .cfg files.
Add more managedsave cases.

Autostart the managedsave guest with auto_start_bypass_cache=1 in qemu.conf.
The managed save image is removed when undefining the domain with "--manage-save" flag.
List the domains with managed save state.
Managedsave with security_driver option.
Modify parameters of set_seclabel function as for autotest/virt-test#1794.
Add managedsave tests after dompmsuspend; Fix some bugs for nagative tests.
libvirt.tests: Append lost disk format.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>