1
0
mirror of https://passt.top/passt synced 2024-06-21 02:27:05 +00:00
passt/test/distro
David Gibson d2802ec874 tests: Prepare distro images during asset build phase
Before booting the guest images, the distro test cases need to modify the
guest images, using virt-edit and guestfish, to boot in the way we need.
At present this gets repeated on every test run, even though it's not
really doing anything we want to test for.

In addition many of the images have the same preparation steps leading to
a lot of duplicated stages in the tests.  A number of additional images can
be prepared using common steps, even if the ones used now have small
differences.

Therefore move the preparation of most of the guest images to the asset
build phase, where they can be done a single time for multiple test runs,
using a common preparation script.  We can even avoid making a copy of the
disk image for booting, by using qemu's -snapshot option.

A few of the distros (openSUSE and older Ubuntu) do need different steps.
For now we don't chage how they are run, they could possibly be handled
more like this in future.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2022-07-14 01:36:02 +02:00
..
debian tests: Prepare distro images during asset build phase 2022-07-14 01:36:02 +02:00
fedora tests: Prepare distro images during asset build phase 2022-07-14 01:36:02 +02:00
opensuse tests: Move distro image download to asset build makefile 2022-07-14 01:34:37 +02:00
ubuntu tests: Prepare distro images during asset build phase 2022-07-14 01:36:02 +02:00