| Message ID | 20251006-gpiosim-valid-lines-v1-0-b399373e90a9@linaro.org |
|---|---|
| Headers | show |
| Series | tests: update libgpiosim tests and add a uAPI test case for valid lines | expand |
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> On Mon, 06 Oct 2025 13:27:45 +0200, Bartosz Golaszewski wrote: > 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. > > Applied, thanks! [1/7] tests: harness: use correct type to capture a boolean retval https://git.kernel.org/brgl/libgpiod/c/347adbd698537a32986b2a590fb6e91034d1d479 [2/7] tests: gpiosim: don't allow clearing hogs on active devices https://git.kernel.org/brgl/libgpiod/c/1aca992f8b8fc5f3d5a76043ada2a01f740f0066 [3/7] tests: gpiosim: selftests: shrink the self-test code https://git.kernel.org/brgl/libgpiod/c/43d100a49c437a842a0585d67ff09861b72567a1 [4/7] tests: gpiosim: selftests: add more test cases https://git.kernel.org/brgl/libgpiod/c/8379438130ca12424ef794cae7471736f519f18b [5/7] tests: gpiosim: provide gpiosim_bank_set_line_valid() https://git.kernel.org/brgl/libgpiod/c/b4009e2e6715564ead10424ccba73eb1ecdd8a33 [6/7] tests: harness: support setting invalid lines https://git.kernel.org/brgl/libgpiod/c/d6fd0a065a17a98e5761421587fdfd5abaadecb1 [7/7] tests: add a test case for checking invalid lines https://git.kernel.org/brgl/libgpiod/c/f4fe71e9405c3dbeab41dc8ea772735fd64562f8 Best regards,
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. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- 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,