[virt-tools-list] [PATCH virt-manager 5/5] tests: add some vmport tests
Marc-André Lureau
marcandre.lureau at gmail.com
Thu Apr 2 22:04:08 UTC 2015
---
tests/cli-test-xml/compare/virt-install-singleton-config-2.xml | 2 ++
tests/clitest.py | 2 +-
tests/xmlparse-xml/change-guest-in.xml | 1 +
tests/xmlparse-xml/change-guest-out.xml | 1 +
tests/xmlparse.py | 1 +
5 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/cli-test-xml/compare/virt-install-singleton-config-2.xml b/tests/cli-test-xml/compare/virt-install-singleton-config-2.xml
index 11e8381..55aedcd 100644
--- a/tests/cli-test-xml/compare/virt-install-singleton-config-2.xml
+++ b/tests/cli-test-xml/compare/virt-install-singleton-config-2.xml
@@ -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>
diff --git a/tests/clitest.py b/tests/clitest.py
index 7551112..f617de9 100644
--- a/tests/clitest.py
+++ b/tests/clitest.py
@@ -500,7 +500,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 \
diff --git a/tests/xmlparse-xml/change-guest-in.xml b/tests/xmlparse-xml/change-guest-in.xml
index 466945d..1847be6 100644
--- a/tests/xmlparse-xml/change-guest-in.xml
+++ b/tests/xmlparse-xml/change-guest-in.xml
@@ -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'/>
diff --git a/tests/xmlparse-xml/change-guest-out.xml b/tests/xmlparse-xml/change-guest-out.xml
index 6fc3038..5fcfc88 100644
--- a/tests/xmlparse-xml/change-guest-out.xml
+++ b/tests/xmlparse-xml/change-guest-out.xml
@@ -19,6 +19,7 @@
<spinlocks state="on" retries="54321"/>
<relaxed state="on"/>
</hyperv>
+ <vmport state="on"/>
<viridian/>
</features>
<numatune>
diff --git a/tests/xmlparse.py b/tests/xmlparse.py
index 393aaba..5077617 100644
--- a/tests/xmlparse.py
+++ b/tests/xmlparse.py
@@ -171,6 +171,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")
--
2.1.0
More information about the virt-tools-list
mailing list