Lines Matching full:echo
13 echo "$*" >&2
14 echo "GPIO $MODULE test FAIL"
19 echo "$*" >&2
20 echo "GPIO $MODULE test SKIP"
28 echo 1 > "$CONFIGFS_SIM_DIR/$CHIP/live" || fail "Unable to enable the chip"
34 echo 0 > "$CONFIGFS_SIM_DIR/$CHIP/live" || fail "Unable to disable the chip"
42 echo 0 > "$CHIP_DIR/live"
95 echo "$KEY" > "$CONFIGFS_AGG_DIR/$CHIP/$LINE/key" || fail "Unable to set the lookup key"
103 echo "$OFFSET" > "$CONFIGFS_AGG_DIR/$CHIP/$LINE/offset" || \
112 echo "$NAME" > "$CONFIGFS_AGG_DIR/$CHIP/$LINE/name" || fail "Unable to set the line name"
118 echo 1 > "$CONFIGFS_AGG_DIR/$CHIP/live" || fail "Unable to enable the chip"
124 echo 0 > "$CONFIGFS_AGG_DIR/$CHIP/live" || fail "Unable to disable the chip"
132 echo 0 > "$CHIP_DIR/live" 2> /dev/null
154 local CHIP_COUNT=$(echo "$CHIP_LIST" | wc -l)
170 echo "$N_DIR"
179 echo "$N_LINES"
197 echo "$NAME_CONFIGFS"
206 echo "$NAME_CDEV"
237 echo "${CHIP}_${BANK}" > "$CONFIGFS_SIM_DIR/$CHIP/$BANK/label" || \
239 echo 16 > "$CONFIGFS_SIM_DIR/$CHIP/$BANK/num_lines" || \
245 echo "$LINE_NAME" > "$LINE_DIR/name" || fail "unable to set the line name"
251 echo "1. GPIO aggregator creation/deletion"
253 echo "1.1. Creation/deletion via configfs"
255 echo "1.1.1. Minimum creation/deletion"
271 echo "1.1.2. Complex creation/deletion"
305 echo "1.1.3. Can't instantiate a chip without any line"
307 echo 1 > "$CONFIGFS_AGG_DIR/agg0/live" 2> /dev/null && fail "chip unexpectedly enabled"
311 echo "1.1.4. Can't instantiate a chip with invalid configuration"
317 echo 1 > "$CONFIGFS_AGG_DIR/agg0/live" 2> /dev/null && fail "chip unexpectedly enabled"
322 echo "1.1.5. Can't instantiate a chip asynchronously via deferred probe"
329 echo 1 > "$CONFIGFS_AGG_DIR/agg0/live" 2> /dev/null && fail "chip unexpectedly enabled"
338 echo "1.1.6. Can't instantiate a chip with _sysfs prefix"
342 echo "1.2. Creation/deletion via sysfs"
344 echo "1.2.1. Minimum creation/deletion"
345 echo "chip0_bank0 0" > "$SYSFS_AGG_DIR/new_device"
352 echo "$(agg_configfs_dev_name _sysfs.0)" > "$SYSFS_AGG_DIR/delete_device"
356 echo "1.2.2. Complex creation/deletion"
357 echo "chip0bank0_0 chip1_bank1 10-11" > "$SYSFS_AGG_DIR/new_device"
366 echo "$(agg_configfs_dev_name _sysfs.0)" > "$SYSFS_AGG_DIR/delete_device"
370 echo "1.2.3. Asynchronous creation with deferred probe"
372 echo 'chip0_bank0 0' > $SYSFS_AGG_DIR/new_device
383 echo "$(agg_configfs_dev_name _sysfs.0)" > "$SYSFS_AGG_DIR/delete_device"
387 echo "1.2.4. Can't instantiate a chip with invalid configuration"
388 echo "xyz 0" > "$SYSFS_AGG_DIR/new_device"
390 echo "$(agg_configfs_dev_name _sysfs.0)" > "$SYSFS_AGG_DIR/delete_device"
392 echo "2. GPIO aggregator configuration"
394 echo "2.1. Configuring aggregators instantiated via configfs"
411 echo "2.1.1. While offline"
413 echo "2.1.1.1. Line can be added/removed"
423 echo "2.1.1.2. Line key can be modified"
431 echo "2.1.1.3. Line name can be modified"
441 echo "2.1.1.4. Line offset can be modified"
449 echo "2.1.1.5. Can re-enable a chip after valid reconfiguration"
463 echo "2.1.1.7. Can't re-enable a chip with invalid reconfiguration"
467 echo 1 > "$CONFIGFS_AGG_DIR/agg0/live" 2> /dev/null && fail "chip unexpectedly enabled"
472 echo 1 > "$CONFIGFS_AGG_DIR/agg0/live" 2> /dev/null && fail "chip unexpectedly enabled"
475 echo "2.1.2. While online"
477 echo "2.1.2.1. Can't add/remove line"
483 echo "2.1.2.2. Can't modify line key"
485 echo "chip1_bank1" > "$CONFIGFS_AGG_DIR/agg0/line0/key" 2> /dev/null && \
489 echo "2.1.2.3. Can't modify line name"
491 echo "new0" > "$CONFIGFS_AGG_DIR/agg0/line0/name" 2> /dev/null && \
495 echo "2.1.2.4. Can't modify line offset"
497 echo "5" > "$CONFIGFS_AGG_DIR/agg0/line0/offset" 2> /dev/null && \
501 echo "2.2. Configuring aggregators instantiated via sysfs"
503 echo "chip0_bank0 1 chip1_bank0 3" > "$SYSFS_AGG_DIR/new_device"
506 echo "$(agg_configfs_dev_name _sysfs.0)" > "$SYSFS_AGG_DIR/delete_device"
509 echo "2.2.1. While online"
511 echo "2.2.1.1. Can toggle live"
517 echo "2.2.1.2. Can't add/remove line"
523 echo "2.2.1.3. Can't modify line key"
525 echo "chip1_bank1" > "$CONFIGFS_AGG_DIR/_sysfs.0/line0/key" 2> /dev/null && \
529 echo "2.2.1.4. Can't modify line name"
531 echo "new0" > "$CONFIGFS_AGG_DIR/_sysfs.0/line0/name" 2> /dev/null && \
535 echo "2.2.1.5. Can't modify line offset"
537 echo "5" > "$CONFIGFS_AGG_DIR/_sysfs.0/line0/offset" 2> /dev/null && \
541 echo "2.2.2. While waiting for deferred probe"
543 echo "2.2.2.1. Can't add/remove line despite live = 0"
551 echo "2.2.2.2. Can't modify line key"
554 echo "chip1_bank1" > "$CONFIGFS_AGG_DIR/_sysfs.0/line0/key" 2> /dev/null && \
559 echo "2.2.2.3. Can't modify line name"
562 echo "new0" > "$CONFIGFS_AGG_DIR/_sysfs.0/line0/name" 2> /dev/null && \
567 echo "2.2.2.4. Can't modify line offset"
570 echo 5 > "$CONFIGFS_AGG_DIR/_sysfs.0/line0/offset" 2> /dev/null && \
575 echo "2.2.2.5. Can't toggle live"
579 echo 1 > "$CONFIGFS_AGG_DIR/_sysfs.0/live" 2> /dev/null && fail "chip unexpectedly enabled"
583 echo "2.2.3. While offline"
585 echo "2.2.3.1. Can't add/remove line despite live = 0"
592 echo "2.2.3.2. Line key can be modified"
600 echo "2.2.3.3. Line name can be modified"
610 echo "2.2.3.4. Line offset can be modified"
618 echo "2.2.3.5. Can re-enable a chip with valid reconfiguration"
628 echo "2.2.3.6. Can't re-enable a chip with invalid reconfiguration"
632 echo 1 > "$CONFIGFS_AGG_DIR/_sysfs.0/live" 2> /dev/null && fail "chip unexpectedly enabled"
637 echo 1 > "$CONFIGFS_AGG_DIR/_sysfs.0/live" 2> /dev/null && fail "chip unexpectedly enabled"
640 echo "3. Module unload"
642 echo "3.1. Can't unload module if there is at least one device created via configfs"
648 echo "3.2. Can unload module if there is no device created via configfs"
649 echo "chip0_bank0 1 chip1_bank0 3" > "$SYSFS_AGG_DIR/new_device"
654 echo "4. GPIO forwarder functional"
660 CHIP=$(echo "$SETTING" | cut -d: -f1)
661 BANK=$(echo "$SETTING" | cut -d: -f2)
662 LINE=$(echo "$SETTING" | cut -d: -f3)
674 echo "4.1. Forwarding set values"
678 CHIP=$(echo "$SETTING" | cut -d: -f1)
679 BANK=$(echo "$SETTING" | cut -d: -f2)
680 LINE=$(echo "$SETTING" | cut -d: -f3)
694 echo "4.2. Forwarding set config"
698 CHIP=$(echo "$SETTING" | cut -d: -f1)
699 BANK=$(echo "$SETTING" | cut -d: -f2)
700 LINE=$(echo "$SETTING" | cut -d: -f3)
710 echo "5. Race condition verification"
712 echo "5.1. Stress test of new_device/delete_device and module load/unload"
715 echo "dummy 0" > "$SYSFS_AGG_DIR/new_device"
727 echo "GPIO $MODULE test PASS"