libvirt.virsh_console: Use new function in utils_test.libvirt

Signed-off-by: Kyla Zhang <weizhan@redhat.com>
Add test for virsh create

except --pass-fds becase it is used in container

Signed-off-by: Kyla Zhang <weizhan@redhat.com>
Add test for create lxc domain with --pass-fds

Add config and test for create lxc with --pass-fds

Signed-off-by: Kyla Zhang <weizhan@redhat.com>
libvirt_bench: Change the post_state to a list of states.

As we can not make sure the state after virsh shutdown, it
is about the performance of your machine at that time, this
patch make the post state work as a list. Add more state in
config file seperated with ','.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_bench: Wait for ttcp server be ready before we execute ttcp command on guest.

As we need some time to setup the server on host, we will get
some error in current test of libvirt_bench for ttcp.

This patch wait for the server end on host be ready and then
execute ttcp on guest.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-tests: Add test for virsh nodedev-reset

Test command: virsh nodedev-reset <device>

When `device_option` is:
1) resettable   : Try to reset specified device if it is resettable.
2) non-exist    : Try to reset specified device which doesn't exist.
3) non-pci      : Try to reset all local non-PCI devices.
4) active       : Try to reset specified device which is attached to VM.
5) unresettable : Try to reset all unresettable PCI devices.

Signed-off-by: Hao Liu <hliu@redhat.com>
libvirt: Add test for pool-edit

Signed-off-by: Yanbing Du <ydu@redhat.com>
virsh_nodememstats: Add some more test cases

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt_scsi: Add a case to test auto-attaching of scsi controller.

As new libvirt will auto-attach scsi controller for any scsi device,
this patch add a case to make sure the auto-attaching works well.

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

Test virsh command blockcommit:

    1) Prepare test environment.
    2) Commit changes from a snapshot down to its backing image.
    3) Recover test environment.
    4) Check result.

Signed-off-by: Guannan Ren <gren@redhat.com>
virsh.capabilities: fix bug for SMP machines

For machines that have more than one processor we must count all cores
for each processor to get the correct number of cpus.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
libvirt: Add virsh blockpull commandline testcase

Test virsh command blockpull:
    1) Prepare test environment.
    2) Populate a disk from its backing image.
    3) Recover test environment.
    4) Check result.

Signed-off-by: Guannan Ren <gren@redhat.com>
Merge pull request #11 from Antique/virsh-capabilities

virsh.capabilities: fix bug for SMP machines
tp-libvirt: Add provider libs

The module virsh is heavily modified by libvirt tests,
yet it is used by core virt-test functionality, although
a limited subset of APIs.

From now on, new virsh additions should be done in
the virsh provider lib, and tests themselves should
use provider.virsh instead of virttest.virsh.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tp-libvirt: Reorganize imports

Reorganize imports for all libvirt tests, and make use of the
new provider.virsh library.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #12 from autotest/provider-libs

Provider libs