bootstrap: Give step based installs/setup priority for qemu

Step based installs are a qemu feature, used to install
guests, so the step.cfg file should be given priority
in qemu sets.

With this patch, they'll have priority, together with
unattended_install in testing order.

CC: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu/tests/steps.py: Handle IOErrors during step engine replay

As we now start the vm paused in virt tests, it might
be a little while (some seconds) before the screendump
commands actually produce a screendump. So let's handle
IOErrors (file does not exist) when reading from the
screendump ppm file gracefully, just the same way we
do with other failures in the main test loop.

CC: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
standalone_test: Don't auto cut tag when custom cfg is provided

So, contrary to my belief, there's no easy heuristics to
auto guess what is the best test name display on custom
config files, since even fairly simple files can break
our assumptions entirely. So just give up on doing that
when a custom config file is provided - fall back to
just using the shortname as a test tag.

Another thing discovered when migrating an old test
set routine that required a custom cfg file.

CC: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
standalone_test: Fix bug when skipping test results

The test runner was not printing the 'pretty index'
and repeating the test names. Example:

(29/48) raw.smp2.WinXP.32.sp3.install: FAIL (0.82 s)
raw.smp2.WinXP.64.shutdown: SKIP
raw.smp2.WinXP.64.shutdown: SKIP
raw.smp2.WinXP.64.shutdown: SKIP
raw.smp2.WinXP.64.shutdown: SKIP
raw.smp2.WinXP.64.shutdown: SKIP
raw.smp2.WinXP.64.shutdown: SKIP
raw.smp2.WinXP.64.shutdown: SKIP
raw.smp2.WinXP.64.shutdown: SKIP
raw.smp2.WinXP.64.shutdown: SKIP

Fix this by moving initialization of the test object
before the 'dependencies satisfied' branch.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
cfg: add machines.cfg to gitignore

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cfg: change more occurrences of .64 to x86_64

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
standalone_test: provide a good error message for "./run -c mycfg.cfg"

This does not work because it looks for other config files in the cfg
directory of the current directory.  In most cases you will want to
use "-t qemu" or similar even with "-c" if you get this error, add
a hint.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
run: change default memory to 1024

This matches base.cfg, and is needed for some tests (such as
guest installation).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
unattended_install: let the user use the test runner to build a JeOS image

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
guest-os: add a bunch of unattended install URLs

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
guest-os: remove useless REPLACE_THIS_WITH_... settings

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
guest-os: move kernel_params to unattended_install sections

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
unattended_install: correctly point to installation repo URL

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
unattended_install: replace ks= and autoyast= arguments in the floppy_ks case

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
guest-os: add floppy_name default (SUSE)

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
guest-os: add floppy_name default (Fedora)

Fedora 17 and newer do not support floppy disks anymore for kickstarts,
now that kickstart choice has been moved to Dracut.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
guest-os: add floppy_name default (RHEL)

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
run: add --no-downloads option

This is useful if you want to do an unattended install, or anyway
get the image from other means.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu:cpuid: hypervisor signature tests

- leaf 0x40000000 idx 0x00 ebx,ecx,edx
     - kvm and hyperv variants
  - leaf 0x40000001 idx 0x00 eax

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
qemu:cpuid: hv_relaxed and hv_vapic tests

Signed-off-by: Igor Mammedov <imammedo@redhat.com>