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>
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>
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>
Add disk cache test cases.
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>
libvirt.test: Add some more fail information

1.Skip test if qga is not respond
2.Show the bug link for guest-shutdown
Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add fsfreeze command for qemu-agent-command test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Add managedsave tests after dompmsuspend; Fix some bugs for nagative tests.
Check libvirt version for cache option directsync; Improve the check_vm_partitions function.
Merge pull request #239 from liyangfnst/agent_more

libvirt.test: Add some more normal/error cases about sync test
libvirt.test: Fix some problems in test code

1.Restart cgconfig and libvirtd after test to recover env
2.Set swap off before memroy test
3.Fix checkpoint after domain clone
4.Change umount action's timeout to 120s

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Add save/restore tests after dompmsuspend; Fix some code bugs.