guestfish_block_dev: Add sfdisk, sfdisk-l, sfdiskM, sfdisk-N
guestfish_block_dev: Add sfdisk-disk-geometry,sfdisk-kernel-geometry
Add new file guestfish_lvm.cfg and guestfish_lvm.py for test lvm
related APIs
fix a issue that can not sfdisk for lvm
Revert "virsh.domdisplay: Only add port if nonzero for vnc"

This reverts commit 9cba9b688c72181af5574cfbc4512f17db77ec13.

This patch is wrong as it was a libvirt bug. We should be careful
about adapting tests to actual libvirt behavior as the libvirt could
be wrong, not the test itself.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
blockresize: Add more options for test

Adjust the cfg matrix to add the 'qed' disk type as well as an option
for using 'kb' and 'kib' as the scale/type of the value provided. The
virsh command will accept k, kib, and kb. Set the initial disk to
500K so that the resize will actually attempt something.  Using 1M
as an initial size and then using values that are the same for 'b', 'k',
and 'm' doesn't do anything.

Modify the test code to handle the new options and be able to account
for the lack of the fix for bz1002813 which results in an error when
'1000kb' is provided since 1000kb is not evenly divisible by 512 as
is required by qemu.  The libvirt code supplied for the bz will resize
the value to be aligned on 512 byte boundaries - so our test test will
need to account for that too.

As a side note the existing math to change values from the cfg
supplied value to an 'expected_value' made an assumption that
the value was 1024M to start with.
libvirt_bench/dump_with_netperf: fix the wrong method of _is_netperf_running().

The original method to verify that netperf is running in guest is wrong, we can
not see any process named netperf in guest. Instead, this patch check the log file
of autotest.netperf in guest and say that netperf is running in guest.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_bench: replace 'autotest' with 'autotest-local'

As autotest script is already removed, now we are using autotest-local
for it.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #139 from jferlan/blockresize

blockresize: Add more options for test
Merge pull request #164 from Antique/revert-vnc-patch

Revert "virsh.domdisplay: Only add port if nonzero for vnc"
Merge pull request #153 from vanbogithub/bfan-dev

Add sfdisk related test cases
Merge pull request #171 from yangdongsheng/libvirt_bench

libvirt_bench/dump_with_netperf: fix the wrong method of _is_netperf_run...
Add libvirt API ACL case for virsh save

Update test case and config for test API 'hibernate' in virDomainPtr set.
As API acl support is added in libvirt 1.1.1, use libvirt version check
function in provider before run the case.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add libvirt API acl test case for virsh restore

Update virsh restore test case for test API 'start' and 'write' in
virDomainPtr set.

Reverted change on utils_libvirtd with deprecated functions.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add libvirt API acl test case for virsh console

Update virsh console test case for test API 'open-device' in
virDomainPtr set.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add libvirt API acl test case for virsh dump

Update virsh restore test case for test API 'dump' in virDomainPtr set.

Reverted change on utils_libvirtd with deprecated functions.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add libvirt API acl test case for virsh sendkey

Update virsh sendkey test case for test API 'send-input' in virDomainPtr
set.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add libvirt API acl test case for virsh screenshot

Update virsh screenshot test case for test API 'screenshot' in
virDomainPtr set.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add libvirt API acl test case for virsh blockcopy

Update virsh blockcopy test case for test API 'block-write' and 'write'
in virDomainPtr set.

Revert update on utils_libvirtd with deprecated function.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Add libvirt API acl test case for virsh undefine

Update virsh undefine test case for test API 'write', 'save' and
'delete' in virDomainPtr set. The 'write' and 'save' is for define
command, 'delete' is for undefine command.
The define acl case is add here since virsh.define test case
not direct use virsh.command for testing. It will only be run
with 'setup_libvirt_polkit' as 'yes'.

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