libvirt.test: Add abnormal resource test for some commands

These testcases test if commands executed succeed when
resource becomes to abnormal, like lack disk, cpu disable.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add some more cases for abnormal resource test

1.Add virsh snapshot-create and virsh dump command test
2.Add memory_lack, disk_lack, cpu_busy, twice_execute test type

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add some more normal/error cases about sync test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add some more normal/error cases for qemu-ga test

Add test for 'guest-ping', 'guest-fstrim', 'guest-fsfreeze-thaw',
'guest-fsfreeze-freeze', 'guest-fsfreeze-status' command

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Skip test if option doesn't exist

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Fix a typo in qemu-agent-command test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.tests: Support migration job for domjobabort test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.test: Add more cases(install, migration) for abnormal resource test

1.Add virt-intall and virsh migrate (--live) command test
2.Add timeout, remote network restart, readonly test type

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.tests: Support verification for migrate compcahce test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add testcase of compressed option for migrate.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add scsi disk test for virsh.migrate.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add compressed migration for stress tests.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
blockresize: Skip the qed test if not supported.

1) Skip the qed test for newer libvirt who don't support this format.

2) Fix raw checking math to fix an error.

Signed-off-by: Hao Liu <hliu@redhat.com>
Add tests for unix_socks_* in libvirtd.conf

Test unix_sock_* parameter in libvird.conf.

1) Change unix_sock_* in libvirtd.conf;
2) Restart libvirt daemon;
3) Check if libvirtd successfully started;
4) Check if libvirtd socket file changed accordingly;

Signed-off-by: Hao Liu <hliu@redhat.com>
virsh_nodeinfo: Also compare cpu topolopy with virsh capabilities output

Signed-off-by: Yanbing Du <ydu@redhat.com>
libvirt.test: Skip test if disk source is a volume

when execute undefine with '--remove-all-storage', the
associated storage volumes will be removed, it's dangerous
for domain.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
attach_device: Support more device target bus for disk attach

1. libvirt support virtio, usb and scsi device target bus for disk attach,
so move class VirtIODiskBasic to VirtualDiskBasic to support target bus
specified in cfg.
2. Add two positive cases for usb and scsi disk attach and two negative
cases.

Signed-off-by: Yanbing Du <ydu@redhat.com>
attach_device: Fail early if attach-device command return value is not
expected

If test fail at attach-device step, it's unnecessary to run
preboot_action  and postboot_action steps.

Signed-off-by: Yanbing Du <ydu@redhat.com>
attach_device: Skip serial relate test if it not supported

Signed-off-by: Yanbing Du <ydu@redhat.com>
setvcpus: Test maximum CPUs exceeding topology limit

Start guest will fail if maximum CPUs greater than topology limit.

Signed-off-by: Yanbing Du <ydu@redhat.com>