summaryrefslogtreecommitdiff
path: root/drivers/android/Kconfig
diff options
context:
space:
mode:
authorTiffany Yang <ynaffit@google.com>2025-07-14 21:53:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-16 15:11:58 +0300
commit5e024582f494c6ff5eb2bec5183fd1eb35462500 (patch)
tree4961e17ce0052fea9ddbf2bcc657631fcb98e20f /drivers/android/Kconfig
parentbdfa89c489296f092751fcee23b5d171c9fdc7f5 (diff)
downloadlinux-5e024582f494c6ff5eb2bec5183fd1eb35462500.tar.xz
binder: Scaffolding for binder_alloc KUnit tests
Add setup and teardown for testing binder allocator code with KUnit. Include minimal test cases to verify that tests are initialized correctly. Tested-by: Rae Moar <rmoar@google.com> Signed-off-by: Tiffany Yang <ynaffit@google.com> Acked-by: Carlos Llamas <cmllamas@google.com> Link: https://lore.kernel.org/r/20250714185321.2417234-5-ynaffit@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android/Kconfig')
-rw-r--r--drivers/android/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/android/Kconfig b/drivers/android/Kconfig
index 07aa8ae0a058..b1bc7183366c 100644
--- a/drivers/android/Kconfig
+++ b/drivers/android/Kconfig
@@ -47,4 +47,15 @@ config ANDROID_BINDER_IPC_SELFTEST
exhaustively with combinations of various buffer sizes and
alignments.
+config ANDROID_BINDER_ALLOC_KUNIT_TEST
+ tristate "KUnit Tests for Android Binder Alloc" if !KUNIT_ALL_TESTS
+ depends on ANDROID_BINDER_IPC && KUNIT
+ default KUNIT_ALL_TESTS
+ help
+ This feature builds the binder alloc KUnit tests.
+
+ Each test case runs using a pared-down binder_alloc struct and
+ test-specific freelist, which allows this KUnit module to be loaded
+ for testing without interfering with a running system.
+
endmenu