mbox series

[0/2] gpio: add kunit tests for GPIO core

Message ID 20260518-gpiolib-kunit-v1-0-131ec646c4df@oss.qualcomm.com
Headers show
Series gpio: add kunit tests for GPIO core | expand

Message

Bartosz Golaszewski May 18, 2026, 2:16 p.m. UTC
This series adds a first batch of kunit tests for GPIO core. I intend to
gradually add more coverage for functionalities that can't really be
tested from user-space with the existing kernel selftests or libgpiod
tests.

Merging strategy: with an Ack from kunit maintainers, this can go
through the GPIO tree for v7.2.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Bartosz Golaszewski (2):
      kunit: provide kunit_platform_device_register_full()
      gpio: add kunit test cases for the GPIO subsystem

 drivers/gpio/Kconfig            |   8 +
 drivers/gpio/Makefile           |   1 +
 drivers/gpio/gpiolib-kunit.c    | 354 ++++++++++++++++++++++++++++++++++++++++
 include/kunit/platform_device.h |   4 +
 lib/kunit/platform.c            |  31 ++++
 5 files changed, 398 insertions(+)
---
base-commit: 4a1989fb6514ca2a4b157ff4700bdcc8bdd9a978
change-id: 20260326-gpiolib-kunit-d7f1b5541ffa

Best regards,