xref: /linux/arch/riscv/kernel/tests/Kconfig.debug (revision 1e525507)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "arch/riscv/kernel Testing and Coverage"
3
4config AS_HAS_ULEB128
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)
6
7menuconfig RUNTIME_KERNEL_TESTING_MENU
8       bool "arch/riscv/kernel runtime Testing"
9       default y
10       help
11         Enable riscv kernel runtime testing.
12
13if RUNTIME_KERNEL_TESTING_MENU
14
15config RISCV_MODULE_LINKING_KUNIT
16       bool "KUnit test riscv module linking at runtime" if !KUNIT_ALL_TESTS
17       depends on KUNIT
18       default KUNIT_ALL_TESTS
19       help
20         Enable this option to test riscv module linking at boot. This will
21	 enable a module called "test_module_linking".
22
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
26         production build.
27
28         For more information on KUnit and unit tests in general please refer
29         to the KUnit documentation in Documentation/dev-tools/kunit/.
30
31         If unsure, say N.
32
33endif # RUNTIME_TESTING_MENU
34
35endmenu # "arch/riscv/kernel runtime Testing"
36