Skip to content

Commit dbb6f33

Browse files
committed
tests: clitest: Cover all --vsock options and aliases
1 parent 084122d commit dbb6f33

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

tests/cli-test-xml/compare/virt-install-singleton-config-3.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,8 @@
7272
<panic model="isa">
7373
<address type="isa" iobase="0x500" irq="5"/>
7474
</panic>
75+
<vsock model="virtio">
76+
<cid auto="yes"/>
77+
</vsock>
7578
</devices>
7679
</domain>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<driver intremap="off" iotlb="on"/>
2+
</iommu>
3+
<vsock model="virtio">
4+
- <cid auto="no" address="5"/>
5+
+ <cid auto="yes"/>
6+
</vsock>
7+
</devices>
8+
<seclabel type="dynamic" model="selinux" relabel="yes"/>
9+
10+
Domain 'test-for-virtxml' defined successfully.
11+
Changes will take effect after the domain is fully powered off.

tests/clitest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ def add_compare(self, cat, args, compfile, **kwargs):
490490
--rng egd,backend.type=nmdm,backend.source.master=/dev/foo1,backend.source.slave=/dev/foo2
491491
--panic default,,address.type=isa,address.iobase=0x500,address.irq=5
492492
--cpu topology.sockets=1,topology.cores=3,topology.threads=2
493+
--vsock auto_cid=on
493494
""", "singleton-config-3")
494495

495496

@@ -1003,6 +1004,7 @@ def add_compare(self, cat, args, compfile, **kwargs):
10031004
c.add_compare("--smartcard type=spicevmc", "edit-simple-smartcard")
10041005
c.add_compare("--redirdev type=spicevmc,server=example.com:12345", "edit-simple-redirdev")
10051006
c.add_compare("--tpm backend.device.path=,backend.type=emulator,backend.version=2.0", "edit-simple-tpm", check_version="1.3.5") # check_version=new graphics listen output
1007+
c.add_compare("--vsock model=virtio,cid.address=,cid.auto=on", "edit-simple-vsock")
10061008
c.add_compare("--rng rate_bytes=3333,rate_period=4444", "edit-simple-rng")
10071009
c.add_compare("--watchdog action=reset", "edit-simple-watchdog")
10081010
c.add_compare("--memballoon model=none", "edit-simple-memballoon")

0 commit comments

Comments
 (0)