1 # SPDX-License-Identifier: GPL-2.0-only
2 menu "arch/riscv/kernel Testing and Coverage"
5 def_bool $(as-instr,.reloc label$(comma) R_RISCV_SET_ULEB128$(comma) 127\n.reloc label$(comma) R_RISCV_SUB_ULEB128$(comma) 127\nlabel:\n.word 0)
7 menuconfig RUNTIME_KERNEL_TESTING_MENU
8 bool "arch/riscv/kernel runtime Testing"
11 Enable riscv kernel runtime testing.
13 if RUNTIME_KERNEL_TESTING_MENU
15 config RISCV_MODULE_LINKING_KUNIT
16 bool "KUnit test riscv module linking at runtime" if !KUNIT_ALL_TESTS
18 default KUNIT_ALL_TESTS
20 Enable this option to test riscv module linking at boot. This will
21 enable a module called "test_module_linking".
23 KUnit tests run during boot and output the results to the debug log
24 in TAP format (http://testanything.org/). Only useful for kernel devs
25 running the KUnit test harness, and not intended for inclusion into a
28 For more information on KUnit and unit tests in general please refer
29 to the KUnit documentation in Documentation/dev-tools/kunit/.
33 endif # RUNTIME_TESTING_MENU
35 endmenu # "arch/riscv/kernel runtime Testing"