[Qemu-devel] [PATCH 0/6] Get rid of global_qtest in q35-, qom-, numa- and more tests

Thomas Huth posted 6 patches 5 days ago
Test asan passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Test checkpatch failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190515174328.16361-1-thuth@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>
tests/device-introspect-test.c | 85 ++++++++++++++++++----------------
tests/hd-geo-test.c            | 76 ++++++++++++++++--------------
tests/libqos/virtio-mmio.c     |  2 +-
tests/libqos/virtio-pci.c      |  3 +-
tests/libqos/virtio.c          | 18 +++----
tests/libqos/virtio.h          |  3 +-
tests/numa-test.c              | 53 ++++++++++++---------
tests/q35-test.c               | 39 +++++++---------
tests/qom-test.c               | 28 ++++++-----
9 files changed, 163 insertions(+), 144 deletions(-)

[Qemu-devel] [PATCH 0/6] Get rid of global_qtest in q35-, qom-, numa- and more tests

Posted by Thomas Huth 5 days ago
Here are some more patches that get rid of global_qtest and related
functions in some of the qtests (hacked along the way while waiting
for other compilation and test processes to finish). A global variable
like global_qtest is very problematic in tests that track multiple test
states (like migration tests). But since we often share code between
tests, it is better to avoid these global_qtest related functions
completely - i.e. the plan is to get rid of global_qtest completely
in the long run.

Thomas Huth (6):
  tests/libqos: Get rid of global_qtest dependency in qvring_init()
  tests/q35-test: Make test independent of global_qtest
  tests/numa-test: Use qtest_init() instead of qtest_start()
  tests/qom-test: Use qtest_init() instead of qtest_start()
  tests/device-introspect: Use qtest_init() instead of qtest_start()
  tests/hd-geo-test: Use qtest_init() instead of qtest_start()

 tests/device-introspect-test.c | 85 ++++++++++++++++++----------------
 tests/hd-geo-test.c            | 76 ++++++++++++++++--------------
 tests/libqos/virtio-mmio.c     |  2 +-
 tests/libqos/virtio-pci.c      |  3 +-
 tests/libqos/virtio.c          | 18 +++----
 tests/libqos/virtio.h          |  3 +-
 tests/numa-test.c              | 53 ++++++++++++---------
 tests/q35-test.c               | 39 +++++++---------
 tests/qom-test.c               | 28 ++++++-----
 9 files changed, 163 insertions(+), 144 deletions(-)

-- 
2.21.0