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"
73 echo $LABEL > $CONFIGFS_DIR/$CHIP/$BANK/label || fail "Unable to set the chip label"
82 fail "Unable to set the number of lines"
93 echo $NAME > $LINE_DIR/name || fail "Unable to set the line name"
99 echo 1 > $CONFIGFS_DIR/$CHIP/live || fail "Unable to enable the chip"
105 echo 0 > $CONFIGFS_DIR/$CHIP/live || fail "Unable to disable the chip"
113 fail "unable to read the chip name from configfs"
120 fail "unable to read the device name from configfs"
128 fail "unable to read the number of lines from the character device"
136 fail "unable to read the chip label from the character device"
145 fail "unable to read the line name from the character device"
157 echo $PULL > $SYSFSPATH || fail "Unable to set line pull in sysfs"
183 test -n `cat $CONFIGFS_DIR/chip/bank/chip_name` || fail "chip_name doesn't work"
190 fail "chip_name doesn't return 'none' for a pending chip"
197 test -n `cat $CONFIGFS_DIR/chip/dev_name` || fail "dev_name doesn't work"
206 test "`get_chip_num_lines chip bank`" = "1" || fail "default number of lines is not 1"
214 test "`get_chip_num_lines chip bank`" = "16" || fail "number of lines is not 16"
222 test "`get_chip_label chip bank`" = "foobar" || fail "label is incorrect"
229 test -z "`cat $CONFIGFS_DIR/chip/bank/label`" || fail "label is not empty"
239 test "`get_line_name chip bank 0`" = "foo" || fail "line name is incorrect"
240 test "`get_line_name chip bank 2`" = "bar" || fail "line name is incorrect"
249 test "`get_line_name chip bank 0`" = "" || fail "line name is incorrect"
250 test "`get_line_name chip bank 1`" = "" || fail "line name is incorrect"
257 fail "invalid configfs line name accepted"
259 fail "invalid configfs line name accepted"
278 fail "Setting label of a live chip should fail"
280 fail "Setting number of lines of a live chip should fail"
287 mkdir $CONFIGFS_DIR/chip/bank/line0 2> /dev/null && fail "Creating line item should fail"
294 echo 1 > $CONFIGFS_DIR/chip/live 2> /dev/null && fail "Probe error was not propagated"
299 echo 1 > $CONFIGFS_DIR/chip/live 2> /dev/null && fail "Chip enabled without any GPIO banks"
308 echo 1 > $CONFIGFS_DIR/chip/live 2> /dev/null && fail "Duplicate chip labels were not rejected"
318 fail "Setting the value of a hogged line shouldn't succeed"
330 test "$?" = "1" || fail "pull set incorrectly"
333 test "$?" = "0" || fail "pull set incorrectly"
344 test `cat $SYSFS_PATH` = "pull-down" || fail "reading the pull failed"
346 test `cat $SYSFS_PATH` = "pull-up" || fail "reading the pull failed"
357 echo foobar > $SYSFS_PATH 2> /dev/null && fail "invalid input not detected"
367 echo 1 > $SYSFS_PATH 2> /dev/null && fail "writing to 'value' succeeded unexpectedly"
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"