summary refs log tree commit diff stats
path: root/tests/functional/test_riscv32_migration.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-08-19 13:23:38 +0200
committerThomas Huth <thuth@redhat.com>2025-08-27 09:46:55 +0200
commit9845740a162f2d9a4c852068155e94f1a3c487f9 (patch)
tree44c09644032d0e4f95a1aaa48f6855b314daa79b /tests/functional/test_riscv32_migration.py
parent0cdabf8adbaca4b370301366faab2d01121289c7 (diff)
downloadfocaccia-qemu-9845740a162f2d9a4c852068155e94f1a3c487f9.tar.gz
focaccia-qemu-9845740a162f2d9a4c852068155e94f1a3c487f9.zip
tests/functional: Rework the migration test to have target-specific files
We are going to move the tests for each target into separate subdirectories.
The migration test does not fit quite into this scheme, since it works
for multiple targets, but not all. Rework the test to have a common
test class, and target specific files with a target specific class, so
that this will fit better into the new scheme.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250819112403.432587-2-thuth@redhat.com>
Diffstat (limited to 'tests/functional/test_riscv32_migration.py')
-rwxr-xr-xtests/functional/test_riscv32_migration.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/functional/test_riscv32_migration.py b/tests/functional/test_riscv32_migration.py
new file mode 100755
index 0000000000..30acbbe69f
--- /dev/null
+++ b/tests/functional/test_riscv32_migration.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# riscv32 migration test
+
+from migration import MigrationTest
+
+
+class Rv32MigrationTest(MigrationTest):
+
+    def test_migration_with_tcp_localhost(self):
+        self.set_machine('spike')
+        self.migration_with_tcp_localhost()
+
+    def test_migration_with_unix(self):
+        self.set_machine('virt')
+        self.migration_with_unix()
+
+    def test_migration_with_exec(self):
+        self.set_machine('spike')
+        self.migration_with_exec()
+
+
+if __name__ == '__main__':
+    MigrationTest.main()