cfg files: Access cfg files on both specific and shared dirs the same way

Fix an inconsistency in the bootstrap setup, making it
better for automated next regression testing.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: Fix utils_net / unittest KVM -> Qemu

Signed-off-by: Chris Evich <cevich@redhat.com>
update_config: Also include subtests.cfg creation

So that the config is fully functional.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt-libvirt: VMXML.new_from_dumpxml bugfix

Parameters to VMXML instantiation were wrong.  Added unittest
to flag related problems with this method in future.

Signed-off-by: Chris Evich <cevich@redhat.com>
Fix some other references to vm_type = kvm

Change those to 'qemu'.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu test: Add sr_iov_boot_negative.py test script

This script covers some sr-iov negative boot test case.
Boot sr-iov device with invalid parameter.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu test: Add sr_iov_hotplug_negative.py test script

This script covers some sr-iov hotplug negative test case.
Hotplug sr-iov device with invalid parameters.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu: Add sr-iov negative test cases

It covers the following sr-iov negative test cases:

[KVM_AUTOTEST][SR-IOV] RFE: Hotplug VF/PF with invalid addr value
[KVM_AUTOTEST][SR-IOV] Generate -1 VF from one PF
[KVM_AUTOTEST][SR-IOV] Hot add a VF with iommu turned off
[KVM_AUTOTEST][SR-IOV] Remove SR-IOV driver while VF is in use by guest
[KVM_AUTOTEST][SR-IOV] Assign a PCI device to qemu guest in -no-kvm mode
[KVM_AUTOTEST][SR-IOV] Assign multiple VFs to multiple guests
[KVM_AUTOTEST][SR-IOV] RFE: Generate more than Max VFs from one PF

Signed-off-by: Feng Yang <fyang@redhat.com>
guest-hw.cfg: Update driver_option for more_than_max_vfs and negative_max_vfs cases

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu: add chardev_hotplug test

Hotplug a number of chardev devices to qemu and
verify whether they have the expected functionality.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
virt: Multi-host repair compatibility with new virt cfg structure.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds test for vhost and adds minor repair for file transfer tests.

vhost test: tests for migration with different vhost param setup.
repair: multi-host file transfer test. The test correctly delete all files
        which are used for testing and adds parameter for "del_file_with_err"
        control deleting of files used for testing.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: cartesian_config catch another cfg error.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt-libvirt: add configuration for virsh edit

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: add virsh function for virsh edit

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt-libvirt: add test for virsh edit

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
guest-os.cfg: Purging unused guest OS

Our config file has been carrying out a bunch of guest
OS that are way too old, and nobody has been using them.
Let's purge those, and when we get to a point where
the step engine is more widely used, we can add new
legac guests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Add general option --list-guests

Although we want JeOS to be as flexible and useful for
people as possible, it may not be the best option for
all people. Therefore, make it possible for people to
choose which guest OS they want to use with the tests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Add general option --guest-os (-g)

Make it possible to select which guest OS to select for
the given test run. Besides from JeOS, other guest OS
require that the user download the pre-installed images.

Some additional patches add the ability to display which
images had already been downloaded.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
standalone_test: Inform user which guest OS images are missing

In order for the --list-guests options to be useful, check
whether the appropriate qcow2 images are available, and
if not, tell the user that the given image is missing.

By default, after bootstrap only the JeOS should be
available, all other guest images should be missing.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>