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.test: Fix bugs and remove cases from detach-device

1.Remove some cases for cdrom test
2.Check if option is supported by libvirt

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.tests: Add test module for vm disk's discard.

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>
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>
dac_start_destroy: Add dac test cases

DAC is default enabled security driver in libvirt. In this start
and destroy test, cover per-VM DAC setting, global configuration
in qemu.conf alone testing and mix per-VM and global testing.

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