xref: /openbmc/linux/tools/pci/pcitest.sh (revision d2ba09c1)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3
4echo "BAR tests"
5echo
6
7bar=0
8
9while [ $bar -lt 6 ]
10do
11	pcitest -b $bar
12	bar=`expr $bar + 1`
13done
14echo
15
16echo "Interrupt tests"
17echo
18
19pcitest -l
20msi=1
21
22while [ $msi -lt 33 ]
23do
24        pcitest -m $msi
25        msi=`expr $msi + 1`
26done
27echo
28
29echo "Read Tests"
30echo
31
32pcitest -r -s 1
33pcitest -r -s 1024
34pcitest -r -s 1025
35pcitest -r -s 1024000
36pcitest -r -s 1024001
37echo
38
39echo "Write Tests"
40echo
41
42pcitest -w -s 1
43pcitest -w -s 1024
44pcitest -w -s 1025
45pcitest -w -s 1024000
46pcitest -w -s 1024001
47echo
48
49echo "Copy Tests"
50echo
51
52pcitest -c -s 1
53pcitest -c -s 1024
54pcitest -c -s 1025
55pcitest -c -s 1024000
56pcitest -c -s 1024001
57echo
58