autotest/autotest — pull request #333 by lkocman (2012-05-03 01:15:23+00:00)
Title: virt/tests: new rv_connect.py

* depends on
* https://github.com/autotest/autotest/pull/332
* https://github.com/autotest/autotest/pull/331

new files: rv_connect.py, tests-spice.cfg.sample, control.spice

* requires (or is expected) commenting all spice options in base.cfg.sample (part of commit)

* only RHEL6.3beta+, Fedora18+ as earlier versions
does not have remote-viewer binary inside virt-viewer

* remote-viewer/virt-viewer is currently preffered
client for SPICE

* uses two guests for testing:
- one which uses vnc (not spice) and is used for
executing remote-viewer (package virt-viewer)
- one which uses spice and is used as target for
remote-viewer

* this simple test basically does following thing
1) killall Xorg
2) start Xorg
3) connect with remote-viewer to vm1 (with spice) by using
specified spice_port
4) uses netstat for checking established connection on specific
host and port (+ check for binary name)

Current issues that I need to solve:

* Can't use spice on both as last value set overrides the old one (need to better handling spice settings on multiple vms
* Can't use autogenerated ports as there is "vm does not match expected settings ... and it generates completely different port again
* todo add ssl and password support