tests/qtest/migration: Move qmp helpers to a separate file
authorFabiano Rosas <farosas@suse.de>
Wed, 27 Nov 2024 18:28:49 +0000 (15:28 -0300)
committerFabiano Rosas <farosas@suse.de>
Thu, 12 Dec 2024 13:25:39 +0000 (10:25 -0300)
commite6c5704043f0cdb3ce567b74d73a99c79457e3e6
treeacefbcbca2de9ccf674215f84d0e7dbe582ea1ef
parent537f23fb9e215c4d42ec47055a24cf4670133544
tests/qtest/migration: Move qmp helpers to a separate file

We current have a bunch of non-test functions in migration-test.c and
some others in migration-helpers.c. In order to split migration-test.c
into separate test binaries, these helpers need to go somewhere
else.

To avoid making migration-helpers even larger, move all QMP-related
functions into a new migration-qmp.c file and put it under the
qtest/migration/ directory.

The new file holds everything that has as its main responsibility to
call into QMP.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/meson.build
tests/qtest/migration-helpers.c
tests/qtest/migration-helpers.h
tests/qtest/migration-test.c
tests/qtest/migration/migration-qmp.c [new file with mode: 0644]
tests/qtest/migration/migration-qmp.h [new file with mode: 0644]
tests/qtest/virtio-net-failover.c