xref: /linux/rust/kernel/Kconfig.test (revision b079329b8691768962aa514b8f8c9077ca352459)
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
86endif
87