Browse Source

tests/migration: Disambiguate guestperf vs. a-b

The current build structure for migration tests is confusing. There is
the tests/migration directory, which contains two different guest code
implementations, one for the qtests (a-b-{bootblock|kernel}.S) and
another for the guestperf script (stress.c). One uses a Makefile,
while the other uses meson.

The next patches will add a new qtests/migration/ directory to hold
qtest code which will make the situation even more confusing.

Move the guest code used by qtests into a new qtests/migration/
directory and rename the old one to tests/migration-stress.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
pull/318/head
Fabiano Rosas 1 year ago
parent
commit
212c19331b
  1. 5
      MAINTAINERS
  2. 2
      tests/meson.build
  3. 0
      tests/migration-stress/guestperf-batch.py
  4. 0
      tests/migration-stress/guestperf-plot.py
  5. 0
      tests/migration-stress/guestperf.py
  6. 0
      tests/migration-stress/guestperf/__init__.py
  7. 0
      tests/migration-stress/guestperf/comparison.py
  8. 0
      tests/migration-stress/guestperf/engine.py
  9. 0
      tests/migration-stress/guestperf/hardware.py
  10. 0
      tests/migration-stress/guestperf/plot.py
  11. 0
      tests/migration-stress/guestperf/progress.py
  12. 0
      tests/migration-stress/guestperf/report.py
  13. 0
      tests/migration-stress/guestperf/scenario.py
  14. 3
      tests/migration-stress/guestperf/shell.py
  15. 0
      tests/migration-stress/guestperf/timings.py
  16. 0
      tests/migration-stress/initrd-stress.sh
  17. 0
      tests/migration-stress/meson.build
  18. 0
      tests/migration-stress/stress.c
  19. 10
      tests/qtest/migration-test.c
  20. 0
      tests/qtest/migration/Makefile
  21. 0
      tests/qtest/migration/aarch64/Makefile
  22. 0
      tests/qtest/migration/aarch64/a-b-kernel.S
  23. 0
      tests/qtest/migration/aarch64/a-b-kernel.h
  24. 0
      tests/qtest/migration/i386/Makefile
  25. 0
      tests/qtest/migration/i386/a-b-bootblock.S
  26. 0
      tests/qtest/migration/i386/a-b-bootblock.h
  27. 0
      tests/qtest/migration/migration-test.h
  28. 0
      tests/qtest/migration/ppc64/Makefile
  29. 0
      tests/qtest/migration/ppc64/a-b-kernel.S
  30. 0
      tests/qtest/migration/ppc64/a-b-kernel.h
  31. 0
      tests/qtest/migration/s390x/Makefile
  32. 0
      tests/qtest/migration/s390x/a-b-bios.c
  33. 0
      tests/qtest/migration/s390x/a-b-bios.h

5
MAINTAINERS

@ -118,7 +118,7 @@ F: pc-bios/s390-ccw.img
F: target/s390x/
F: docs/system/target-s390x.rst
F: docs/system/s390x/
F: tests/migration/s390x/
F: tests/qtest/migration/s390x/
K: ^Subject:.*(?i)s390x?
L: qemu-s390x@nongnu.org
@ -3423,10 +3423,11 @@ F: include/qemu/userfaultfd.h
F: migration/
F: scripts/vmstate-static-checker.py
F: tests/vmstate-static-checker-data/
F: tests/qtest/migration/
F: tests/qtest/migration-*
F: docs/devel/migration/
F: qapi/migration.json
F: tests/migration/
F: tests/migration-stress/
F: util/userfaultfd.c
X: migration/rdma*

2
tests/meson.build

@ -84,5 +84,5 @@ endif
subdir('unit')
subdir('qapi-schema')
subdir('qtest')
subdir('migration')
subdir('migration-stress')
subdir('functional')

0
tests/migration/guestperf-batch.py → tests/migration-stress/guestperf-batch.py

0
tests/migration/guestperf-plot.py → tests/migration-stress/guestperf-plot.py

0
tests/migration/guestperf.py → tests/migration-stress/guestperf.py

0
tests/migration/guestperf/__init__.py → tests/migration-stress/guestperf/__init__.py

0
tests/migration/guestperf/comparison.py → tests/migration-stress/guestperf/comparison.py

0
tests/migration/guestperf/engine.py → tests/migration-stress/guestperf/engine.py

0
tests/migration/guestperf/hardware.py → tests/migration-stress/guestperf/hardware.py

0
tests/migration/guestperf/plot.py → tests/migration-stress/guestperf/plot.py

0
tests/migration/guestperf/progress.py → tests/migration-stress/guestperf/progress.py

0
tests/migration/guestperf/report.py → tests/migration-stress/guestperf/report.py

0
tests/migration/guestperf/scenario.py → tests/migration-stress/guestperf/scenario.py

3
tests/migration/guestperf/shell.py → tests/migration-stress/guestperf/shell.py

@ -46,7 +46,8 @@ class BaseShell(object):
parser.add_argument("--binary", dest="binary", default="/usr/bin/qemu-system-x86_64")
parser.add_argument("--dst-host", dest="dst_host", default="localhost")
parser.add_argument("--kernel", dest="kernel", default="/boot/vmlinuz-%s" % platform.release())
parser.add_argument("--initrd", dest="initrd", default="tests/migration/initrd-stress.img")
parser.add_argument("--initrd", dest="initrd",
default="tests/migration-stress/initrd-stress.img")
parser.add_argument("--transport", dest="transport", default="unix")

0
tests/migration/guestperf/timings.py → tests/migration-stress/guestperf/timings.py

0
tests/migration/initrd-stress.sh → tests/migration-stress/initrd-stress.sh

0
tests/migration/meson.build → tests/migration-stress/meson.build

0
tests/migration/stress.c → tests/migration-stress/stress.c

10
tests/qtest/migration-test.c

@ -24,7 +24,7 @@
#include "ppc-util.h"
#include "migration-helpers.h"
#include "tests/migration/migration-test.h"
#include "migration/migration-test.h"
#ifdef CONFIG_GNUTLS
# include "tests/unit/crypto-tls-psk-helpers.h"
# ifdef CONFIG_TASN1
@ -138,10 +138,10 @@ static char *bootpath;
/* The boot file modifies memory area in [start_address, end_address)
* repeatedly. It outputs a 'B' at a fixed rate while it's still running.
*/
#include "tests/migration/i386/a-b-bootblock.h"
#include "tests/migration/aarch64/a-b-kernel.h"
#include "tests/migration/ppc64/a-b-kernel.h"
#include "tests/migration/s390x/a-b-bios.h"
#include "migration/i386/a-b-bootblock.h"
#include "migration/aarch64/a-b-kernel.h"
#include "migration/ppc64/a-b-kernel.h"
#include "migration/s390x/a-b-bios.h"
static void bootfile_delete(void)
{

0
tests/migration/Makefile → tests/qtest/migration/Makefile

0
tests/migration/aarch64/Makefile → tests/qtest/migration/aarch64/Makefile

0
tests/migration/aarch64/a-b-kernel.S → tests/qtest/migration/aarch64/a-b-kernel.S

0
tests/migration/aarch64/a-b-kernel.h → tests/qtest/migration/aarch64/a-b-kernel.h

0
tests/migration/i386/Makefile → tests/qtest/migration/i386/Makefile

0
tests/migration/i386/a-b-bootblock.S → tests/qtest/migration/i386/a-b-bootblock.S

0
tests/migration/i386/a-b-bootblock.h → tests/qtest/migration/i386/a-b-bootblock.h

0
tests/migration/migration-test.h → tests/qtest/migration/migration-test.h

0
tests/migration/ppc64/Makefile → tests/qtest/migration/ppc64/Makefile

0
tests/migration/ppc64/a-b-kernel.S → tests/qtest/migration/ppc64/a-b-kernel.S

0
tests/migration/ppc64/a-b-kernel.h → tests/qtest/migration/ppc64/a-b-kernel.h

0
tests/migration/s390x/Makefile → tests/qtest/migration/s390x/Makefile

0
tests/migration/s390x/a-b-bios.c → tests/qtest/migration/s390x/a-b-bios.c

0
tests/migration/s390x/a-b-bios.h → tests/qtest/migration/s390x/a-b-bios.h

Loading…
Cancel
Save