| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | menuconfig 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 | |
| 15 | if RUST_KUNIT_TESTS |
| 16 | config 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 | |
| 26 | config 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 | |
| 36 | config 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 | |
| 46 | config 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 | |
| 56 | config 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 | |
| 66 | config 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 | |
| 76 | config 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 | |
| 86 | endif |