linux/tools/testing/selftests/gpio
Koichiro Den 290ffcfe30 selftests: gpio: gpio-aggregator: add a test case for _sysfs prefix reservation
The kernel doc for gpio-aggregator configfs interface, which was recently
added, states that users should not be able to create an aggregator with a
name prefixed by "_sysfs" via configfs. However, it was found that this
guard does not function as expected (thanks to Dan Carpenter for
identifying and fixing the issue).

Add a test case to verify the guard.

Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Link: https://lore.kernel.org/r/20250412150119.1461023-1-koichiro.den@canonical.com
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
2025-04-14 22:30:01 +02:00
..
.gitignore selftests: gpio: add a helper for reading GPIO line names 2021-12-17 12:26:13 +01:00
config selftests: gpio: add test cases for gpio-aggregator 2025-04-09 16:57:30 +02:00
gpio-aggregator.sh selftests: gpio: gpio-aggregator: add a test case for _sysfs prefix reservation 2025-04-14 22:30:01 +02:00
gpio-chip-info.c selftests: gpio: provide a helper for reading chip info 2021-12-17 12:26:13 +01:00
gpio-line-name.c selftests: gpio: add a helper for reading GPIO line names 2021-12-17 12:26:13 +01:00
gpio-mockup-cdev.c selftests: gpio: fix uninitialised variable warning 2021-11-15 14:27:50 +01:00
gpio-mockup-sysfs.sh selftests: gpio: rework and simplify test implementation 2021-02-15 11:43:28 +01:00
gpio-mockup.sh selftest: gpio: remove obsolete gpio-mockup test 2024-03-05 20:01:08 +01:00
gpio-sim.sh selftests: gpio: gpio-sim: Fix missing chip disablements 2025-01-23 15:44:48 +01:00
Makefile selftests: gpio: add test cases for gpio-aggregator 2025-04-09 16:57:30 +02:00