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 | |
Gustavo Pimentel | 0653217 | 2018-07-19 10:32:21 +0200 | [diff] [blame] | 19 | pcitest -i 0 |
Kishon Vijay Abraham I | 62cb0ef | 2017-03-27 15:15:17 +0530 | [diff] [blame] | 20 | pcitest -l |
Gustavo Pimentel | 0653217 | 2018-07-19 10:32:21 +0200 | [diff] [blame] | 21 | |
| 22 | pcitest -i 1 |
Kishon Vijay Abraham I | 62cb0ef | 2017-03-27 15:15:17 +0530 | [diff] [blame] | 23 | msi=1 |
| 24 | |
| 25 | while [ $msi -lt 33 ] |
| 26 | do |
| 27 | pcitest -m $msi |
| 28 | msi=`expr $msi + 1` |
| 29 | done |
| 30 | echo |
| 31 | |
Gustavo Pimentel | 0653217 | 2018-07-19 10:32:21 +0200 | [diff] [blame] | 32 | pcitest -i 2 |
| 33 | msix=1 |
| 34 | |
| 35 | while [ $msix -lt 2049 ] |
| 36 | do |
| 37 | pcitest -x $msix |
| 38 | msix=`expr $msix + 1` |
| 39 | done |
| 40 | echo |
| 41 | |
Kishon Vijay Abraham I | 62cb0ef | 2017-03-27 15:15:17 +0530 | [diff] [blame] | 42 | echo "Read Tests" |
| 43 | echo |
| 44 | |
Gustavo Pimentel | 0653217 | 2018-07-19 10:32:21 +0200 | [diff] [blame] | 45 | pcitest -i 1 |
| 46 | |
Kishon Vijay Abraham I | 62cb0ef | 2017-03-27 15:15:17 +0530 | [diff] [blame] | 47 | pcitest -r -s 1 |
| 48 | pcitest -r -s 1024 |
| 49 | pcitest -r -s 1025 |
| 50 | pcitest -r -s 1024000 |
| 51 | pcitest -r -s 1024001 |
| 52 | echo |
| 53 | |
| 54 | echo "Write Tests" |
| 55 | echo |
| 56 | |
| 57 | pcitest -w -s 1 |
| 58 | pcitest -w -s 1024 |
| 59 | pcitest -w -s 1025 |
| 60 | pcitest -w -s 1024000 |
| 61 | pcitest -w -s 1024001 |
| 62 | echo |
| 63 | |
| 64 | echo "Copy Tests" |
| 65 | echo |
| 66 | |
| 67 | pcitest -c -s 1 |
| 68 | pcitest -c -s 1024 |
| 69 | pcitest -c -s 1025 |
| 70 | pcitest -c -s 1024000 |
| 71 | pcitest -c -s 1024001 |
| 72 | echo |