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>
svirt_attach_disk: Add test cases for pool volume

Add test cases for netfs pool vol with virt_use_nfs sebool set.
Add iscsi and disk pool vol with check rawio capabilitiy.

Signed-off-by: Wayne Sun <gsun@redhat.com>
svirt_attach_disk: Fix typo and TestNAError usage problem

Fix TestNAError implicit substitue problem and s/successed/succeeded/

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

fix TestNAError usage problem
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>
svirt_attach_disk: Modify rawio capabilitiy check with bit and

Run capsh --decode on host will met problem on rhel6, so change
to use 'bit and' with rawio capabilitiy value.

Bug on rhel6:
  $ capsh --decode=fffffffc00020000
will got endless output in stdout

Signed-off-by: Wayne Sun <gsun@redhat.com>
libvirt.tests: Append lost disk format.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virtual_disks_multivms: Add test case for shared readonly iso img

Add test case for readonly iso for multiple vms, also add check
with seclabel of shared img and iso.

Signed-off-by: Wayne Sun <gsun@redhat.com>
modify for gluster pool and volume test
svirt_start_destroy: Add test cases for baselabel

Add test cases for selinux baselabel, also simplify filter names
in cfg.

Signed-off-by: Wayne Sun <gsun@redhat.com>
timer_management: Re-write test and add more cases

1. No need test all VMs on the host, run cases against one VM is enough.
2. Merge functions which has similar structures and steps.
3. Add more cases to cover specific timer name and 'present' value.

Signed-off-by: Yanbing Du <ydu@redhat.com>
conf_file.qemu_conf: Add test for auto_dump_*

Test auto_dump_* parameter in qemu.conf.

1) Change auto_dump_* in qemu.conf;
2) Restart libvirt daemon;
4) Check if file open state changed accordingly.

Signed-off-by: Hao Liu <hliu@redhat.com>
libvirt.tests: Amendments for migration with virtio-scsi device.

 * For some machine, dns does not work properly, it may
   takes very long time to login.So allow more time for logging.
 * Fix the codes for creating ssh-autologin.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Add libvirt API acl test case for virsh dompmsuspend

Update virsh dompmsuspend test case for test API 'pm-control' in
virDomainPtr set.

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_nfs_disk: Fix the env restore problem

Fix the qemu conf not restored problem, also update exportfs
option with 'fsid=0' to avoid exportfs problem on fedora.

Signed-off-by: Wayne Sun <gsun@redhat.com>
dac_nfs_disk: Clean up snapshot created imgs

The disk only snapshot img was not cleaned up after reset vm back,
record snapshot disk path after snapshot then clean them up in finally
env restore.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virsh.vcpupin: cover more cases

Signed-off-by: Yanbing Du <ydu@redhat.com>
libvirt.tests: Add testcases for qemu monitor commands - blockjob.

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