mirror of
https://github.com/mborgerson/xemu.git
synced 2026-03-14 06:34:35 +00:00
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>
27 lines
576 B
Python
Executable File
27 lines
576 B
Python
Executable File
#!/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()
|