[PULL 00/37] qtests fixes

Thomas Huth posted 37 patches 1 year, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220928071843.1468323-1-thuth@redhat.com
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Thomas Huth <thuth@redhat.com>, Wainer dos Santos Moschetta <wainersm@redhat.com>, Beraldo Leal <bleal@redhat.com>, John Snow <jsnow@redhat.com>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Cédric Le Goater" <clg@kaod.org>, Peter Maydell <peter.maydell@linaro.org>, Andrew Jeffery <andrew@aj.id.au>, Joel Stanley <joel@jms.id.au>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <ani@anisinha.ca>, 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>, Juan Quintela <quintela@redhat.com>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Markus Armbruster <armbru@redhat.com>, Coiby Xu <Coiby.Xu@gmail.com>, Jason Wang <jasowang@redhat.com>, Fam Zheng <fam@euphon.net>, Michael Roth <michael.roth@amd.com>, Konstantin Kostiuk <kkostiuk@redhat.com>
docs/devel/testing.rst                  | 30 ++++++++++++++++++
tests/qtest/fuzz/generic_fuzz_configs.h |  4 +--
tests/qtest/libqtest-single.h           |  4 +++
tests/qtest/libqtest.h                  |  8 +++++
tests/qtest/ahci-test.c                 | 36 ++++++++++++++++------
tests/qtest/aspeed_smc-test.c           |  5 ++-
tests/qtest/bios-tables-test.c          | 12 ++++++--
tests/qtest/boot-serial-test.c          | 11 ++++---
tests/qtest/cxl-test.c                  | 15 ++++-----
tests/qtest/device-plug-test.c          | 42 +++++++++++--------------
tests/qtest/fdc-test.c                  |  5 +--
tests/qtest/fuzz/virtio_blk_fuzz.c      |  4 +--
tests/qtest/hd-geo-test.c               | 24 +++++++--------
tests/qtest/i440fx-test.c               | 54 +++++++++------------------------
tests/qtest/ide-test.c                  | 30 ++++++++++++++----
tests/qtest/libqtest.c                  | 30 ++++++++++++------
tests/qtest/microbit-test.c             | 10 +++---
tests/qtest/migration-test.c            | 23 ++++++++++++++
tests/qtest/pflash-cfi02-test.c         | 15 +++++----
tests/qtest/qmp-test.c                  | 17 ++++++++---
tests/qtest/vhost-user-blk-test.c       |  3 +-
tests/qtest/vhost-user-test.c           | 10 +++---
tests/qtest/virtio-blk-test.c           |  4 +--
tests/qtest/virtio-net-failover.c       |  9 +++++-
tests/qtest/virtio-net-test.c           | 13 ++++----
tests/qtest/virtio-scsi-test.c          |  4 +--
tests/unit/test-image-locking.c         |  8 ++---
tests/unit/test-qga.c                   |  2 +-
tests/vhost-user-bridge.c               |  3 +-
.gitlab-ci.d/windows.yml                |  4 +--
tests/qtest/meson.build                 | 36 ++++++++++------------
31 files changed, 285 insertions(+), 190 deletions(-)
[PULL 00/37] qtests fixes
Posted by Thomas Huth 1 year, 7 months ago
The following changes since commit dbc4f48b5ab3e6d85f78aa4df6bd6ad561c3d152:

  Merge tag 'net-pull-request' of https://github.com/jasowang/qemu into staging (2022-09-27 11:08:36 -0400)

are available in the Git repository at:

  https://gitlab.com/thuth/qemu.git tags/pull-request-2022-09-28

for you to fetch changes up to 0b49bc1b713d6e3896179f9700c8c35e511075f6:

  docs/devel: testing: Document writing portable test cases (2022-09-27 20:51:21 +0200)

----------------------------------------------------------------
* Fixes for qtests and unit tests to be more portable to non-POSIX platforms

----------------------------------------------------------------
Bin Meng (33):
      tests/qtest: i440fx-test: Rewrite create_blob_file() to be portable
      tests/qtest: ahci-test: Avoid using hardcoded /tmp
      tests/qtest: aspeed_smc-test: Avoid using hardcoded /tmp
      tests/qtest: boot-serial-test: Avoid using hardcoded /tmp
      tests/qtest: cxl-test: Avoid using hardcoded /tmp
      tests/qtest: fdc-test: Avoid using hardcoded /tmp
      tests/qtest: generic_fuzz: Avoid using hardcoded /tmp
      tests/qtest: virtio_blk_fuzz: Avoid using hardcoded /tmp
      tests/qtest: ide-test: Avoid using hardcoded /tmp
      tests/qtest: vhost-user-blk-test: Avoid using hardcoded /tmp
      tests/qtest: virtio-blk-test: Avoid using hardcoded /tmp
      tests/qtest: virtio-scsi-test: Avoid using hardcoded /tmp
      tests/qtest: libqtest: Avoid using hardcoded /tmp
      tests/unit: test-image-locking: Avoid using hardcoded /tmp
      tests/unit: test-qga: Avoid using hardcoded /tmp
      tests: vhost-user-bridge: Avoid using hardcoded /tmp
      tests/qtest: Skip running virtio-net-test cases that require socketpair() for win32
      tests/qtest: Build test-filter-{mirror, redirector} cases for posix only
      tests/qtest: qmp-test: Skip running test_qmp_oob for win32
      tests/qtest: libqtest: Exclude the *_fds APIs for win32
      tests/qtest: {ahci, ide}-test: Use relative path for temporary files for win32
      tests/qtest: bios-tables-test: Adapt the case for win32
      tests/qtest: migration-test: Disable IO redirection for win32
      tests/qtest: microbit-test: Fix socket access for win32
      tests/qtest: libqtest: Replace the call to close a socket with closesocket()
      tests/qtest: migration-test: Skip running some TLS cases for win32
      .gitlab-ci.d/windows.yml: Display meson test logs
      tests/qtest: hd-geo-test: Avoid using hardcoded /tmp
      tests/qtest: pflash-cfi02-test: Avoid using hardcoded /tmp
      tests/qtest: qmp-test: Avoid using hardcoded /tmp
      tests/qtest: vhost-user-test: Avoid using hardcoded /tmp
      tests/qtest: boot-serial-test: Close the serial file before starting QEMU
      docs/devel: testing: Document writing portable test cases

Michael Labiuk (1):
      tests/x86: Move common code to function in device-plug-test

Xuzhou Cheng (3):
      tests/qtest: libqtest: Adapt global_qtest declaration for win32
      tests/qtest: ide-test: Open file in binary mode
      tests/qtest: virtio-net-failover: Disable migration tests for win32

 docs/devel/testing.rst                  | 30 ++++++++++++++++++
 tests/qtest/fuzz/generic_fuzz_configs.h |  4 +--
 tests/qtest/libqtest-single.h           |  4 +++
 tests/qtest/libqtest.h                  |  8 +++++
 tests/qtest/ahci-test.c                 | 36 ++++++++++++++++------
 tests/qtest/aspeed_smc-test.c           |  5 ++-
 tests/qtest/bios-tables-test.c          | 12 ++++++--
 tests/qtest/boot-serial-test.c          | 11 ++++---
 tests/qtest/cxl-test.c                  | 15 ++++-----
 tests/qtest/device-plug-test.c          | 42 +++++++++++--------------
 tests/qtest/fdc-test.c                  |  5 +--
 tests/qtest/fuzz/virtio_blk_fuzz.c      |  4 +--
 tests/qtest/hd-geo-test.c               | 24 +++++++--------
 tests/qtest/i440fx-test.c               | 54 +++++++++------------------------
 tests/qtest/ide-test.c                  | 30 ++++++++++++++----
 tests/qtest/libqtest.c                  | 30 ++++++++++++------
 tests/qtest/microbit-test.c             | 10 +++---
 tests/qtest/migration-test.c            | 23 ++++++++++++++
 tests/qtest/pflash-cfi02-test.c         | 15 +++++----
 tests/qtest/qmp-test.c                  | 17 ++++++++---
 tests/qtest/vhost-user-blk-test.c       |  3 +-
 tests/qtest/vhost-user-test.c           | 10 +++---
 tests/qtest/virtio-blk-test.c           |  4 +--
 tests/qtest/virtio-net-failover.c       |  9 +++++-
 tests/qtest/virtio-net-test.c           | 13 ++++----
 tests/qtest/virtio-scsi-test.c          |  4 +--
 tests/unit/test-image-locking.c         |  8 ++---
 tests/unit/test-qga.c                   |  2 +-
 tests/vhost-user-bridge.c               |  3 +-
 .gitlab-ci.d/windows.yml                |  4 +--
 tests/qtest/meson.build                 | 36 ++++++++++------------
 31 files changed, 285 insertions(+), 190 deletions(-)
Re: [PULL 00/37] qtests fixes
Posted by Stefan Hajnoczi 1 year, 7 months ago
Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes.