[PATCH 02/10] selftests: power_supply: Add tests for load_switch ABI

From: Waqar Hameed

Date: Mon Jun 29 2026 - 12:08:52 EST


Test the different valid values for the property.

Signed-off-by: Waqar Hameed <waqar.hameed@xxxxxxxx>
---
.../selftests/power_supply/test_power_supply_properties.sh | 2 ++
1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/power_supply/test_power_supply_properties.sh b/tools/testing/selftests/power_supply/test_power_supply_properties.sh
index a66b1313ed882..d3a546f95ae67 100755
--- a/tools/testing/selftests/power_supply/test_power_supply_properties.sh
+++ b/tools/testing/selftests/power_supply/test_power_supply_properties.sh
@@ -80,6 +80,8 @@ for DEVNAME in $supplies; do

test_sysfs_prop_optional_list scope "Unknown","System","Device"

+ test_sysfs_prop_optional_list load_switch "Unknown","On","Off","Standby","Ship"
+
test_sysfs_prop_optional input_current_limit "uA"
test_sysfs_prop_optional input_voltage_limit "uV"

--
2.43.0