Lines Matching +full:use +full:- +full:cases
2 # SPDX-License-Identifier: GPL-2.0
6 # - control: any device can do this
7 # - out, in: out needs 'bulk sink' firmware, in needs 'bulk src'
8 # - iso-out, iso-in: out needs 'iso sink' firmware, in needs 'iso src'
9 # - halt: needs bulk sink+src, tests halt set/clear from host
10 # - unlink: needs bulk sink and/or src, test HCD unlink processing
11 # - loop: needs firmware that will buffer N transfers
25 # - include unlink tests
26 # - add some ${RANDOM}ness
27 # - connect several devices concurrently (same HC)
28 # - keep HC's IRQ lines busy with unrelated traffic (IDE, net, ...)
29 # - add other concurrent system loads
32 declare -i COUNT BUFLEN
37 # NOTE: the 'in' and 'out' cases are usually bulk, but can be
38 # set up to use interrupt transfers by 'usbtest' module options
44 TEST_ARGS="-a"
51 if ! ./testusb $TEST_ARGS -s $BUFLEN -c $COUNT $* 2>/dev/null
65 # FIXME use /sys/bus/usb/device/$THIS/bConfigurationValue to
105 # any device, in any configuration, can use this.
106 echo '** Control test cases:'
109 do_test -t 9 -c 5000
111 do_test -t 10 -c 5000
113 # this relies on some vendor-specific commands
115 do_test -t 14 -c 15000 -s 256 -v 1
118 do_test -t 21 -c 100 -s 256 -v 1
123 check_config sink-src
124 echo '** Host Write (OUT) test cases:'
127 do_test -t 1
129 do_test -t 3 -v 421
133 do_test -t 17
136 do_test -t 19
140 do_test -t 5
144 do_test -t 7 -v 579
147 do_test -t 7 -v 41
150 do_test -t 7 -v 63
153 iso-out)
154 check_config sink-src
155 echo '** Host ISOCHRONOUS Write (OUT) test cases:'
158 # - usb 2.0 high bandwidth, this is one frame.
159 # - usb 1.1, it's twenty-four frames.
167 # do_test -t 15 -g 3 -v 0
169 do_test -t 15 -g 8 -v 0
176 do_test -t 22 -g 8 -v 0
181 check_config sink-src
182 echo '** Host Read (IN) test cases:'
188 do_test -t 2
190 do_test -t 4
194 do_test -t 18
197 do_test -t 20
201 do_test -t 6
203 do_test -t 8
206 iso-in)
207 check_config sink-src
208 echo '** Host ISOCHRONOUS Read (IN) test cases:'
211 # - usb 2.0 high bandwidth, this is one frame.
212 # - usb 1.1, it's twenty-four frames.
220 # do_test -t 16 -g 3 -v 0
222 do_test -t 16 -g 8 -v 0
229 do_test -t 23 -g 8 -v 0
235 # endpoints from the host side. so long as mass-storage class
240 do_test -t 13
246 do_test -t 11
249 do_test -t 12
253 # defaults need too much buffering for ez-usb devices