Skip to content

qtest: add migration testing

Jason Baron qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v13 patches 10 repliesSuperseded

Changes in v2 from the cover letter

* move core migration functions to libqtest.c
* simplify Makefile dependencies
* use 'mkdtemp()' instead of child pid to identify qemu instances

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qtest: Enable creation of multiple qemu instancestests/libqtest.c+9 -64 replies
2/3qtest: extend qtest_qmp() to fill in the replytests/Makefile tests/libqtest.c tests/libqtest.h+24 -101 reply
3/3qtest: add migrate-testtests/Makefile tests/libqtest.c tests/libqtest.h +1 more+179 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] qtest: add migration testing

Hi,

Add a basic qtest for migration testing. Currently, it just tests a migrate of machine 'pc' on the same host. Would be nice to extend to multiple machine versions, but that requires multiple binaries, which could be done, but is perhaps a bit awkward from qtest? Testing different machine versions within the same binary doesn't seem like a real world test case to me. Currently, the test aborts, if the migrate takes more than 2 minutes.

In any case, the test currently fails for q35, since ahci migration suport isn't in place. Thus, I intend to add q35 testing here, once those ahci migration patches are accepted.

Thanks,

-Jason

v2:
* move core migration functions to libqtest.c
* simplify Makefile dependencies
* use 'mkdtemp()' instead of child pid to identify qemu instances

Jason Baron (3):
qtest: Enable creation of multiple qemu instances
qtest: extend qtest_qmp() to fill in the reply
qtest: add migrate-test

 tests/Makefile       |    4 +-
 tests/libqtest.c     |  130 ++++++++++++++++++++++++++++++++++++++++++++------
 tests/libqtest.h     |   30 ++++++++++--
 tests/migrate-test.c |   68 ++++++++++++++++++++++++++
 4 files changed, 212 insertions(+), 20 deletions(-)
 create mode 100644 tests/migrate-test.c