Kishon Vijay Abraham I | 62cb0ef | 2017-03-27 15:15:17 +0530 | [diff] [blame] | 1 | #!/bin/sh |
Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 2 | # SPDX-License-Identifier: GPL-2.0 |
Kishon Vijay Abraham I | 62cb0ef | 2017-03-27 15:15:17 +0530 | [diff] [blame] | 3 | |
4 | echo "BAR tests" | ||||
5 | echo | ||||
6 | |||||
7 | bar=0 | ||||
8 | |||||
9 | while [ $bar -lt 6 ] | ||||
10 | do | ||||
11 | pcitest -b $bar | ||||
12 | bar=`expr $bar + 1` | ||||
13 | done | ||||
14 | echo | ||||
15 | |||||
16 | echo "Interrupt tests" | ||||
17 | echo | ||||
18 | |||||
19 | pcitest -l | ||||
20 | msi=1 | ||||
21 | |||||
22 | while [ $msi -lt 33 ] | ||||
23 | do | ||||
24 | pcitest -m $msi | ||||
25 | msi=`expr $msi + 1` | ||||
26 | done | ||||
27 | echo | ||||
28 | |||||
29 | echo "Read Tests" | ||||
30 | echo | ||||
31 | |||||
32 | pcitest -r -s 1 | ||||
33 | pcitest -r -s 1024 | ||||
34 | pcitest -r -s 1025 | ||||
35 | pcitest -r -s 1024000 | ||||
36 | pcitest -r -s 1024001 | ||||
37 | echo | ||||
38 | |||||
39 | echo "Write Tests" | ||||
40 | echo | ||||
41 | |||||
42 | pcitest -w -s 1 | ||||
43 | pcitest -w -s 1024 | ||||
44 | pcitest -w -s 1025 | ||||
45 | pcitest -w -s 1024000 | ||||
46 | pcitest -w -s 1024001 | ||||
47 | echo | ||||
48 | |||||
49 | echo "Copy Tests" | ||||
50 | echo | ||||
51 | |||||
52 | pcitest -c -s 1 | ||||
53 | pcitest -c -s 1024 | ||||
54 | pcitest -c -s 1025 | ||||
55 | pcitest -c -s 1024000 | ||||
56 | pcitest -c -s 1024001 | ||||
57 | echo |