Lines Matching refs:SYSFS_PATH
343 SYSFS_PATH=/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/pull
344 test `cat $SYSFS_PATH` = "pull-down" || fail "reading the pull failed"
346 test `cat $SYSFS_PATH` = "pull-up" || fail "reading the pull failed"
356 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/pull"
357 echo foobar > $SYSFS_PATH 2> /dev/null && fail "invalid input not detected"
366 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/value"
367 echo 1 > $SYSFS_PATH 2> /dev/null && fail "writing to 'value' succeeded unexpectedly"
379 SYSFS_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio0/value"
380 test `cat $SYSFS_PATH` = "0" || fail "incorrect value read from sysfs"
383 test `cat $SYSFS_PATH` = "1" || fail "incorrect value read from sysfs"
393 test `cat $SYSFS_PATH` = "1" || fail "bias setting does not work"