Le 28/04/2026 à 12:04 AM, 'Thomas Weißschuh' via KUnit Development a écrit :
Add a basic configuration to run kunit tests on or1k / openrisc.

Signed-off-by: Thomas Weißschuh <[email protected]>
---

Thanks very much. This works well here (assuming CONFIG_KUNIT_FAULT_TESTS=n, and either a long timeout, or slow tests skipped, as qemu-or1k is not fast on my machine).

Reviewed-by: David Gow <[email protected]>

Do we want to split the series and take this patch via kselftest/kunit, and the generate_compile_commands one separately, or just pick both up in the same tree?

Cheers,
-- David

  tools/testing/kunit/qemu_configs/or1k.py | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)

diff --git a/tools/testing/kunit/qemu_configs/or1k.py 
b/tools/testing/kunit/qemu_configs/or1k.py
new file mode 100644
index 000000000000..dfbbad0f9076
--- /dev/null
+++ b/tools/testing/kunit/qemu_configs/or1k.py
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-only
+from ..qemu_config import QemuArchParams
+
+QEMU_ARCH = QemuArchParams(linux_arch='openrisc',
+                          kconfig='''
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_OF_PLATFORM=y
+CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_SYSCON=y
+''',
+                          qemu_arch='or1k',
+                          kernel_path='vmlinux',
+                          kernel_command_line='console=ttyS0',
+                          extra_qemu_params=[
+                                           '-machine', 'virt',
+                        '-m', '512',
+                         ])



Reply via email to