selftests: Add test to verify power supply properties
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Wed, 31 Jan 2024 22:48:01 +0000 (17:48 -0500)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 20 Feb 2024 22:53:33 +0000 (15:53 -0700)
commit4a679c5afca027d7f4668f51693f7cce589038f5
tree0ba51a3b6b0aa33400cf4610e092d2f74eed495b
parent2dd0b5a8fcc4f6fef307c79a3ff1d91d9595004d
selftests: Add test to verify power supply properties

Add a kselftest that verifies power supply properties from sysfs and
uevent. It checks whether they are present, readable and return valid
values.

This initial set of properties is not comprehensive, but rather the ones
that I was able to validate locally.

Co-developed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
MAINTAINERS
tools/testing/selftests/Makefile
tools/testing/selftests/power_supply/Makefile [new file with mode: 0644]
tools/testing/selftests/power_supply/helpers.sh [new file with mode: 0644]
tools/testing/selftests/power_supply/test_power_supply_properties.sh [new file with mode: 0755]