virt: Add possiblity to find subtests in more directory

example:
  ovirt tests in client/tests/ovirt wants to use test from kvm/tests/
  vm_type = ovirt

  other_tests_dirs = "kvm"
  This adds client/test/kvm/tests path to subtests dir group where
  subtest will be searched.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
test-spice.cfg.sample: Misc fixes

* removing duplicates in test-spice.cfg.sample
* also removed two duplicated lines
* added spice_gen_x509
* added spice_client_host_subject

Signed-off-by: Vaclav Ehrlich <vehrlich@redhat.com>
rv_connect.py: Add openssl support

Add openssl support required for spice ssl testing.
It creates command line options for remote-viewer, then
launches it.

Signed-off-by: Vaclav Ehrlich <vehrlich@redhat.com>
KVM test: cdrom_test bugfixes

* fix another issues with symlinks and abs-paths
* detect the right cdrom device
* fix issue with locked cdrom (workaround not needed)
* improve comments and code-style (pylint)

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt.kvm_vm: Fix virtio_scsi cdrom in qemu_cmd

fixes incorrect bus name for virtio_scsi cdroms.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt.kvm_vm: Fix usb2 cdrom in qemu_cmd

fixes missing bus and port for usb2 cdroms.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt: Make vm_type and connect_uri as defaults

There is a desire to keep these parameters out of the shared
base.cfg.sample file. However, they should be set prior to definition of
variants to allow them to be modified for testing.

Signed-off-by: Chris Evich <cevich@redhat.com>
cli/job: add --kernel-config option

Add a new command-line option to allow users to specify a kernel config_file
as previously the only way to do so would require them to specify a control
file with the kernel_list specified.  Intent is to make it easier to specify
both a kernel version and config_file for basic tests.

The new option accepts a comma separated list that is expected to match the
number of entries specifed in the --kernel option.

Signed-off-by: Daniel DeFolo <daniel.defolo@hp.com>
virt: Removes whitespace from libvirt_vm.py

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Add memory stress test to cpu_flags test

usage:
  ./cpuflags-test --stressmem 100 (in MB)

Signed-off-by: Jiří Župka <jzupka@redhat.com>
shared: Adds class for simple statistics and convert size function

convert_data_size('1M') == 1024 * 1024 bytes

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt.kvm: Unifying qmp/human monitor set_migration_speed

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt.kvm_vm: Adds possibility to don't wait for finish of migration

After setting not_wait_for_migration the kvm_vm.migration method
returns control to parent function immediately after sending
of migration command to qemu monitor.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds funtion to virt_utils install_cpuflags_util_on_vm

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds support for new QMP status command output.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
kvm-test: Repairs multihost control file

Repairs an error with processing test fail exception.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
kvm-tests: Adds tests for measure migration speed.

tests:
  1) Single host measure migration speed.
  2) Multi host measure migration speed.

description:
  1) start mem stresser in VM to avoid end of migraiton
  2) get statistic of migraiton speed
  3) kill VMs
  4) if migration speed is slower than desired migration speed it raise warning

Signed-off-by: Jiří Župka <jzupka@redhat.com>
netperf: add the default port to netserver

We launch netserver in remote system by ssh,
command will hang with RHEL5 guest, adding
the port parameter can resolve this issue.

Reported-by: Wenli Quan <wquan@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
virt: convert averages to float before compare

Currently the averages are string type. Sometimes,
the compare result will be wrong.

eg:
>>> 85.2 > 100
False
>>> "85.2" > "100"
True

Reported-by: Wenli Quan <wquan@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
netperf: enable burst ability in TCP_RR tests

We have many sessions in TCP_RR tests, burst ability is requested.
--enable-burst include intial request burst ability in _RR
               tests, may affect result

Signed-off-by: Amos Kong <akong@redhat.com>