libvirt.tests: add test cases for virsh blkdeviotune

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
virsh.capabilities: Check power management

1) Add checking for power management support again result of
   `pm-is-supported`
2) Rewrite all XML parsing using libvirt_xml module.

Signed-off-by: Hao Liu <hliu@redhat.com>
add test for virt-xml-validate

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>

virt_xml_validate: fix an spelling error in cfg and provide an interface for other schemas.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Add test for virt-top.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>

virt_top: remove an unused variable.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt.test: Improve virsh console test for lxc

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Improve virsh shutdown test for lxc

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Improve virsh reboot test for lxc

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Improve virsh setmem test for lxc

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Improve virsh setmaxmem test for lxc

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Improve virsh schedinfo test for lxc

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Improve vncdisplay test for lxc

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Add at/detach-disk test for lxc

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Fix a bug for attach-device

In old libvirt version, '--config' and '--persistent'
cannot be used together. and we'd better test them
separately.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Modify target_uri param to use remote_ip

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
dompmsuspend: Add VM S3/S4 enable/disable test

1) Test enable and disable VM's S3/S4 capabilities in pm tag.
2) Update test case to check standard error message.
3) Activate a swap partition if the VM don't have one when testing
   S4.
4) Remove unneeded check of pm-utils installation.

Signed-off-by: Hao Liu <hliu@redhat.com>
Merge pull request #172 from chuanchang/virsh_blkdeviotune_test

libvirt.tests: add test cases for virsh blkdeviotune
libvirt.tests: enhance blkdeviotune test to get target automatically.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.test: Skip test if current large than max vcpu

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #222 from liyangfnst/lxc_test

libvirt.test: Improve virsh command test for lxc driver VM
libvirt.conf: Add test for host_uuid option

Test host_uuid parameter in libvird.conf.

1) Change host_uuid in libvirtd.conf;
2) Restart libvirt daemon;
3) Check if libvirtd successfully started;
4) Check current host UUID by `virsh capabilities`;

Signed-off-by: Hao Liu <hliu@redhat.com>