Lines Matching refs:fail

9 fail() {  function
35 fail "Unable to remove the hog"
39 fail "Unable to remove the line"
46 rmdir $CONFIGFS_DIR/$CHIP || fail "Unable to remove the chip"
67 echo $LABEL > $CONFIGFS_DIR/$CHIP/$BANK/label || fail "Unable to set the chip label"
76 fail "Unable to set the number of lines"
87 echo $NAME > $LINE_DIR/name || fail "Unable to set the line name"
93 echo 1 > $CONFIGFS_DIR/$CHIP/live || fail "Unable to enable the chip"
99 echo 0 > $CONFIGFS_DIR/$CHIP/live || fail "Unable to disable the chip"
114 fail "unable to read the chip name from configfs"
121 fail "unable to read the device name from configfs"
129 fail "unable to read the number of lines from the character device"
137 fail "unable to read the chip label from the character device"
146 fail "unable to read the line name from the character device"
158 echo $PULL > $SYSFS_PATH || fail "Unable to set line pull in sysfs"
184 test -n `cat $CONFIGFS_DIR/chip/bank/chip_name` || fail "chip_name doesn't work"
192 fail "chip_name doesn't return 'none' for a pending chip"
199 test -n `cat $CONFIGFS_DIR/chip/dev_name` || fail "dev_name doesn't work"
209 test "`get_chip_num_lines chip bank`" = "1" || fail "default number of lines is not 1"
218 test "`get_chip_num_lines chip bank`" = "16" || fail "number of lines is not 16"
227 test "`get_chip_label chip bank`" = "foobar" || fail "label is incorrect"
235 test -z "`cat $CONFIGFS_DIR/chip/bank/label`" || fail "label is not empty"
246 test "`get_line_name chip bank 0`" = "foo" || fail "line name is incorrect"
247 test "`get_line_name chip bank 2`" = "bar" || fail "line name is incorrect"
257 test "`get_line_name chip bank 0`" = "" || fail "line name is incorrect"
258 test "`get_line_name chip bank 1`" = "" || fail "line name is incorrect"
266 fail "invalid configfs line name accepted"
268 fail "invalid configfs line name accepted"
288 fail "Setting label of a live chip should fail"
290 fail "Setting number of lines of a live chip should fail"
298 mkdir $CONFIGFS_DIR/chip/bank/line0 2> /dev/null && fail "Creating line item should fail"
306 echo 1 > $CONFIGFS_DIR/chip/live 2> /dev/null && fail "Probe error was not propagated"
311 echo 1 > $CONFIGFS_DIR/chip/live 2> /dev/null && fail "Chip enabled without any GPIO banks"
320 echo 1 > $CONFIGFS_DIR/chip/live 2> /dev/null && fail "Duplicate chip labels were not rejected"
330 fail "Setting the value of a hogged line shouldn't succeed"
343 test "$?" = "1" || fail "pull set incorrectly"
346 test "$?" = "0" || fail "pull set incorrectly"
358 test `cat $SYSFS_PATH` = "pull-down" || fail "reading the pull failed"
360 test `cat $SYSFS_PATH` = "pull-up" || fail "reading the pull failed"
372 echo foobar > $SYSFS_PATH 2> /dev/null && fail "invalid input not detected"
383 echo 1 > $SYSFS_PATH 2> /dev/null && fail "writing to 'value' succeeded unexpectedly"
397 test `cat $SYSFS_PATH` = "0" || fail "incorrect value read from sysfs"
400 test `cat $SYSFS_PATH` = "1" || fail "incorrect value read from sysfs"
414 test `cat $SYSFS_PATH` = "1" || fail "bias setting does not work"