Add JeOS minimal guest

After exploring some possibilities, we came up with a
minimal Fedora install, which presents an interesting
compromise between features and disk space. The idea
is to host the compressed image on my FedoraPeople
area and have code to automatically download it if it's
missing, and subsequently cache it.

The unattended install variant is in fact only for
people that, for some weird reason want to rebuild
the minimal guest on a convenient way, nothing more
than that.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Modify run script to take advantage of JeOS

Modify the virt assistant function to:

 1) Download the JeOS image
 2) Setup the environment non interactively

So it all will be done without user intervention.
The first time the JeOS will have to be built,
a couple of minutes to download the 120MB compressed
image + 1 minute to uncompress the image will be
required, after that it'll keep using the uncompressed
image, unless you want to replace it by the pristine
file you have on your hard drive, then you have to call
run with --restore-image.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
jeos: Use 7za rather than 7z

In Fedora, it requires less dependencies.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
utils_misc.virt_test_assistant: Tweaks and reorganization

Now setup log goes to main debug log, setup phase is
displayed as a test. Also, there was a bug on the
uncompress stage in case the image was already
uncompressed, fixed by passing the right flags to 7za.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: Unify and replace /tmp/kvm_autotest_root by /var/tmp/virt_test

There's no reason why all tests can't use a single roof
for their activities, moreover, /var/tmp is a safer place
to store isos and disk images, considering that we might
have /tmp on tmpfs on Fedora 18 on.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Allow to specify an arbitrary qemu version to test

This introduces the flag --qemu-bin, that allows people
to specify an arbitrary qemu built on your box, such as:

./run -t kvm --qemu-bin /home/lmr/Code/virt-test.git/kvm/install_root/bin/qemu-system-x86_64

And this will automatically run the tests with that qemu.

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

Add an option --test-list, that has to be used in
conjunction with -t (test_type):

./run -t kvm --list-tests
(display list of tests)

It'll connect the list to a less pipe, if less is
available, similar to what git does. It'll show all
tests available for the JeOS so one of them can be
chosen.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Allow to select a list of tests

Now that run can list the tests available, also allow
to specify a list of tests (space separated):

./run -t kvm --tests boot_with_usb reboot_with_usb

And it'll select and run those.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
shared/cfg/subtests.cfg.sample: Remove JeOS from some variants

In some cases, the test variant is irrelevant, in others,
JeOS lacks a working toolchain for it to work. So, let's
remove them and leave a more meaningful list of tests for
people interested in JeOS.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
run: Fix bug with option -c

With the new functionality to run tests, even when specifying
a custom config file we were applying a 'only migrate' block,
that's very likely to restrict all the tests run by the
specific configuration.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Add a new tests example config file

Since now the default tests.cfg is based on JeOS, we
cleaned up the old file and added more useful examples,
such as sets similar to the ones we run on our automated
KVM regression infrastructure.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
libvirt: Add better support on run

Allow jeos tests to work fine if you choose to run
libvirt tests. The user will have to be educated to
specify unattended_install.import.import if he/she
wants to run tests dependent on guests.

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