aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2024-11-27 15:28:47 -0300
committerFabiano Rosas <farosas@suse.de>2024-12-12 10:25:39 -0300
commit212c19331b0c53ab299ae3d646409fad2da90602 (patch)
treeeb12a969d1c8f3ec31ccde570295bd093ab12094
parent413aa2e986eb7941c1042cc8bb8299f16e7ca962 (diff)
downloadqemu-212c19331b0c53ab299ae3d646409fad2da90602.zip
qemu-212c19331b0c53ab299ae3d646409fad2da90602.tar.gz
qemu-212c19331b0c53ab299ae3d646409fad2da90602.tar.bz2
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>
-rw-r--r--MAINTAINERS5
-rw-r--r--tests/meson.build2
-rwxr-xr-xtests/migration-stress/guestperf-batch.py (renamed from tests/migration/guestperf-batch.py)0
-rwxr-xr-xtests/migration-stress/guestperf-plot.py (renamed from tests/migration/guestperf-plot.py)0
-rwxr-xr-xtests/migration-stress/guestperf.py (renamed from tests/migration/guestperf.py)0
-rw-r--r--tests/migration-stress/guestperf/__init__.py (renamed from tests/migration/guestperf/__init__.py)0
-rw-r--r--tests/migration-stress/guestperf/comparison.py (renamed from tests/migration/guestperf/comparison.py)0
-rw-r--r--tests/migration-stress/guestperf/engine.py (renamed from tests/migration/guestperf/engine.py)0
-rw-r--r--tests/migration-stress/guestperf/hardware.py (renamed from tests/migration/guestperf/hardware.py)0
-rw-r--r--tests/migration-stress/guestperf/plot.py (renamed from tests/migration/guestperf/plot.py)0
-rw-r--r--tests/migration-stress/guestperf/progress.py (renamed from tests/migration/guestperf/progress.py)0
-rw-r--r--tests/migration-stress/guestperf/report.py (renamed from tests/migration/guestperf/report.py)0
-rw-r--r--tests/migration-stress/guestperf/scenario.py (renamed from tests/migration/guestperf/scenario.py)0
-rw-r--r--tests/migration-stress/guestperf/shell.py (renamed from tests/migration/guestperf/shell.py)3
-rw-r--r--tests/migration-stress/guestperf/timings.py (renamed from tests/migration/guestperf/timings.py)0
-rwxr-xr-xtests/migration-stress/initrd-stress.sh (renamed from tests/migration/initrd-stress.sh)0
-rw-r--r--tests/migration-stress/meson.build (renamed from tests/migration/meson.build)0
-rw-r--r--tests/migration-stress/stress.c (renamed from tests/migration/stress.c)0
-rw-r--r--tests/qtest/migration-test.c10
-rw-r--r--tests/qtest/migration/Makefile (renamed from tests/migration/Makefile)0
-rw-r--r--tests/qtest/migration/aarch64/Makefile (renamed from tests/migration/aarch64/Makefile)0
-rw-r--r--tests/qtest/migration/aarch64/a-b-kernel.S (renamed from tests/migration/aarch64/a-b-kernel.S)0
-rw-r--r--tests/qtest/migration/aarch64/a-b-kernel.h (renamed from tests/migration/aarch64/a-b-kernel.h)0
-rw-r--r--tests/qtest/migration/i386/Makefile (renamed from tests/migration/i386/Makefile)0
-rw-r--r--tests/qtest/migration/i386/a-b-bootblock.S (renamed from tests/migration/i386/a-b-bootblock.S)0
-rw-r--r--tests/qtest/migration/i386/a-b-bootblock.h (renamed from tests/migration/i386/a-b-bootblock.h)0
-rw-r--r--tests/qtest/migration/migration-test.h (renamed from tests/migration/migration-test.h)0
-rw-r--r--tests/qtest/migration/ppc64/Makefile (renamed from tests/migration/ppc64/Makefile)0
-rw-r--r--tests/qtest/migration/ppc64/a-b-kernel.S (renamed from tests/migration/ppc64/a-b-kernel.S)0
-rw-r--r--tests/qtest/migration/ppc64/a-b-kernel.h (renamed from tests/migration/ppc64/a-b-kernel.h)0
-rw-r--r--tests/qtest/migration/s390x/Makefile (renamed from tests/migration/s390x/Makefile)0
-rw-r--r--tests/qtest/migration/s390x/a-b-bios.c (renamed from tests/migration/s390x/a-b-bios.c)0
-rw-r--r--tests/qtest/migration/s390x/a-b-bios.h (renamed from tests/migration/s390x/a-b-bios.h)0
33 files changed, 11 insertions, 9 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index aaf0505..e8605d3 100644
--- a/MAINTAINERS
+++ b/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*
diff --git a/tests/meson.build b/tests/meson.build
index 907a4c1..f96c1be 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -84,5 +84,5 @@ endif
subdir('unit')
subdir('qapi-schema')
subdir('qtest')
-subdir('migration')
+subdir('migration-stress')
subdir('functional')
diff --git a/tests/migration/guestperf-batch.py b/tests/migration-stress/guestperf-batch.py
index 9485eef..9485eef 100755
--- a/tests/migration/guestperf-batch.py
+++ b/tests/migration-stress/guestperf-batch.py
diff --git a/tests/migration/guestperf-plot.py b/tests/migration-stress/guestperf-plot.py
index 32977b4..32977b4 100755
--- a/tests/migration/guestperf-plot.py
+++ b/tests/migration-stress/guestperf-plot.py
diff --git a/tests/migration/guestperf.py b/tests/migration-stress/guestperf.py
index 07182f2..07182f2 100755
--- a/tests/migration/guestperf.py
+++ b/tests/migration-stress/guestperf.py
diff --git a/tests/migration/guestperf/__init__.py b/tests/migration-stress/guestperf/__init__.py
index e69de29..e69de29 100644
--- a/tests/migration/guestperf/__init__.py
+++ b/tests/migration-stress/guestperf/__init__.py
diff --git a/tests/migration/guestperf/comparison.py b/tests/migration-stress/guestperf/comparison.py
index 42cc037..42cc037 100644
--- a/tests/migration/guestperf/comparison.py
+++ b/tests/migration-stress/guestperf/comparison.py
diff --git a/tests/migration/guestperf/engine.py b/tests/migration-stress/guestperf/engine.py
index 608d727..608d727 100644
--- a/tests/migration/guestperf/engine.py
+++ b/tests/migration-stress/guestperf/engine.py
diff --git a/tests/migration/guestperf/hardware.py b/tests/migration-stress/guestperf/hardware.py
index f779cc0..f779cc0 100644
--- a/tests/migration/guestperf/hardware.py
+++ b/tests/migration-stress/guestperf/hardware.py
diff --git a/tests/migration/guestperf/plot.py b/tests/migration-stress/guestperf/plot.py
index 30b3f66..30b3f66 100644
--- a/tests/migration/guestperf/plot.py
+++ b/tests/migration-stress/guestperf/plot.py
diff --git a/tests/migration/guestperf/progress.py b/tests/migration-stress/guestperf/progress.py
index d490584..d490584 100644
--- a/tests/migration/guestperf/progress.py
+++ b/tests/migration-stress/guestperf/progress.py
diff --git a/tests/migration/guestperf/report.py b/tests/migration-stress/guestperf/report.py
index 1efd40c..1efd40c 100644
--- a/tests/migration/guestperf/report.py
+++ b/tests/migration-stress/guestperf/report.py
diff --git a/tests/migration/guestperf/scenario.py b/tests/migration-stress/guestperf/scenario.py
index 154c4f5..154c4f5 100644
--- a/tests/migration/guestperf/scenario.py
+++ b/tests/migration-stress/guestperf/scenario.py
diff --git a/tests/migration/guestperf/shell.py b/tests/migration-stress/guestperf/shell.py
index c85d89e..046afeb 100644
--- a/tests/migration/guestperf/shell.py
+++ b/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")
diff --git a/tests/migration/guestperf/timings.py b/tests/migration-stress/guestperf/timings.py
index 2374010..2374010 100644
--- a/tests/migration/guestperf/timings.py
+++ b/tests/migration-stress/guestperf/timings.py
diff --git a/tests/migration/initrd-stress.sh b/tests/migration-stress/initrd-stress.sh
index 0f20ac2..0f20ac2 100755
--- a/tests/migration/initrd-stress.sh
+++ b/tests/migration-stress/initrd-stress.sh
diff --git a/tests/migration/meson.build b/tests/migration-stress/meson.build
index a91aa61..a91aa61 100644
--- a/tests/migration/meson.build
+++ b/tests/migration-stress/meson.build
diff --git a/tests/migration/stress.c b/tests/migration-stress/stress.c
index 88acf8d..88acf8d 100644
--- a/tests/migration/stress.c
+++ b/tests/migration-stress/stress.c
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index 30bc965..82b9170 100644
--- a/tests/qtest/migration-test.c
+++ b/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)
{
diff --git a/tests/migration/Makefile b/tests/qtest/migration/Makefile
index 2c5ee28..2c5ee28 100644
--- a/tests/migration/Makefile
+++ b/tests/qtest/migration/Makefile
diff --git a/tests/migration/aarch64/Makefile b/tests/qtest/migration/aarch64/Makefile
index 9c4fa18..9c4fa18 100644
--- a/tests/migration/aarch64/Makefile
+++ b/tests/qtest/migration/aarch64/Makefile
diff --git a/tests/migration/aarch64/a-b-kernel.S b/tests/qtest/migration/aarch64/a-b-kernel.S
index a4103ec..a4103ec 100644
--- a/tests/migration/aarch64/a-b-kernel.S
+++ b/tests/qtest/migration/aarch64/a-b-kernel.S
diff --git a/tests/migration/aarch64/a-b-kernel.h b/tests/qtest/migration/aarch64/a-b-kernel.h
index 34e518d..34e518d 100644
--- a/tests/migration/aarch64/a-b-kernel.h
+++ b/tests/qtest/migration/aarch64/a-b-kernel.h
diff --git a/tests/migration/i386/Makefile b/tests/qtest/migration/i386/Makefile
index 37a72ae..37a72ae 100644
--- a/tests/migration/i386/Makefile
+++ b/tests/qtest/migration/i386/Makefile
diff --git a/tests/migration/i386/a-b-bootblock.S b/tests/qtest/migration/i386/a-b-bootblock.S
index 6f39eb6..6f39eb6 100644
--- a/tests/migration/i386/a-b-bootblock.S
+++ b/tests/qtest/migration/i386/a-b-bootblock.S
diff --git a/tests/migration/i386/a-b-bootblock.h b/tests/qtest/migration/i386/a-b-bootblock.h
index c83f871..c83f871 100644
--- a/tests/migration/i386/a-b-bootblock.h
+++ b/tests/qtest/migration/i386/a-b-bootblock.h
diff --git a/tests/migration/migration-test.h b/tests/qtest/migration/migration-test.h
index 194df7df6..194df7df6 100644
--- a/tests/migration/migration-test.h
+++ b/tests/qtest/migration/migration-test.h
diff --git a/tests/migration/ppc64/Makefile b/tests/qtest/migration/ppc64/Makefile
index a3a2d98..a3a2d98 100644
--- a/tests/migration/ppc64/Makefile
+++ b/tests/qtest/migration/ppc64/Makefile
diff --git a/tests/migration/ppc64/a-b-kernel.S b/tests/qtest/migration/ppc64/a-b-kernel.S
index 0613a8d..0613a8d 100644
--- a/tests/migration/ppc64/a-b-kernel.S
+++ b/tests/qtest/migration/ppc64/a-b-kernel.S
diff --git a/tests/migration/ppc64/a-b-kernel.h b/tests/qtest/migration/ppc64/a-b-kernel.h
index 673317e..673317e 100644
--- a/tests/migration/ppc64/a-b-kernel.h
+++ b/tests/qtest/migration/ppc64/a-b-kernel.h
diff --git a/tests/migration/s390x/Makefile b/tests/qtest/migration/s390x/Makefile
index 6671de2..6671de2 100644
--- a/tests/migration/s390x/Makefile
+++ b/tests/qtest/migration/s390x/Makefile
diff --git a/tests/migration/s390x/a-b-bios.c b/tests/qtest/migration/s390x/a-b-bios.c
index ff99a3e..ff99a3e 100644
--- a/tests/migration/s390x/a-b-bios.c
+++ b/tests/qtest/migration/s390x/a-b-bios.c
diff --git a/tests/migration/s390x/a-b-bios.h b/tests/qtest/migration/s390x/a-b-bios.h
index 96103da..96103da 100644
--- a/tests/migration/s390x/a-b-bios.h
+++ b/tests/qtest/migration/s390x/a-b-bios.h