kill_app.py: Kill selected application

This test is substitution (successor) for tests like rv_disconnect
where the one and only purpose is to kill application and
check exit code.

Signed-off-by: Vaclav Ehrlich <vehrlich@redhat.com>
rv_disconnect: Remove test

This test is substituted by kill_application test.

Signed-off-by: Vaclav Ehrlich <vehrlich@redhat.com>
rv_video.py: Spice video test

Test of video playback. Could be played in loop/one time,
fullscreen/windowed.

Signed-off-by: Vaclav Ehrlich <vehrlich@redhat.com>
rv_connect: SSL, audio, smartcard, ipv6, menu updates.

- remove kill_all function
- support for 4 tests for host subject values for ssl tests
 Testing: valid explicit host subject value, valid implicit host subject value,
 invalid explicit host subject value, invalid implicit host subject value.
- enable connecting using menu and not cli
 Done by adding a new parameter (rv_menu) and handling it accordingly
 Also renames and modifies send_ticket(), as this function is now
 more generic and allows sending of arbitrary strings; the new
 function might later be moved to qemu_vm.py or some utils
- add support for disable audio option
- add support for smartcard options
- add possibility to connect to ipv6 address

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
virttest/qemu_vm.py: spice related updates.

- add support to add the ip address for SSL Host Subject tests.
- add support for semicolon
- fix used port if VM running
 Previously, when the VM was already running the spice_port for the
 VM was automatically generated anyway -> VM had incorrect parameters
 and connection failed.
 This patch makes sure, that spice_port with which the VM got created
 will persist between launches of autotest.
- suppport to set VM listening address.
 Listening address can be none, explicit ipv4 or
 an explicit ipv6 address.
- add getting spice info from the qemu monitor
- add devices needed for smartcard support

Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
tests/rv_audio.py: Adds rv_audio test

This tests audio between client and guest

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
unattended/RHEL-6.3.ks:

- testing audio requires a loopback device
 This loads alsa loopback kernel modules by default at each start
 of our VMs.
 Note, that this does not modify the default devices.
- add Smart Card support packages to the VMs for testing
- add possibility to shutdown VM under test user

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
Signed-off-by: Vimal Patel <vipatel@redhat.com>
Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
utils_misc.py: Add function to convert ipv4 address to ipv6 format.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
qemu/tests/cfg/spice.cfg: Add spice tests.

- migration test
- audio test
- smartcard test
- video test
- vdagent test

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
qemu/cfg/tests-spice.cfg: Add spice test variants

- migration tests
- smartcard tests
- audio tests
- r-v connect through menu
- SSL subject tests
- vdagent restart/start tests
- ipv6 connect tests

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
tests/rv_vdagent.py:Add basic tests to test the spice vdagent service.

Adding 4 tests to test the spice vdagent service
(a) starting vdagent,
(b) stopping vdagent,
(c) restarting vdagent when it is running, and
(d) restarting vdagent when it is not running.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
virttest/utils_spice.py: Adding get_vdagent_status method.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
tests/rv_smartcard.py: Adding 2 Smart Card tests.

Adding 2 software smart card tests:
(1) Verifying the smartcard can be seen and certs
 in the smartcard can be seen.
(2) Verifying the smartcard can be seen and details
 of the certs in smartcard can be obtained.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
tests/smartcard_setup.py:Adding a setup test for smartcards.

The setup test will create certs on client that
will be used by remote-viewer to pass as options to the VM.

Signed-off-by: Vimal Patel <vipatel@redhat.com>
tests/rv_clearx.py: Restarts X server by killing Xorg

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
tests/rv_vmshutdown.py: Increase timeout for VM to be dead.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
shared/downloads/video-sample.ini: Video file asset

Add a video file asset definition which is
a requirement for spice video test.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>