tests/qtest/readconfig: Test the docs/config/q35-*.cfg files
commitbc55e2eaa6d662f10a1f4cff0d285d77dbc9362a
authorThomas Huth <thuth@redhat.com>
Tue, 4 Jul 2023 07:16:55 +0000 (4 09:16 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 10 Jul 2023 13:34:57 +0000 (10 15:34 +0200)
tree2dbeabddc2188d8418a2404642a492e9597a0be2
parent25919c4025313763c3c00035f439bd11579c2c38
tests/qtest/readconfig: Test the docs/config/q35-*.cfg files

Test that we can successfully parse the docs/config/q35-emulated.cfg,
docs/config/q35-virtio-graphical.cfg and docs/config/q35-virtio-serial.cfg
config files (the "...-serial.cfg" file is a subset of the graphical
config file, so we skip that in quick mode).

These config files use two hard-coded image names which we have to
replace with unique temporary files to avoid race conditions in case
the tests are run in parallel. So after creating the temporary image
files, we also have to create a copy of the config file where we
replaced the hard-coded image names.

If KVM is not available, we also have to disable the "accel" lines.
Once everything is in place, we can start QEMU with the modified
config file and check that everything is available in QEMU.

Message-Id: <20230704071655.75381-4-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/readconfig-test.c