mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] gpio: add kunit tests for GPIO core
@ 2026-05-20  8:21 Bartosz Golaszewski
  2026-05-20  8:21 ` [PATCH v2 1/3] kunit: provide kunit_platform_device_register_full() Bartosz Golaszewski
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2026-05-20  8:21 UTC (permalink / raw)
  To: Brendan Higgins, David Gow, Rae Moar, Linus Walleij, Bartosz Golaszewski
  Cc: linux-kselftest, kunit-dev, linux-kernel, linux-gpio,
	Bartosz Golaszewski

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>
---
Changes in v2:
- Remove cases of kunit killing a thread on test failure with device lock
  taken
- Fix a platform device leak on test failure
- New patch: provide kunit_platform_device_unregister()
- Link to v1: https://patch.msgid.link/20260518-gpiolib-kunit-v1-0-131ec646c4df@oss.qualcomm.com

---
Bartosz Golaszewski (3):
      kunit: provide kunit_platform_device_register_full()
      kunit: provide kunit_platform_device_unregister()
      gpio: add kunit test cases for the GPIO subsystem

 drivers/gpio/Kconfig            |   8 +
 drivers/gpio/Makefile           |   1 +
 drivers/gpio/gpiolib-kunit.c    | 358 ++++++++++++++++++++++++++++++++++++++++
 include/kunit/platform_device.h |   6 +
 lib/kunit/platform.c            |  46 ++++++
 5 files changed, 419 insertions(+)
---
base-commit: 80dd246accce631c328ea43294e53b2b2dd2aa32
change-id: 20260326-gpiolib-kunit-d7f1b5541ffa

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-25  8:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-20  8:21 [PATCH v2 0/3] gpio: add kunit tests for GPIO core Bartosz Golaszewski
2026-05-20  8:21 ` [PATCH v2 1/3] kunit: provide kunit_platform_device_register_full() Bartosz Golaszewski
2026-05-20  8:21 ` [PATCH v2 2/3] kunit: provide kunit_platform_device_unregister() Bartosz Golaszewski
2026-05-20  8:21 ` [PATCH v2 3/3] gpio: add kunit test cases for the GPIO subsystem Bartosz Golaszewski
2026-05-25  8:51 ` [PATCH v2 0/3] gpio: add kunit tests for GPIO core Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®