aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSandro-Alessio Gierens <49617392+gierens@users.noreply.github.com>2023-08-15 12:31:23 +0200
committerGitHub <noreply@github.com>2023-08-15 11:31:23 +0100
commit852ca25f41bf7be8a6a2a8b30c0e2374c10b480e (patch)
treeba90af9e3ecb7121185a25083222e35df27ab26a /test
parent89f1e5c5f069c9161b3df25e8a34e88c62a56f9e (diff)
downloadlibvfio-user-852ca25f41bf7be8a6a2a8b30c0e2374c10b480e.zip
libvfio-user-852ca25f41bf7be8a6a2a8b30c0e2374c10b480e.tar.gz
libvfio-user-852ca25f41bf7be8a6a2a8b30c0e2374c10b480e.tar.bz2
Add another lspci test output variant (#761)
This adds the expected output to the lspci test I get on my Arch with kernel version 6.1.44-lts and pciutils version 3.10.0. Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Diffstat (limited to 'test')
-rw-r--r--test/lspci.expected.out.430
-rwxr-xr-xtest/test-lspci.sh2
2 files changed, 31 insertions, 1 deletions
diff --git a/test/lspci.expected.out.4 b/test/lspci.expected.out.4
new file mode 100644
index 0000000..6a1c973
--- /dev/null
+++ b/test/lspci.expected.out.4
@@ -0,0 +1,30 @@
+00:00.0 Non-VGA unclassified device: Device 0000:0000
+ Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
+ Region 0: I/O ports at <unassigned> [disabled]
+ Region 1: I/O ports at <unassigned> [disabled]
+ Region 2: I/O ports at <unassigned> [disabled]
+ Region 3: I/O ports at <unassigned> [disabled]
+ Region 4: I/O ports at <unassigned> [disabled]
+ Region 5: I/O ports at <unassigned> [disabled]
+ Capabilities: [40] Power Management version 0
+ Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
+ Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
+ Capabilities: [48] Vendor Specific Information: Len=10 <?>
+ Capabilities: [58] Express (v0) Endpoint, MSI 00
+ DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
+ ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset+ SlotPowerLimit 0W
+ DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
+ RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- FLReset-
+ MaxPayload 128 bytes, MaxReadReq 128 bytes
+ DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
+ LnkCap: Port #0, Speed unknown, Width x0, ASPM not supported
+ ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
+ LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk-
+ ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
+ LnkSta: Speed unknown, Width x0
+ TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
+ Capabilities: [100 v0] Device Serial Number ca-fe-ba-be-de-ad-be-ef
+ Capabilities: [10c v0] Vendor Specific Information: ID=0001 Rev=1 Len=015 <?>
+ Capabilities: [400 v0] Vendor Specific Information: ID=0002 Rev=2 Len=015 <?>
+
diff --git a/test/test-lspci.sh b/test/test-lspci.sh
index 9cf402f..4d3d89f 100755
--- a/test/test-lspci.sh
+++ b/test/test-lspci.sh
@@ -16,7 +16,7 @@ test -n "$1" && LSPCI="$1"
$LSPCI | lspci -vv -F /dev/stdin >lspci.out
-for i in 1 2 3; do
+for i in 1 2 3 4; do
if diff lspci.out $(dirname $0)/lspci.expected.out.$i >/dev/null 2>&1; then
exit 0
fi