libvirt: Add test module for virsh cpu-baseline

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: Add virsh function for virsh cpu-baseline

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virsh: Set auto_close before raise Error in init of VirshSession

 If we failed to init VirshSession and catch a error. There will be a virsh process out of control, beacause default auto_close of VirshSession if False.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
qemu: Add qemu-img cluster size check test

1) Create image without cluster_size option
2) Verify if the cluster_size is default value
3) Create image with cluster_size option
4) Verify if the cluster_size is the value set

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Acked-by: Qingtang Zhou <qzhou@redhat.com>
qemu: Add new test check block size

Check physical block size and logical block size for virtio block device:
1) Install guest with a new image.
2) Verify whether physical/logical block size in guest is same as qemu
   parameters.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Feng Yang<fyang@redhat.com>
Acked-by: Yiqiao Pu <ypu@redhat.com>
Signed-off-by: Feng Yang <fyang@redhat.com>
config: Add unattended_install's RHEL guest side config to check_block_size sub case.

Signed-off-by: Feng Yang <fyang@redhat.com>
standalone_test: Add profdir member to Test class

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.test : add test for qemu systemtap tracing

This patch add test for qemu systemtap tracing

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Merge pull request #366 from yangdongsheng/virsh_auto_close

virttest-virsh: Set auto_close before raise Error in init of VirshSession.
virttest.qemu_qtree: Fix a bug in check_guests_proc_scsi()

Fix an old bug introduced in 44d4805cbbec9ccd10ec5bb29bbe3fbf62c81177
The checked property offset should be 5.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.balloon_check: Make memory ballooning cases works for windows guests

Make the free memory check command configurable.

changes from v1:
  - Add the Windows guest memory judge code as the value get from
    windows should charge with different method.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.balloon_check: Add error context to this script

This test script has no error context and test step, this patch adds
them, and update some logging message.

Changes from V2:
 * Update docstring and error context message.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.balloon_check: Fix bug that global name 'cur_mem' is not defined

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.balloon_check: Check memory status after sub tests

Confirm the memory status after sub tests from both monitor and
inside guests.

changes from v1:
  - error message update

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.balloon_check: Update the related params for balloon_check

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.balloon_check: Improve the script

This patch mainly does following improvements:

Update the method to check memory from check different ways
for different OS to check the memory change in the test which may
works for both Windows and Linux.

Add a param to check if run sub test to make the operation of
separate evict and enlarge cases easier.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.balloon_check: Separate enlarge and evict cases

Update the related new parameters and separated the enlarge and evict
cases

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.balloon_disable: Add a subtest: ballon_disable

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.balloon_disable: Make balloon_disable could work with qmp monitor.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: Add test case balloon check qmp

In the kernel above 2.6.34, info balloon support more detail
messages. This case use to check if the output of info balloon
is suitable our expect.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>