tests/functional: Move riscv32/riscv64 tests into target-specific folders
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>
This commit is contained in:
parent
1cdb63218c
commit
e1a8572a8d
11 changed files with 39 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
]
|
||||
|
|
|
|||
10
tests/functional/riscv32/meson.build
Normal file
10
tests/functional/riscv32/meson.build
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
tests_riscv32_system_quick = [
|
||||
'migration',
|
||||
'opensbi',
|
||||
]
|
||||
|
||||
tests_riscv32_system_thorough = [
|
||||
'tuxrun',
|
||||
]
|
||||
10
tests/functional/riscv32/test_opensbi.py
Executable file
10
tests/functional/riscv32/test_opensbi.py
Executable file
|
|
@ -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()
|
||||
15
tests/functional/riscv64/meson.build
Normal file
15
tests/functional/riscv64/meson.build
Normal file
|
|
@ -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',
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue