tests/qtest/migration: Move bootfile code to its own file
authorFabiano Rosas <farosas@suse.de>
Wed, 27 Nov 2024 18:28:48 +0000 (15:28 -0300)
committerFabiano Rosas <farosas@suse.de>
Thu, 12 Dec 2024 13:25:39 +0000 (10:25 -0300)
commit537f23fb9e215c4d42ec47055a24cf4670133544
tree62c64e861f22790c67c17cf26e72f6ecd3573ae2
parent212c19331b0c53ab299ae3d646409fad2da90602
tests/qtest/migration: Move bootfile code to its own file

Move the code that creates the guest binary out of migration-test and
into the qtest/migration/ directory, along with the rest of the
a-b-kernel code.

That code is part of the basic infrastructure of migration tests, it
shouldn't be among the tests themselves.

Also take the chance and rename migration-test.h, which is too generic
a name for this header which contains only values related to guest
memory offsets.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/meson.build
tests/qtest/migration-helpers.c
tests/qtest/migration-test.c
tests/qtest/migration/bootfile.c [new file with mode: 0644]
tests/qtest/migration/bootfile.h [new file with mode: 0644]
tests/qtest/migration/migration-test.h [deleted file]