[virt-tools-list] [virt-manager PATCH 2/3] test: update test cases for virt-install command
Chen Hanxiao
chenhanxiao at cn.fujitsu.com
Wed Jan 22 09:44:39 UTC 2014
From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
tests/cli-test-xml/compare/many-devices.xml | 6 ++++++
tests/clitest.py | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/tests/cli-test-xml/compare/many-devices.xml b/tests/cli-test-xml/compare/many-devices.xml
index dd00dc7..17b6485 100644
--- a/tests/cli-test-xml/compare/many-devices.xml
+++ b/tests/cli-test-xml/compare/many-devices.xml
@@ -98,6 +98,9 @@
<device path="/dev/tpm0"/>
</backend>
</tpm>
+ <panic>
+ <address type="isa" iobase="0x505"/>
+ </panic>
</devices>
<seclabel type="static" model="testSecurity" relabel="yes">
<label>system_u:object_r:svirt_image_t:s0:c100,c200</label>
@@ -202,6 +205,9 @@
<device path="/dev/tpm0"/>
</backend>
</tpm>
+ <panic>
+ <address type="isa" iobase="0x505"/>
+ </panic>
</devices>
<seclabel type="static" model="testSecurity" relabel="yes">
<label>system_u:object_r:svirt_image_t:s0:c100,c200</label>
diff --git a/tests/clitest.py b/tests/clitest.py
index 2c45090..269d44c 100644
--- a/tests/clitest.py
+++ b/tests/clitest.py
@@ -460,6 +460,11 @@ c.add_valid("--rng egd,backend_host=127.0.0.1,backend_service=8000,backend_type=
c.add_valid("--rng egd,backend_host=127.0.0.1,backend_service=8000,backend_type=udp,backend_mode=bind,backend_connect_host=foo,backend_connect_service=708") # egd backend, udp mode bind, bind backend mode
+c = vinst.add_category("panic", "--noautoconsole --nodisks --pxe")
+c.add_valid("--panic default") # panic device with default setting
+c.add_valid("--panic io=0x506") # panic device with iobase=0x506
+c.add_valid("--panic io=507") # panic device with iobase=0x507
+
c = vinst.add_category("xen", "--connect %(XENURI)s --noautoconsole")
c.add_compare("--disk %(EXISTIMG1)s --import", "xen-default") # Xen default
c.add_compare("--disk %(EXISTIMG1)s --location %(TREEDIR)s --paravirt", "xen-pv") # Xen PV
@@ -511,6 +516,7 @@ c.add_compare("""--hvm --pxe \
--channel spicevmc \
--smartcard passthrough,type=spicevmc \
--tpm /dev/tpm0 \
+--panic default \
--security type=static,label='system_u:object_r:svirt_image_t:s0:c100,c200',relabel=yes \
--numatune \\"1-3,5\\",mode=preferred \
--boot loader=/foo/bar \
--
1.8.2.1
More information about the virt-tools-list
mailing list