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>
virttest.qemu_devices: Fix machine_by_params name

This function accepts params and not variables now.

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

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices_unittest: Fix path references

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>