mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
tests: add some vmport tests
Message-Id: <1428012248-5767-6-git-send-email-marcandre.lureau@gmail.com>
This commit is contained in:
parent
ddfca74e54
commit
e2184ea2cf
@ -49,6 +49,7 @@
|
||||
<hyperv>
|
||||
<spinlocks state="on" retries="1234"/>
|
||||
</hyperv>
|
||||
<vmport state="off"/>
|
||||
</features>
|
||||
<cpu mode="custom" match="strict">
|
||||
<model>foobar</model>
|
||||
@ -169,6 +170,7 @@
|
||||
<hyperv>
|
||||
<spinlocks state="on" retries="1234"/>
|
||||
</hyperv>
|
||||
<vmport state="off"/>
|
||||
</features>
|
||||
<cpu mode="custom" match="strict">
|
||||
<model>foobar</model>
|
||||
|
@ -415,7 +415,7 @@ c.add_compare("""--pxe \
|
||||
--memtune hard_limit=10,soft_limit=20,swap_hard_limit=30,min_guarantee=40 \
|
||||
--blkiotune weight=100,device_path=/home/test/1.img,device_weight=200 \
|
||||
--memorybacking size=1,unit='G',nodeset='1,2-5',nosharepages=yes,locked=yes \
|
||||
--features acpi=off,eoi=on,privnet=on,hyperv_spinlocks=on,hyperv_spinlocks_retries=1234 \
|
||||
--features acpi=off,eoi=on,privnet=on,hyperv_spinlocks=on,hyperv_spinlocks_retries=1234,vmport=off \
|
||||
--clock offset=utc,hpet_present=no,rtc_tickpolicy=merge \
|
||||
--pm suspend_to_mem=yes,suspend_to_disk=no \
|
||||
--resource partition=/virtualmachines/production \
|
||||
|
@ -13,6 +13,7 @@
|
||||
<vapic state='off'/>
|
||||
<spinlocks state='on' retries='12287'/>
|
||||
</hyperv>
|
||||
<vmport state='off'/>
|
||||
</features>
|
||||
<numatune>
|
||||
<memory mode='interleave' nodeset='1-5,^3,7'/>
|
||||
|
@ -19,6 +19,7 @@
|
||||
<spinlocks state="on" retries="54321"/>
|
||||
<relaxed state="on"/>
|
||||
</hyperv>
|
||||
<vmport state="on"/>
|
||||
<viridian/>
|
||||
</features>
|
||||
<numatune>
|
||||
|
@ -168,6 +168,7 @@ class XMLParseTest(unittest.TestCase):
|
||||
check("hyperv_vapic", False, None)
|
||||
check("hyperv_spinlocks", True, True)
|
||||
check("hyperv_spinlocks_retries", 12287, 54321)
|
||||
check("vmport", False, True)
|
||||
|
||||
check = self._make_checker(guest.cpu)
|
||||
check("match", "exact", "strict")
|
||||
|
Loading…
x
Reference in New Issue
Block a user