mbox series

[v5,0/8] tests/unit: Rework test-smp-parse tests

Message ID 20211215164856.381990-1-philmd@redhat.com (mailing list archive)
Headers show
Series tests/unit: Rework test-smp-parse tests | expand

Message

Philippe Mathieu-Daudé Dec. 15, 2021, 4:48 p.m. UTC
Since v4:
- Rebase (skipping merged patches)
- Renamed tests (Yanan Wang)

Since v2:
- Restore 'dies_supported' field in test_with_dies (Yanan)
- Add R-b tags
- QOM-ify the TYPE_MACHINE classes

Supersedes: <20211115145900.2531865-1-philmd@redhat.com>

Philippe Mathieu-Daudé (8):
  tests/unit/test-smp-parse: Pass machine type as argument to tests
  tests/unit/test-smp-parse: Split the 'generic' test in valid / invalid
  tests/unit/test-smp-parse: Add 'smp-with-dies' machine type
  tests/unit/test-smp-parse: Add 'smp-generic-invalid' machine type
  tests/unit/test-smp-parse: Add 'smp-generic-valid' machine type
  tests/unit/test-smp-parse: Simplify pointer to compound literal use
  tests/unit/test-smp-parse: Constify some pointer/struct
  hw/core: Rename smp_parse() -> machine_parse_smp_config()

 include/hw/boards.h         |   3 +-
 hw/core/machine-smp.c       |   6 +-
 hw/core/machine.c           |   2 +-
 tests/unit/test-smp-parse.c | 181 +++++++++++++++++++++++-------------
 4 files changed, 121 insertions(+), 71 deletions(-)