binder: Scaffolding for binder_alloc KUnit tests
authorTiffany Yang <ynaffit@google.com>
Mon, 14 Jul 2025 18:53:17 +0000 (11:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2025 12:11:58 +0000 (14:11 +0200)
commit5e024582f494c6ff5eb2bec5183fd1eb35462500
tree4961e17ce0052fea9ddbf2bcc657631fcb98e20f
parentbdfa89c489296f092751fcee23b5d171c9fdc7f5
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>
drivers/android/Kconfig
drivers/android/Makefile
drivers/android/binder.c
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h
drivers/android/binder_internal.h
drivers/android/tests/.kunitconfig [new file with mode: 0644]
drivers/android/tests/Makefile [new file with mode: 0644]
drivers/android/tests/binder_alloc_kunit.c [new file with mode: 0644]