Lines Matching +full:skip +full:- +full:config
2 # SPDX-License-Identifier: GPL-2.0
6 CONFIGFS_DIR="/sys/kernel/config/gpio-sim"
7 MODULE="gpio-sim"
15 skip() { function
17 echo "GPIO $MODULE test SKIP"
26 if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then
30 LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | grep -E ^line`
33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then
86 test -d $LINE_DIR || mkdir $LINE_DIR
128 $BASE_DIR/gpio-chip-info /dev/`configfs_chip_name $CHIP $BANK` num-lines || \
136 $BASE_DIR/gpio-chip-info /dev/`configfs_chip_name $CHIP $BANK` label || \
145 $BASE_DIR/gpio-line-name /dev/`configfs_chip_name $CHIP $BANK` $OFFSET || \
161 # Load the gpio-sim module. This will pull in configfs if needed too.
162 modprobe gpio-sim || skip "unable to load the gpio-sim module"
163 # Make sure configfs is mounted at /sys/kernel/config. Wait a bit if needed.
165 if [ "$IDX" -eq "5" ]; then
166 skip "configfs not mounted at /sys/kernel/config"
169 mountpoint -q /sys/kernel/config && break
184 test -n `cat $CONFIGFS_DIR/chip/bank/chip_name` || fail "chip_name doesn't work"
199 test -n `cat $CONFIGFS_DIR/chip/dev_name` || fail "dev_name doesn't work"
235 test -z "`cat $CONFIGFS_DIR/chip/bank/label`" || fail "label is not empty"
251 echo "2.6. Line config can remain unused if offset is greater than number of lines"
302 echo "2.11. Probe errors are propagated to user-space"
327 mkdir -p $CONFIGFS_DIR/chip/bank/line4/hog
329 $BASE_DIR/gpio-mockup-cdev -s 1 /dev/`configfs_chip_name chip bank` 4 2> /dev/null && \
341 sysfs_set_pull chip bank 0 pull-up
342 $BASE_DIR/gpio-mockup-cdev /dev/`configfs_chip_name chip bank` 0
344 sysfs_set_pull chip bank 0 pull-down
345 $BASE_DIR/gpio-mockup-cdev /dev/`configfs_chip_name chip bank` 1
358 test `cat $SYSFS_PATH` = "pull-down" || fail "reading the pull failed"
359 sysfs_set_pull chip bank 0 pull-up
360 test `cat $SYSFS_PATH` = "pull-up" || fail "reading the pull failed"
398 $BASE_DIR/gpio-mockup-cdev -s 1 /dev/`configfs_chip_name chip bank` 0 &
413 $BASE_DIR/gpio-mockup-cdev -b pull-up /dev/`configfs_chip_name chip bank` 0