Lines Matching full:echo
24 echo "Usage:"
25 echo "$0 [-f] [-m name] [-t type]"
26 echo "-f: full test. It maybe conflict with existence gpio device."
27 echo "-m: module name, default name is gpio-mockup. It could also test"
28 echo " other gpio device."
29 echo "-t: interface type: chardev(char device) and sysfs(being"
30 echo " deprecated). The first one is default"
31 echo ""
32 echo "$0 -h"
33 echo "This usage"
40 echo $msg must be run as root >&2
45 echo $msg sysfs is not mounted >&2
48 GPIO_SYSFS=`echo $SYSFS/class/gpio`
49 GPIO_DRV_SYSFS=`echo $SYSFS/devices/platform/$module/gpio`
52 echo $msg debugfs is not mounted >&2
55 GPIO_DEBUGFS=`echo $DEBUGFS/gpio`
62 echo "$GPIO_DRV_SYSFS exist. Skip insert module"
66 echo $msg insmod $module failed >&2
86 echo "WARNING: sysfs ABI of gpio is going to deprecated."
102 echo -n "GPIO $module test with ranges: <"
103 echo "$param>: "
115 echo "Parameter process failed, Terminating..." >&2
145 echo "Internal error!"
161 echo "1. Test dynamic allocation of gpio successful means insert gpiochip and"
162 echo " manipulate gpio pin successful"
172 echo "2. Do basic test: successful means insert gpiochip and"
173 echo " manipulate gpio pin successful"
178 echo "3. Error test: successful means insert gpiochip failed"
179 echo "3.1 Test number of gpio overflow"
183 echo "3.2 Test zero line of gpio"
185 echo "3.3 Test range overlap"
186 echo "3.3.1 Test corner case"
193 echo "3.3.2 Test inserting invalid second gpiochip"
198 echo "3.3.3 Test others"
205 echo GPIO test PASS