Lines Matching +full:0 +full:- +full:32

2 # SPDX-License-Identifier: GPL-2.0
7 #3: insert module fail when gpio-mockup is a module.
8 #4: Skip test including run as non-root user.
19 # Kselftest framework requirement - SKIP code is 4.
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"
29 echo "-t: interface type: chardev(char device) and sysfs(being"
32 echo "$0 -h"
39 if [ $UID != 0 ]; then
43 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
44 if [ ! -d "$SYSFS" ]; then
50 DEBUGFS=`mount -t debugfs | head -1 | awk '{ print $3 }'`
51 if [ ! -d "$DEBUGFS" ]; then
56 source gpio-mockup-sysfs.sh
61 if [ -d "$GPIO_DRV_SYSFS" ]; then
64 modprobe -q $module $1
74 modprobe -r -q $module
89 $BASE/gpio-mockup-chardev $*
102 echo -n "GPIO $module test with ranges: <"
104 printf "%-10s %s\n" $param
109 BASE=`dirname $0`
112 TEMP=`getopt -o fhm:t: -n '$0' -- "$@"`
114 if [ "$?" != "0" ]; then
120 eval set -- "$TEMP"
124 -f)
128 -h)
132 -m)
136 -t)
140 --)
152 module="gpio-mockup"
163 gpio_test "-1,32" true
164 gpio_test "-1,32,-1,32" true
165 gpio_test "-1,32,-1,32,-1,32" true
167 gpio_test "-1,32,32,64" true
168 gpio_test "-1,32,40,64,-1,5" true
169 gpio_test "-1,32,32,64,-1,32" true
170 gpio_test "0,32,32,64,-1,32,-1,32" true
171 gpio_test "-1,32,-1,32,0,32,32,64" true
174 gpio_test "0,32" true
175 gpio_test "0,32,32,64" true
176 gpio_test "0,32,40,64,64,96" true
181 gpio_test "-1,32,-1,1024" false
184 gpio_test "0,0" false
187 gpio_test "0,32,0,1" false
188 gpio_test "0,32,32,64,32,40" false
189 gpio_test "0,32,35,64,35,45" false
190 gpio_test "0,32,31,32" false
191 gpio_test "0,32,32,64,36,37" false
192 gpio_test "0,32,35,64,34,36" false
194 gpio_test "0,32,30,35" false
195 gpio_test "0,32,1,5" false
196 gpio_test "10,32,9,14" false
197 gpio_test "10,32,30,35" false
199 gpio_test "0,32,40,56,39,45" false
200 gpio_test "0,32,40,56,30,33" false
201 gpio_test "0,32,40,56,30,41" false
202 gpio_test "0,32,40,56,20,21" false