libvirt: Add virsh net-info command test

New testcase: virsh_net_info.py/cfg
virttest.virsh: virsh net-info function
net_info(network, extra="", **dargs)
key_event_form.py: Rewrite from wxPython to PyGTK.

Signed-off-by: Milan Barta <mbarta@redhat.com>
rv_input.py: Rewrite from wxPython to PyGTK.

Signed-off-by: Milan Barta <mbarta@redhat.com>
tests/rv_clearx.py: Removing clearx

It's a lot better to clean interface from rv_connect

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
qemu/tests/smartcard_setup.py: Clear gnome session.

Clear gnome session in the beginning of the test.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
fullscreen_setup.py: Changing starting vdagent under root.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
libvirt-tests: Fix some emulatorpin errors

* Backup vm's xml for restoration. or the vm xml will change for
  set_emulatorpin cases.

* Move the test process into a try/finally block to ensure environment
  is cleaned up even if exception raised.

* Fix typo in cfg file causing duplicated test name: s/config/live

Signed-off-by: Hao Liu <hliu@redhat.com>
virttest: fix login refused when nettype is user

when nettype is 'user' localhost used as hostname by default, and login
windows guest via nc failed; fix it by get hostname/IP address via
socket module;

Signed-off-by: Xu Tian <xutian@redhat.com>
virttest.data_dir: add interface to get deps dir

Signed-off-by: Xu Tian <xutian@redhat.com>
Enable AHCI booting and sync Win2008-32 unattended file format

As NT 6.X OS has a limitation that install on non-AHCI hard drive
would result further booting on AHCI BSOD, this is the solution
to fix, per http://support.microsoft.com/kb/922976
and found that Win2008-32 lacks some cmd to update registry(64 has)
so sync it to same as 64bits, replaced some cmd(software install).

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
qemu/tests/rv_audio.py: Increase default acceptable pause

Some problems with alsa and loopback devices cause
some stuttering in the audio stream. Let's make the
rv_audio test more lenient, as we're interested in
seeing if there is *some* playback, not focusing in
the quality of the stream.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
qemu/tests/rv_smartcard.py: Rename Gemplus to Gemalto

The smartcard reader is emulated with new name - Gemalto
instead of Gemplus. So check for this name.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
client_guest_shutdown.py: Destroy VM gracefully.

If the shutdown is not successful, destroy the VM
gracefully, so It does not stay alive.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
qemu/cfg/tests-spice.cfg: Add rv file and gui tests.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
tests/rv_build_install.py: Change path to deploy epel repo func.

- Change path to deploy epel repository function which was moved
  to utils_spice under virttest.
- rv_clearx test does not exist anymore, use function from
  utils_spice as well.
- small refactor to fix warnings from pylint.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
virttest/utils_spice.py: Adding several functions.

Adding functions to install remote-viewer on windows client,
to generate a file with information required for connection
and also restarting of user interface on any VM (so far
linux only) and function for installing epel repo.

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
rv_connect.py: Add support for proxy, file and prepare win client

This patch changes how remote-viewer is executed, so that we can get
it to work on windows machines, with proxy and connecting using
a provided file.
Delete useless keys send for r-v menu test.

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
shared/unattended/RHEL-6-spice.ks: Add deps for GUI testing

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
JeOS 19: Add qemu-guest-agent

It was argued that the agent is closely related to
virtualization testing, and it is small enough to
justify inclusion.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1224 from autotest/jeos-19-update

JeOS 19: Add qemu-guest-agent