]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional: Move riscv32/riscv64 tests into target-specific folders
authorThomas Huth <thuth@redhat.com>
Tue, 19 Aug 2025 11:23:54 +0000 (13:23 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 27 Aug 2025 07:46:55 +0000 (09:46 +0200)
The opensbi test is used for both, riscv32 and riscv64. Copy the main
test to the riscv64 folder and add a simple wrapper to the riscv32
folder to be able to run it for that target, too.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250819112403.432587-18-thuth@redhat.com>

MAINTAINERS
tests/functional/meson.build
tests/functional/riscv32/meson.build [new file with mode: 0644]
tests/functional/riscv32/test_migration.py [moved from tests/functional/test_riscv32_migration.py with 100% similarity]
tests/functional/riscv32/test_opensbi.py [new file with mode: 0755]
tests/functional/riscv32/test_tuxrun.py [moved from tests/functional/test_riscv32_tuxrun.py with 100% similarity]
tests/functional/riscv64/meson.build [new file with mode: 0644]
tests/functional/riscv64/test_migration.py [moved from tests/functional/test_riscv64_migration.py with 100% similarity]
tests/functional/riscv64/test_opensbi.py [moved from tests/functional/test_riscv_opensbi.py with 100% similarity]
tests/functional/riscv64/test_sifive_u.py [moved from tests/functional/test_riscv64_sifive_u.py with 100% similarity]
tests/functional/riscv64/test_tuxrun.py [moved from tests/functional/test_riscv64_tuxrun.py with 100% similarity]

index b0d440cf75112cf3ed77f83682dbbe8b8fdf88a1..81262546c4b7a06ce73905173a356b8ced0adfd0 100644 (file)
@@ -332,7 +332,8 @@ F: include/hw/riscv/
 F: linux-user/host/riscv32/
 F: linux-user/host/riscv64/
 F: common-user/host/riscv*
-F: tests/functional/test_riscv*
+F: tests/functional/riscv32
+F: tests/functional/riscv64
 F: tests/tcg/riscv64/
 
 RISC-V XThead* extensions
index 3caeea5ebddd4564f0b953b4c4e34141070856d8..2d8f67fd94f2d77c65661b8d4f9322abd20be92f 100644 (file)
@@ -26,10 +26,8 @@ subdir('mips64el')
 subdir('or1k')
 subdir('ppc')
 subdir('ppc64')
-
-test_riscv64_timeouts = {
-  'riscv64_tuxrun' : 120,
-}
+subdir('riscv32')
+subdir('riscv64')
 
 test_s390x_timeouts = {
   's390x_ccw_virtio' : 420,
@@ -60,25 +58,6 @@ tests_generic_linuxuser = [
 tests_generic_bsduser = [
 ]
 
-tests_riscv32_system_quick = [
-  'riscv32_migration',
-  'riscv_opensbi',
-]
-
-tests_riscv32_system_thorough = [
-  'riscv32_tuxrun',
-]
-
-tests_riscv64_system_quick = [
-  'riscv64_migration',
-  'riscv_opensbi',
-]
-
-tests_riscv64_system_thorough = [
-  'riscv64_sifive_u',
-  'riscv64_tuxrun',
-]
-
 tests_rx_system_thorough = [
   'rx_gdbsim',
 ]
diff --git a/tests/functional/riscv32/meson.build b/tests/functional/riscv32/meson.build
new file mode 100644 (file)
index 0000000..f3ebbb8
--- /dev/null
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+tests_riscv32_system_quick = [
+  'migration',
+  'opensbi',
+]
+
+tests_riscv32_system_thorough = [
+  'tuxrun',
+]
diff --git a/tests/functional/riscv32/test_opensbi.py b/tests/functional/riscv32/test_opensbi.py
new file mode 100755 (executable)
index 0000000..d1ac706
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/env python3
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Reuse the 64-bit OpenSBI test for RISC-V 32-bit machines
+
+from riscv64.test_opensbi import RiscvOpenSBI
+
+if __name__ == '__main__':
+    RiscvOpenSBI.main()
diff --git a/tests/functional/riscv64/meson.build b/tests/functional/riscv64/meson.build
new file mode 100644 (file)
index 0000000..c1704d9
--- /dev/null
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+test_riscv64_timeouts = {
+  'tuxrun' : 120,
+}
+
+tests_riscv64_system_quick = [
+  'migration',
+  'opensbi',
+]
+
+tests_riscv64_system_thorough = [
+  'sifive_u',
+  'tuxrun',
+]