xref: /linux/rust/kernel/Kconfig.test (revision 12d5fc96ebbb3b948861805b32a4c3a96105ccd9)
1# SPDX-License-Identifier: GPL-2.0-only
2menuconfig RUST_KUNIT_TESTS
3	bool "Rust KUnit tests"
4	depends on KUNIT && RUST
5	default KUNIT_ALL_TESTS
6	help
7	  This menu collects all options for Rust KUnit tests.
8	  See Documentation/rust/testing.rst for how to protect
9	  unit tests with these options.
10
11	  Say Y here to enable Rust KUnit tests.
12
13	  If unsure, say N.
14
15if RUST_KUNIT_TESTS
16config RUST_ALLOCATOR_KUNIT_TEST
17	bool "KUnit tests for Rust allocator API" if !KUNIT_ALL_TESTS
18	default KUNIT_ALL_TESTS
19	help
20	  This option enables KUnit tests for the Rust allocator API.
21	  These are only for development and testing, not for regular
22	  kernel use cases.
23
24	  If unsure, say N.
25
26config RUST_KVEC_KUNIT_TEST
27	bool "KUnit tests for Rust KVec API" if !KUNIT_ALL_TESTS
28	default KUNIT_ALL_TESTS
29	help
30	  This option enables KUnit tests for the Rust KVec API.
31	  These are only for development and testing, not for
32	  regular kernel use cases.
33
34	  If unsure, say N.
35
36config RUST_BITMAP_KUNIT_TEST
37	bool "KUnit tests for Rust bitmap API" if !KUNIT_ALL_TESTS
38	default KUNIT_ALL_TESTS
39	help
40	  This option enables KUnit tests for the Rust bitmap API.
41	  These are only for development and testing, not for regular
42	  kernel use cases.
43
44	  If unsure, say N.
45
46config RUST_KUNIT_SELFTEST
47	bool "KUnit selftests for Rust" if !KUNIT_ALL_TESTS
48	default KUNIT_ALL_TESTS
49	help
50	  This option enables KUnit selftests. These are only
51	  for development and testing, not for regular kernel
52	  use cases.
53
54	  If unsure, say N.
55
56config RUST_STR_KUNIT_TEST
57	bool "KUnit tests for Rust strings API" if !KUNIT_ALL_TESTS
58	default KUNIT_ALL_TESTS
59	help
60	  This option enables KUnit tests for the Rust strings API.
61	  These are only for development and testing, not for regular
62	  kernel use cases.
63
64	  If unsure, say N.
65
66config RUST_ATOMICS_KUNIT_TEST
67	bool "KUnit tests for Rust atomics API" if !KUNIT_ALL_TESTS
68	default KUNIT_ALL_TESTS
69	help
70	  This option enables KUnit tests for the Rust atomics API.
71	  These are only for development and testing, not for regular
72	  kernel use cases.
73
74	  If unsure, say N.
75
76config RUST_BITFIELD_KUNIT_TEST
77	bool "KUnit tests for the Rust `bitfield!` macro" if !KUNIT_ALL_TESTS
78	default KUNIT_ALL_TESTS
79	help
80	  This option enables KUnit tests for the Rust `bitfield!` macro.
81	  These are only for development and testing, not for regular
82	  kernel use cases.
83
84	  If unsure, say N.
85
86config RUST_BUG_KUNIT_TEST
87	bool "KUnit tests for the Rust BUG/WARN functionality" if !KUNIT_ALL_TESTS
88	depends on BUG
89	default KUNIT_ALL_TESTS
90	help
91	  This option enables KUnit tests for the Rust BUG/WARN functionality.
92	  These are only for development and testing, not for regular
93	  kernel use cases.
94
95	  If unsure, say N.
96
97config RUST_TIME_KUNIT_TEST
98	bool "KUnit tests for the Rust time API" if !KUNIT_ALL_TESTS
99	default KUNIT_ALL_TESTS
100	help
101	  This option enables KUnit tests for the Rust time API.
102	  These are only for development and testing, not for regular
103	  kernel use cases.
104
105	  If unsure, say N.
106
107endif
108