[PATCH 0/4] tests/qtest: Introduce qtest_get_base_arch() and qtest_get_arch_bits()

Philippe Mathieu-Daudé posted 4 patches 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231010074952.79165-1-philmd@linaro.org
Maintainers: John Snow <jsnow@redhat.com>, Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Fam Zheng <fam@euphon.net>, Peter Maydell <peter.maydell@linaro.org>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <anisinha@redhat.com>, Alexander Bulekov <alxndr@bu.edu>, Bandan Das <bsd@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Darren Kenny <darren.kenny@oracle.com>, Qiuhao Li <Qiuhao.Li@outlook.com>, Dmitry Fleytman <dmitry.fleytman@gmail.com>, Akihiko Odaki <akihiko.odaki@daynix.com>, Nicholas Piggin <npiggin@gmail.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, "Cédric Le Goater" <clg@kaod.org>, David Gibson <david@gibson.dropbear.id.au>, Harsh Prateek Bora <harshpb@linux.ibm.com>, Jeuk Kim <jeuk20.kim@samsung.com>, Gerd Hoffmann <kraxel@redhat.com>, Jason Wang <jasowang@redhat.com>, Amit Shah <amit@kernel.org>
tests/qtest/libqtest.h            | 15 ++++++++++
tests/qtest/ahci-test.c           |  5 ++--
tests/qtest/am53c974-test.c       |  4 +--
tests/qtest/arm-cpu-features.c    | 49 +++++++++++++++----------------
tests/qtest/bios-tables-test.c    | 22 +++++++-------
tests/qtest/boot-sector.c         |  6 ++--
tests/qtest/device-plug-test.c    |  6 ++--
tests/qtest/drive_del-test.c      | 16 ++++------
tests/qtest/erst-test.c           |  4 +--
tests/qtest/fuzz-e1000e-test.c    |  4 +--
tests/qtest/ivshmem-test.c        |  6 ++--
tests/qtest/libqos/qos_external.c |  6 ++--
tests/qtest/libqtest.c            | 49 +++++++++++++++++++++++++++++++
tests/qtest/lpc-ich9-test.c       |  4 +--
tests/qtest/m48t59-test.c         |  6 ++--
tests/qtest/pxe-test.c            |  6 ++--
tests/qtest/qos-test.c            |  6 ++--
tests/qtest/readconfig-test.c     |  6 +---
tests/qtest/rtas-test.c           |  4 +--
tests/qtest/ufs-test.c            |  4 +--
tests/qtest/usb-hcd-uhci-test.c   |  6 ++--
tests/qtest/virtio-net-test.c     |  3 +-
tests/qtest/virtio-rng-test.c     |  4 +--
23 files changed, 138 insertions(+), 103 deletions(-)
[PATCH 0/4] tests/qtest: Introduce qtest_get_base_arch() and qtest_get_arch_bits()
Posted by Philippe Mathieu-Daudé 7 months ago
When unifying some 32/64 architectures as a single binary
(for example i386 & x86_64 -> x86), some qtests fail because
we lose some information (the arch bits).

This series introduce the tuple qtest_get_base_arch() /
qtest_get_arch_bits() to allow the tests to keep passing.

Eventually we should remove qtest_get_arch() entirely
and rename qtest_get_base_arch() -> qtest_get_arch().

So far these changes are sufficient to keep me progressing,
so posting up to this point.

Philippe Mathieu-Daudé (4):
  tests/libqtest: Introduce qtest_get_arch_bits()
  tests/qtest: Use qtest_get_arch_bits()
  tests/libqtest: Introduce qtest_get_base_arch()
  tests/qtest: Use qtest_get_base_arch()

 tests/qtest/libqtest.h            | 15 ++++++++++
 tests/qtest/ahci-test.c           |  5 ++--
 tests/qtest/am53c974-test.c       |  4 +--
 tests/qtest/arm-cpu-features.c    | 49 +++++++++++++++----------------
 tests/qtest/bios-tables-test.c    | 22 +++++++-------
 tests/qtest/boot-sector.c         |  6 ++--
 tests/qtest/device-plug-test.c    |  6 ++--
 tests/qtest/drive_del-test.c      | 16 ++++------
 tests/qtest/erst-test.c           |  4 +--
 tests/qtest/fuzz-e1000e-test.c    |  4 +--
 tests/qtest/ivshmem-test.c        |  6 ++--
 tests/qtest/libqos/qos_external.c |  6 ++--
 tests/qtest/libqtest.c            | 49 +++++++++++++++++++++++++++++++
 tests/qtest/lpc-ich9-test.c       |  4 +--
 tests/qtest/m48t59-test.c         |  6 ++--
 tests/qtest/pxe-test.c            |  6 ++--
 tests/qtest/qos-test.c            |  6 ++--
 tests/qtest/readconfig-test.c     |  6 +---
 tests/qtest/rtas-test.c           |  4 +--
 tests/qtest/ufs-test.c            |  4 +--
 tests/qtest/usb-hcd-uhci-test.c   |  6 ++--
 tests/qtest/virtio-net-test.c     |  3 +-
 tests/qtest/virtio-rng-test.c     |  4 +--
 23 files changed, 138 insertions(+), 103 deletions(-)

-- 
2.41.0