]> git.proxmox.com Git - mirror_qemu.git/commit
tests/qtest/migration: Allow user to specify a machine type
authorFabiano Rosas <farosas@suse.de>
Wed, 18 Oct 2023 19:27:40 +0000 (16:27 -0300)
committerJuan Quintela <quintela@redhat.com>
Fri, 20 Oct 2023 06:51:41 +0000 (08:51 +0200)
commit6c6d2330a07d8a1ba1c1613d8631599a072c5544
tree08bf0b997f36969744cd6d21dd8c3b129ce92e07
parent5050ad2a380832a62c7dedda147bbee06c8fe924
tests/qtest/migration: Allow user to specify a machine type

Accept the QTEST_QEMU_MACHINE_TYPE environment variable to take a
machine type to use in the tests.

The full machine type is recognized (e.g. pc-q35-8.2). Aliases
(e.g. pc) are also allowed and resolve to the latest machine version
for that alias, or, if using two QEMU binaries, to the latest common
machine version between the two.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231018192741.25885-12-farosas@suse.de>
tests/qtest/migration-helpers.c
tests/qtest/migration-helpers.h
tests/qtest/migration-test.c