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: 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>
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.
libvirt.test: Add some more case for ping commond of qga

1.Add halt status test
2.Add pm-suspend status test
3.Add guest cpu busy test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.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.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>