Skip to content

qtest: Test all targets

Andreas Färber qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest18 patches 5 repliesIn review
  2. v221 patches 16 repliesApplied
  3. v114 patches 3 repliesSuperseded

Changes in v3 from the cover letter

* Rebased onto mips and Makefile changes; ppc patches were applied.
* Use macros for machine list traversal.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18mips_mipssim: Silence BIOS loading warning for qtesthw/mips/mips_mipssim.c+3 -10 replies
2/18arm/boot: Turn arm_load_kernel() into no-op for qtest without -kernelhw/arm/boot.c+4 -03 replies
3/18puv3: Turn puv3_load_kernel() into a no-op for qtest without -kernelhw/unicore32/puv3.c+4 -00 replies
4/18mainstone: Don't enforce use of -pflash for qtesthw/arm/mainstone.c+4 -10 replies
5/18gumstix: Don't enforce use of -pflash for qtesthw/arm/gumstix.c+7 -40 replies
6/18z2: Don't enforce use of -pflash for qtesthw/arm/z2.c+3 -20 replies
7/18palm: Don't enforce loading ROM or kernel for qtesthw/arm/palm.c+2 -10 replies
8/18omap_sx1: Don't enforce use of kernel or flash for qtesthw/arm/omap_sx1.c+2 -10 replies
9/18exynos4_boards: Silence lack of -smp 2 warning for qtesthw/arm/exynos4_boards.c+2 -10 replies
10/18armv7m: Don't enforce use of kernel for qtesthw/arm/armv7m.c+14 -110 replies
11/18axis_dev88: Don't enforce use of kernel for qtesthw/cris/axis_dev88.c+6 -51 reply
12/18mcf5208: Don't enforce use of kernel for qtesthw/m68k/mcf5208.c+4 -00 replies
13/18an5206: Don't enforce use of kernel for qtesthw/m68k/an5206.c+4 -00 replies
14/18milkymist: Suppress -kernel/-bios/-drive error for qtesthw/lm32/milkymist.c+2 -10 replies
15/18shix: Drop debug outputhw/sh4/shix.c+0 -70 replies
16/18shix: Don't require firmware presence for qtesthw/block/tc58128.c hw/sh4/shix.c+11 -80 replies
17/18leon3: Don't enforce use of -bios with qtesthw/sparc/leon3.c+2 -10 replies
18/18qtest: Prepare QOM machine teststests/Makefile tests/qom-test.c+279 -00 replies

Reviews trailers per patch

5 of 18 patches have a Reviewed-by or Acked-by.

PatchMichael WalleStefan HajnocziAurelien JarnoEdgar E. Iglesias
1/18R-b
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18R-b
12/18
13/18
14/18A-b
15/18R-b
16/18R-b R-b
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/18] qtest: Test all targets

Hello,

As discussed on the KVM Call, this series extends test coverage to all 16 targets. For now it tests that QOM type changes do not lead to QOM cast assertions.

v3 macro'fies and cleans up ppcemb machine test setup.
There was a discussion of dropping usage of qtest_enabled() in favor of never erroring out in machine inits but Aurélien went ahead to restore mips error behavior, Markus suggested as alternative to supply dummy blobs and real blobs per machine seem infeasible. This solution seems the easiest way forward, be it an interim solution, so I am planning to take this through qom-next before I pull in more QOM realize conversions on so far untested machines. Similarly I see it as more important to get test coverage quickly than waiting for a working QMP query-machines based solution; if we do more than just machine instantiation, we will need to pass in machine-specific QOM paths anyway.

Regards,
Andreas

v2 -> v3:
* Rebased onto mips and Makefile changes; ppc patches were applied.
* Use macros for machine list traversal.

v1 -> v2:
* gumstix, z2: Avoided conditionalizing use of pflash device in favor of NULL bdrv.
* puv3: Limited qtest workaround to a NULL kernel_filename.
* Added error workarounds for milkymist, ppc405, shix and leon3.
* Cleaned up debug output for ppc405 and shix.
* Extended qom-test to cover virtually all machines, including n800 and pc.
* Moved machine names to arrays wherever sensible, to aid with extensibility.
* Adopted error_report() for armv7m, too.

Cc Anthony Liguori <[email protected]>
Cc Aurélien Jarno <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Peter Maydell <[email protected]>

Andreas Färber (18):
mips_mipssim: Silence BIOS loading warning for qtest arm/boot: Turn arm_load_kernel() into no-op for qtest without -kernel
puv3: Turn puv3_load_kernel() into a no-op for qtest without -kernel
mainstone: Don't enforce use of -pflash for qtest
gumstix: Don't enforce use of -pflash for qtest
z2: Don't enforce use of -pflash for qtest
palm: Don't enforce loading ROM or kernel for qtest
omap_sx1: Don't enforce use of kernel or flash for qtest
exynos4_boards: Silence lack of -smp 2 warning for qtest
armv7m: Don't enforce use of kernel for qtest
axis_dev88: Don't enforce use of kernel for qtest
mcf5208: Don't enforce use of kernel for qtest
an5206: Don't enforce use of kernel for qtest
milkymist: Suppress -kernel/-bios/-drive error for qtest
shix: Drop debug output
shix: Don't require firmware presence for qtest
leon3: Don't enforce use of -bios with qtest
qtest: Prepare QOM machine tests

 hw/arm/armv7m.c         |  25 ++---
 hw/arm/boot.c           |   4 +
 hw/arm/exynos4_boards.c |   3 +-
 hw/arm/gumstix.c        |  11 ++-
 hw/arm/mainstone.c      |   5 +-
 hw/arm/omap_sx1.c       |   3 +-
 hw/arm/palm.c           |   3 +-
 hw/arm/z2.c             |   5 +-
 hw/block/tc58128.c      |  10 +-
 hw/cris/axis_dev88.c    |  11 ++-
 hw/lm32/milkymist.c     |   3 +-
 hw/m68k/an5206.c        |   4 +
 hw/m68k/mcf5208.c       |   4 +
 hw/mips/mips_mipssim.c  |   4 +-
 hw/sh4/shix.c           |  16 +--
 hw/sparc/leon3.c        |   3 +-
 hw/unicore32/puv3.c     |   4 +
 tests/Makefile          |  26 +++++
 tests/qom-test.c        | 253 ++++++++++++++++++++++++++++++++++++++++++++++++
 19 files changed, 353 insertions(+), 44 deletions(-)
 create mode 100644 tests/qom-test.c
Signature · 1 line
1.8.1.4