[PATCH 00/10] More real qemu capability testing cleanups

Peter Krempa posted 10 patches 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1688477951.git.pkrempa@redhat.com
.../domaincapsdata/qemu_4.2.0-q35.x86_64.xml  |   5 +-
.../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml  |   5 +-
.../qemu_4.2.0-virt.aarch64.xml               |   5 +-
tests/domaincapsdata/qemu_4.2.0.aarch64.xml   |   5 +-
tests/domaincapsdata/qemu_4.2.0.ppc64.xml     |   5 +-
tests/domaincapsdata/qemu_4.2.0.s390x.xml     |   5 +-
tests/domaincapsdata/qemu_4.2.0.x86_64.xml    |   5 +-
.../domaincapsdata/qemu_5.0.0-q35.x86_64.xml  |   5 +-
.../qemu_5.0.0-tcg-virt.riscv64.xml           |   5 +-
.../domaincapsdata/qemu_5.0.0-tcg.x86_64.xml  |   5 +-
.../qemu_5.0.0-virt.aarch64.xml               |   5 +-
.../qemu_5.0.0-virt.riscv64.xml               |   5 +-
tests/domaincapsdata/qemu_5.0.0.aarch64.xml   |   5 +-
tests/domaincapsdata/qemu_5.0.0.ppc64.xml     |   5 +-
tests/domaincapsdata/qemu_5.0.0.x86_64.xml    |   5 +-
.../domaincapsdata/qemu_5.1.0-q35.x86_64.xml  |   5 +-
.../domaincapsdata/qemu_5.1.0-tcg.x86_64.xml  |   5 +-
tests/domaincapsdata/qemu_5.1.0.sparc.xml     |   5 +-
tests/domaincapsdata/qemu_5.1.0.x86_64.xml    |   5 +-
.../domaincapsdata/qemu_5.2.0-q35.x86_64.xml  |   5 +-
.../qemu_5.2.0-tcg-virt.riscv64.xml           |   5 +-
.../domaincapsdata/qemu_5.2.0-tcg.x86_64.xml  |   5 +-
.../qemu_5.2.0-virt.aarch64.xml               |   5 +-
.../qemu_5.2.0-virt.riscv64.xml               |   5 +-
tests/domaincapsdata/qemu_5.2.0.aarch64.xml   |   5 +-
tests/domaincapsdata/qemu_5.2.0.ppc64.xml     |   5 +-
tests/domaincapsdata/qemu_5.2.0.s390x.xml     |   5 +-
tests/domaincapsdata/qemu_5.2.0.x86_64.xml    |   5 +-
.../domaincapsdata/qemu_6.0.0-q35.x86_64.xml  |   5 +-
.../domaincapsdata/qemu_6.0.0-tcg.x86_64.xml  |   5 +-
.../qemu_6.0.0-virt.aarch64.xml               |   5 +-
tests/domaincapsdata/qemu_6.0.0.aarch64.xml   |   5 +-
tests/domaincapsdata/qemu_6.0.0.s390x.xml     |   5 +-
tests/domaincapsdata/qemu_6.0.0.x86_64.xml    |   5 +-
.../domaincapsdata/qemu_6.1.0-q35.x86_64.xml  |   5 +-
.../domaincapsdata/qemu_6.1.0-tcg.x86_64.xml  |   5 +-
tests/domaincapsdata/qemu_6.1.0.x86_64.xml    |   5 +-
.../domaincapsdata/qemu_6.2.0-q35.x86_64.xml  |   5 +-
.../domaincapsdata/qemu_6.2.0-tcg.x86_64.xml  |   5 +-
.../qemu_6.2.0-virt.aarch64.xml               |   5 +-
tests/domaincapsdata/qemu_6.2.0.aarch64.xml   |   5 +-
tests/domaincapsdata/qemu_6.2.0.ppc64.xml     |   5 +-
tests/domaincapsdata/qemu_6.2.0.x86_64.xml    |   5 +-
.../qemu_7.0.0-hvf.aarch64+hvf.xml            |   5 +-
.../domaincapsdata/qemu_7.0.0-q35.x86_64.xml  |   5 +-
.../domaincapsdata/qemu_7.0.0-tcg.x86_64.xml  |   5 +-
.../qemu_7.0.0-virt.aarch64.xml               |   5 +-
tests/domaincapsdata/qemu_7.0.0.aarch64.xml   |   5 +-
tests/domaincapsdata/qemu_7.0.0.ppc64.xml     |   5 +-
tests/domaincapsdata/qemu_7.0.0.x86_64.xml    |   5 +-
.../domaincapsdata/qemu_7.1.0-q35.x86_64.xml  |   5 +-
.../domaincapsdata/qemu_7.1.0-tcg.x86_64.xml  |   5 +-
tests/domaincapsdata/qemu_7.1.0.ppc64.xml     |   5 +-
tests/domaincapsdata/qemu_7.1.0.x86_64.xml    |   5 +-
.../qemu_7.2.0-hvf.x86_64+hvf.xml             |   5 +-
.../domaincapsdata/qemu_7.2.0-q35.x86_64.xml  |   5 +-
.../qemu_7.2.0-tcg.x86_64+hvf.xml             |   5 +-
.../domaincapsdata/qemu_7.2.0-tcg.x86_64.xml  |   5 +-
tests/domaincapsdata/qemu_7.2.0.ppc.xml       |   5 +-
tests/domaincapsdata/qemu_7.2.0.x86_64.xml    |   5 +-
.../domaincapsdata/qemu_8.0.0-q35.x86_64.xml  |   5 +-
.../qemu_8.0.0-tcg-virt.riscv64.xml           |   5 +-
.../domaincapsdata/qemu_8.0.0-tcg.x86_64.xml  |   5 +-
.../qemu_8.0.0-virt.riscv64.xml               |   5 +-
tests/domaincapsdata/qemu_8.0.0.x86_64.xml    |   5 +-
.../domaincapsdata/qemu_8.1.0-q35.x86_64.xml  |   5 +-
.../domaincapsdata/qemu_8.1.0-tcg.x86_64.xml  |   5 +-
tests/domaincapsdata/qemu_8.1.0.x86_64.xml    |   5 +-
tests/domaincapstest.c                        |   5 +-
tests/qemuagentdata/fsinfo.xml                |   4 +-
tests/qemuagenttest.c                         |   8 ++
.../internal-active-invalid.xml               |   4 +-
.../internal-inactive-invalid.xml             |   4 +-
.../redefine.xml                              |   9 +-
tests/qemudomaincheckpointxml2xmltest.c       |   6 +
.../disk_snapshot_redefine.xml                |   9 +-
.../external_vm_redefine.xml                  |   9 +-
.../full_domain.xml                           |   9 +-
.../qemudomainsnapshotxml2xmlout/metadata.xml |   9 +-
tests/qemudomainsnapshotxml2xmltest.c         |   6 +
tests/qemumemlocktest.c                       |  19 +--
tests/testutils.c                             |   2 +-
tests/testutilsqemu.c                         | 136 +++++++++++++-----
tests/testutilsqemu.h                         |  10 ++
84 files changed, 310 insertions(+), 279 deletions(-)
[PATCH 00/10] More real qemu capability testing cleanups
Posted by Peter Krempa 10 months ago
Few other patches to move towards purely real qemu-caps testing.

Peter Krempa (10):
  testutils: Print number of failed tests
  domaincapstest: Use obviously fake firmware name in capabilities
  testQemuGetRealCaps: Strip the default machine alias before insertion
    into cache
  testQemuGetRealCaps: Extract caching of the caps into a new helper
  testutilsqemu: Introduce 'testQemuInsertRealCaps' helper
  qemumemlocktest: Use 'testQemuInsertRealCaps'
  tests: qemudomainsnapshotxml2xmlout: Use real 'x86_64' capabilities in
    all test data
  qemuagenttest: Use real x86_64 capabilities for parsing domain
    definitions
  qemudomaincheckpointxml2xmltest: Use real 'x86_64' capabilities in all
    test data
  qemuTestDriverInit: Don't autopopulate qemu capabilities when
    initializing driver

 .../domaincapsdata/qemu_4.2.0-q35.x86_64.xml  |   5 +-
 .../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml  |   5 +-
 .../qemu_4.2.0-virt.aarch64.xml               |   5 +-
 tests/domaincapsdata/qemu_4.2.0.aarch64.xml   |   5 +-
 tests/domaincapsdata/qemu_4.2.0.ppc64.xml     |   5 +-
 tests/domaincapsdata/qemu_4.2.0.s390x.xml     |   5 +-
 tests/domaincapsdata/qemu_4.2.0.x86_64.xml    |   5 +-
 .../domaincapsdata/qemu_5.0.0-q35.x86_64.xml  |   5 +-
 .../qemu_5.0.0-tcg-virt.riscv64.xml           |   5 +-
 .../domaincapsdata/qemu_5.0.0-tcg.x86_64.xml  |   5 +-
 .../qemu_5.0.0-virt.aarch64.xml               |   5 +-
 .../qemu_5.0.0-virt.riscv64.xml               |   5 +-
 tests/domaincapsdata/qemu_5.0.0.aarch64.xml   |   5 +-
 tests/domaincapsdata/qemu_5.0.0.ppc64.xml     |   5 +-
 tests/domaincapsdata/qemu_5.0.0.x86_64.xml    |   5 +-
 .../domaincapsdata/qemu_5.1.0-q35.x86_64.xml  |   5 +-
 .../domaincapsdata/qemu_5.1.0-tcg.x86_64.xml  |   5 +-
 tests/domaincapsdata/qemu_5.1.0.sparc.xml     |   5 +-
 tests/domaincapsdata/qemu_5.1.0.x86_64.xml    |   5 +-
 .../domaincapsdata/qemu_5.2.0-q35.x86_64.xml  |   5 +-
 .../qemu_5.2.0-tcg-virt.riscv64.xml           |   5 +-
 .../domaincapsdata/qemu_5.2.0-tcg.x86_64.xml  |   5 +-
 .../qemu_5.2.0-virt.aarch64.xml               |   5 +-
 .../qemu_5.2.0-virt.riscv64.xml               |   5 +-
 tests/domaincapsdata/qemu_5.2.0.aarch64.xml   |   5 +-
 tests/domaincapsdata/qemu_5.2.0.ppc64.xml     |   5 +-
 tests/domaincapsdata/qemu_5.2.0.s390x.xml     |   5 +-
 tests/domaincapsdata/qemu_5.2.0.x86_64.xml    |   5 +-
 .../domaincapsdata/qemu_6.0.0-q35.x86_64.xml  |   5 +-
 .../domaincapsdata/qemu_6.0.0-tcg.x86_64.xml  |   5 +-
 .../qemu_6.0.0-virt.aarch64.xml               |   5 +-
 tests/domaincapsdata/qemu_6.0.0.aarch64.xml   |   5 +-
 tests/domaincapsdata/qemu_6.0.0.s390x.xml     |   5 +-
 tests/domaincapsdata/qemu_6.0.0.x86_64.xml    |   5 +-
 .../domaincapsdata/qemu_6.1.0-q35.x86_64.xml  |   5 +-
 .../domaincapsdata/qemu_6.1.0-tcg.x86_64.xml  |   5 +-
 tests/domaincapsdata/qemu_6.1.0.x86_64.xml    |   5 +-
 .../domaincapsdata/qemu_6.2.0-q35.x86_64.xml  |   5 +-
 .../domaincapsdata/qemu_6.2.0-tcg.x86_64.xml  |   5 +-
 .../qemu_6.2.0-virt.aarch64.xml               |   5 +-
 tests/domaincapsdata/qemu_6.2.0.aarch64.xml   |   5 +-
 tests/domaincapsdata/qemu_6.2.0.ppc64.xml     |   5 +-
 tests/domaincapsdata/qemu_6.2.0.x86_64.xml    |   5 +-
 .../qemu_7.0.0-hvf.aarch64+hvf.xml            |   5 +-
 .../domaincapsdata/qemu_7.0.0-q35.x86_64.xml  |   5 +-
 .../domaincapsdata/qemu_7.0.0-tcg.x86_64.xml  |   5 +-
 .../qemu_7.0.0-virt.aarch64.xml               |   5 +-
 tests/domaincapsdata/qemu_7.0.0.aarch64.xml   |   5 +-
 tests/domaincapsdata/qemu_7.0.0.ppc64.xml     |   5 +-
 tests/domaincapsdata/qemu_7.0.0.x86_64.xml    |   5 +-
 .../domaincapsdata/qemu_7.1.0-q35.x86_64.xml  |   5 +-
 .../domaincapsdata/qemu_7.1.0-tcg.x86_64.xml  |   5 +-
 tests/domaincapsdata/qemu_7.1.0.ppc64.xml     |   5 +-
 tests/domaincapsdata/qemu_7.1.0.x86_64.xml    |   5 +-
 .../qemu_7.2.0-hvf.x86_64+hvf.xml             |   5 +-
 .../domaincapsdata/qemu_7.2.0-q35.x86_64.xml  |   5 +-
 .../qemu_7.2.0-tcg.x86_64+hvf.xml             |   5 +-
 .../domaincapsdata/qemu_7.2.0-tcg.x86_64.xml  |   5 +-
 tests/domaincapsdata/qemu_7.2.0.ppc.xml       |   5 +-
 tests/domaincapsdata/qemu_7.2.0.x86_64.xml    |   5 +-
 .../domaincapsdata/qemu_8.0.0-q35.x86_64.xml  |   5 +-
 .../qemu_8.0.0-tcg-virt.riscv64.xml           |   5 +-
 .../domaincapsdata/qemu_8.0.0-tcg.x86_64.xml  |   5 +-
 .../qemu_8.0.0-virt.riscv64.xml               |   5 +-
 tests/domaincapsdata/qemu_8.0.0.x86_64.xml    |   5 +-
 .../domaincapsdata/qemu_8.1.0-q35.x86_64.xml  |   5 +-
 .../domaincapsdata/qemu_8.1.0-tcg.x86_64.xml  |   5 +-
 tests/domaincapsdata/qemu_8.1.0.x86_64.xml    |   5 +-
 tests/domaincapstest.c                        |   5 +-
 tests/qemuagentdata/fsinfo.xml                |   4 +-
 tests/qemuagenttest.c                         |   8 ++
 .../internal-active-invalid.xml               |   4 +-
 .../internal-inactive-invalid.xml             |   4 +-
 .../redefine.xml                              |   9 +-
 tests/qemudomaincheckpointxml2xmltest.c       |   6 +
 .../disk_snapshot_redefine.xml                |   9 +-
 .../external_vm_redefine.xml                  |   9 +-
 .../full_domain.xml                           |   9 +-
 .../qemudomainsnapshotxml2xmlout/metadata.xml |   9 +-
 tests/qemudomainsnapshotxml2xmltest.c         |   6 +
 tests/qemumemlocktest.c                       |  19 +--
 tests/testutils.c                             |   2 +-
 tests/testutilsqemu.c                         | 136 +++++++++++++-----
 tests/testutilsqemu.h                         |  10 ++
 84 files changed, 310 insertions(+), 279 deletions(-)

-- 
2.41.0
Re: [PATCH 00/10] More real qemu capability testing cleanups
Posted by Michal Prívozník 9 months, 3 weeks ago
On 7/4/23 15:40, Peter Krempa wrote:
> Few other patches to move towards purely real qemu-caps testing.
> 
> Peter Krempa (10):
>   testutils: Print number of failed tests
>   domaincapstest: Use obviously fake firmware name in capabilities
>   testQemuGetRealCaps: Strip the default machine alias before insertion
>     into cache
>   testQemuGetRealCaps: Extract caching of the caps into a new helper
>   testutilsqemu: Introduce 'testQemuInsertRealCaps' helper
>   qemumemlocktest: Use 'testQemuInsertRealCaps'
>   tests: qemudomainsnapshotxml2xmlout: Use real 'x86_64' capabilities in
>     all test data
>   qemuagenttest: Use real x86_64 capabilities for parsing domain
>     definitions
>   qemudomaincheckpointxml2xmltest: Use real 'x86_64' capabilities in all
>     test data
>   qemuTestDriverInit: Don't autopopulate qemu capabilities when
>     initializing driver
> 

>  84 files changed, 310 insertions(+), 279 deletions(-)
> 

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal