Skip to content

tests: update libgpiosim tests and add a uAPI test case for valid lines

Bartosz Golaszewski linux-gpio 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20250904-gpiosim-valid-lines-87bf86d5d91b

Versions newest first

  1. v1 Latest7 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7tests: harness: use correct type to capture a boolean retvaltests/gpiosim-glib/gpiosim-glib.c+3 -20 replies
2/7tests: gpiosim: don't allow clearing hogs on active devicestests/gpiosim/gpiosim.c+3 -00 replies
3/7tests: gpiosim: selftests: shrink the self-test codetests/gpiosim/gpiosim-selftest.c+39 -730 replies
4/7tests: gpiosim: selftests: add more test casestests/gpiosim/gpiosim-selftest.c+9 -00 replies
5/7tests: gpiosim: provide gpiosim_bank_set_line_valid()tests/gpiosim/gpiosim-selftest.c tests/gpiosim/gpiosim.c tests/gpiosim/gpiosim.h+26 -10 replies
6/7tests: harness: support setting invalid linestests/gpiosim-glib/gpiosim-glib.c+45 -00 replies
7/7tests: add a test case for checking invalid linestests/harness/gpiod-test.c tests/tests-kernel-uapi.c+31 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH libgpiod 0/7] tests: update libgpiosim tests and add a uAPI test case for valid lines

This series fixes a couple minor bugs in tests, reworks the libgpiosim selftests a bit, adds support for using the new feature of the gpio-sim module that is marking GPIO lines as valid/invalid and finally adds a test-case for validating the correct kernel behavior with invalid lines.

---
Bartosz Golaszewski (7):
tests: harness: use correct type to capture a boolean retval
tests: gpiosim: don't allow clearing hogs on active devices
tests: gpiosim: selftests: shrink the self-test code
tests: gpiosim: selftests: add more test cases
tests: gpiosim: provide gpiosim_bank_set_line_valid()
tests: harness: support setting invalid lines
tests: add a test case for checking invalid lines

 tests/gpiosim-glib/gpiosim-glib.c |  48 ++++++++++++++-
 tests/gpiosim/gpiosim-selftest.c  | 126 ++++++++++++++++----------------------
 tests/gpiosim/gpiosim.c           |  23 ++++++-
 tests/gpiosim/gpiosim.h           |   2 +
 tests/harness/gpiod-test.c        |   4 +-
 tests/tests-kernel-uapi.c         |  29 +++++++++
 6 files changed, 155 insertions(+), 77 deletions(-)

---
base-commit: 727d07ee53493219a339ffe7c65512eb85548e6f
change-id: 20250904-gpiosim-valid-lines-87bf86d5d91b

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>