Lines Matching +full:prop +full:-
2 # SPDX-License-Identifier: GPL-2.0
12 PROP="$1"
15 PROP_PATH="$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP"
16 TEST_NAME="$DEVNAME".sysfs."$PROP"
18 if [ -z "$VALUE" ]; then
19 ktap_test_result "$TEST_NAME" [ -f "$PROP_PATH" ]
21 ktap_test_result "$TEST_NAME" grep -q "$VALUE" "$PROP_PATH"
30 *[!0-9]* ) return ;; # Not a number
57 PROP=$1
59 PROP_PATH="$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP"
60 TEST_NAME="$DEVNAME".sysfs."$PROP"
62 if [ ! -e "$PROP_PATH" ] ; then
77 PROP=$1
80 TEST_NAME="$DEVNAME".sysfs."$PROP"
82 _check_sysfs_prop_available "$PROP" || return
83 DATA=$(cat "$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP")
90 PROP=$1
95 TEST_NAME="$DEVNAME".sysfs."$PROP"
97 _check_sysfs_prop_available "$PROP" || return
98 DATA=$(cat "$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP")
100 if [ "$DATA" -lt "$MIN" ] || [ "$DATA" -gt "$MAX" ]; then
110 PROP=$1
113 TEST_NAME="$DEVNAME".sysfs."$PROP"
115 _check_sysfs_prop_available "$PROP" || return
116 DATA=$(cat "$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP")
128 if [ "$valid" -eq 1 ]; then
140 while read -r line; do
146 PROP="$1"
151 TEST_NAME="$DEVNAME".uevent."$PROP"
153 if ! grep -q "POWER_SUPPLY_$PROP=" "$UEVENT_PATH"; then
154 if [ "$OPTIONAL" -eq 1 ]; then
163 if ! grep -q "POWER_SUPPLY_$PROP=$VALUE" "$UEVENT_PATH"; then