1e74b7a3fSYury Norov# SPDX-License-Identifier: GPL-2.0-only 2e74b7a3fSYury Norovmenuconfig RUST_KUNIT_TESTS 3e74b7a3fSYury Norov bool "Rust KUnit tests" 4e74b7a3fSYury Norov depends on KUNIT && RUST 5e74b7a3fSYury Norov default KUNIT_ALL_TESTS 6e74b7a3fSYury Norov help 7e74b7a3fSYury Norov This menu collects all options for Rust KUnit tests. 8e74b7a3fSYury Norov See Documentation/rust/testing.rst for how to protect 9e74b7a3fSYury Norov unit tests with these options. 10e74b7a3fSYury Norov 11e74b7a3fSYury Norov Say Y here to enable Rust KUnit tests. 12e74b7a3fSYury Norov 13e74b7a3fSYury Norov If unsure, say N. 14e74b7a3fSYury Norov 15e74b7a3fSYury Norovif RUST_KUNIT_TESTS 16e74b7a3fSYury Norovconfig RUST_ALLOCATOR_KUNIT_TEST 17e74b7a3fSYury Norov bool "KUnit tests for Rust allocator API" if !KUNIT_ALL_TESTS 18e74b7a3fSYury Norov default KUNIT_ALL_TESTS 19e74b7a3fSYury Norov help 20e74b7a3fSYury Norov This option enables KUnit tests for the Rust allocator API. 21e74b7a3fSYury Norov These are only for development and testing, not for regular 22e74b7a3fSYury Norov kernel use cases. 23e74b7a3fSYury Norov 24e74b7a3fSYury Norov If unsure, say N. 25e74b7a3fSYury Norov 26e74b7a3fSYury Norovconfig RUST_KVEC_KUNIT_TEST 27e74b7a3fSYury Norov bool "KUnit tests for Rust KVec API" if !KUNIT_ALL_TESTS 28e74b7a3fSYury Norov default KUNIT_ALL_TESTS 29e74b7a3fSYury Norov help 30e74b7a3fSYury Norov This option enables KUnit tests for the Rust KVec API. 31e74b7a3fSYury Norov These are only for development and testing, not for 32e74b7a3fSYury Norov regular kernel use cases. 33e74b7a3fSYury Norov 34e74b7a3fSYury Norov If unsure, say N. 35e74b7a3fSYury Norov 36e74b7a3fSYury Norovconfig RUST_BITMAP_KUNIT_TEST 37e74b7a3fSYury Norov bool "KUnit tests for Rust bitmap API" if !KUNIT_ALL_TESTS 38e74b7a3fSYury Norov default KUNIT_ALL_TESTS 39e74b7a3fSYury Norov help 40e74b7a3fSYury Norov This option enables KUnit tests for the Rust bitmap API. 41e74b7a3fSYury Norov These are only for development and testing, not for regular 42e74b7a3fSYury Norov kernel use cases. 43e74b7a3fSYury Norov 44e74b7a3fSYury Norov If unsure, say N. 45e74b7a3fSYury Norov 46e74b7a3fSYury Norovconfig RUST_KUNIT_SELFTEST 47e74b7a3fSYury Norov bool "KUnit selftests for Rust" if !KUNIT_ALL_TESTS 48e74b7a3fSYury Norov default KUNIT_ALL_TESTS 49e74b7a3fSYury Norov help 50e74b7a3fSYury Norov This option enables KUnit selftests. These are only 51e74b7a3fSYury Norov for development and testing, not for regular kernel 52e74b7a3fSYury Norov use cases. 53e74b7a3fSYury Norov 54e74b7a3fSYury Norov If unsure, say N. 55e74b7a3fSYury Norov 56e74b7a3fSYury Norovconfig RUST_STR_KUNIT_TEST 57e74b7a3fSYury Norov bool "KUnit tests for Rust strings API" if !KUNIT_ALL_TESTS 58e74b7a3fSYury Norov default KUNIT_ALL_TESTS 59e74b7a3fSYury Norov help 60e74b7a3fSYury Norov This option enables KUnit tests for the Rust strings API. 61e74b7a3fSYury Norov These are only for development and testing, not for regular 62e74b7a3fSYury Norov kernel use cases. 63e74b7a3fSYury Norov 64e74b7a3fSYury Norov If unsure, say N. 65e74b7a3fSYury Norov 66e74b7a3fSYury Norovconfig RUST_ATOMICS_KUNIT_TEST 67e74b7a3fSYury Norov bool "KUnit tests for Rust atomics API" if !KUNIT_ALL_TESTS 68e74b7a3fSYury Norov default KUNIT_ALL_TESTS 69e74b7a3fSYury Norov help 70e74b7a3fSYury Norov This option enables KUnit tests for the Rust atomics API. 71e74b7a3fSYury Norov These are only for development and testing, not for regular 72e74b7a3fSYury Norov kernel use cases. 73e74b7a3fSYury Norov 74e74b7a3fSYury Norov If unsure, say N. 75e74b7a3fSYury Norov 76*7f502747SJoel Fernandesconfig RUST_BITFIELD_KUNIT_TEST 77*7f502747SJoel Fernandes bool "KUnit tests for the Rust `bitfield!` macro" if !KUNIT_ALL_TESTS 78*7f502747SJoel Fernandes default KUNIT_ALL_TESTS 79*7f502747SJoel Fernandes help 80*7f502747SJoel Fernandes This option enables KUnit tests for the Rust `bitfield!` macro. 81*7f502747SJoel Fernandes These are only for development and testing, not for regular 82*7f502747SJoel Fernandes kernel use cases. 83*7f502747SJoel Fernandes 84*7f502747SJoel Fernandes If unsure, say N. 85*7f502747SJoel Fernandes 86e74b7a3fSYury Norovendif 87