shared.cfg: Disable S3/S4 test on all ppc64 guests

According to https://github.com/autotest/virt-test/pull/558
All S3/S4 tests should be disabled on ppc64 guests.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.usb: Disable xhci on old RHEL guests

These RHEL guests older than RHEL5 aren't shipped
with xhci driver. Disable xhci testing on them.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.usb: Disable usb_audio on RHEL7 host

The RHEL7 host doesn't have usb_audio support now.
Disable it.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Merge autotest and virttest cgroup_utils library

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #589 from ldoktor/framework

Merge autotest and virttest cgroup_utils library
qemu.tests: Add new test timerdevice.tscwrite

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
shared.deps: Add time-warp-test source code

This C code is used for time device testing.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.test: Add test for checking TSC sync for long time

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests: Add test timerdevice.tscsync.change_host_clksource

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests: Add test timerdevice.clock_drift_with_ntp

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.qemu_devices: Remove readconfig-like format of qemu representation

After a disucssion I'm removing the support for readconfig-like
format of qemu format.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Support for NO_EQUAL_STRING and EMPTY_STRING

It seems that some test uses those special keywords for negative
testing.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Fix __getitem__() of QSparseBus

iterate over values instead of keys.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Fix the _dev2addr() function of QSparseBus

QSparseBus uses integers for addressing. We have to get integer
from the device's address.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices_unittest: Add qemu_devices unittest

This is a first part of unittest which is focused on qemu devices.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices_unittest: Add tests related to buses

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Remove tailing ']' in DevContainer.str_long()

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Use is None for checking

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Fix DevContainer.cmdline() to start with char

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Fix HMP commands regexp

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>