Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
383c6f7f
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
383c6f7f
编写于
4月 29, 2016
作者:
B
Boris Fiuczynski
提交者:
Andrea Bolognani
5月 02, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: add tests for panic device model s390
Signed-off-by:
N
Boris Fiuczynski
<
fiuczy@linux.vnet.ibm.com
>
上级
73e4e10e
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
244 addition
and
1 deletion
+244
-1
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-address.xml
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-address.xml
+26
-0
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-missing.args
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-missing.args
+25
-0
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-missing.xml
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-missing.xml
+23
-0
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-no-address.args
.../qemuxml2argvdata/qemuxml2argv-s390-panic-no-address.args
+25
-0
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-no-address.xml
...s/qemuxml2argvdata/qemuxml2argv-s390-panic-no-address.xml
+22
-0
tests/qemuxml2argvdata/qemuxml2argv-s390-panic.xml
tests/qemuxml2argvdata/qemuxml2argv-s390-panic.xml
+22
-0
tests/qemuxml2argvtest.c
tests/qemuxml2argvtest.c
+10
-1
tests/qemuxml2xmloutdata/qemuxml2xmlout-s390-panic-missing.xml
.../qemuxml2xmloutdata/qemuxml2xmlout-s390-panic-missing.xml
+29
-0
tests/qemuxml2xmloutdata/qemuxml2xmlout-s390-panic-no-address.xml
...muxml2xmloutdata/qemuxml2xmlout-s390-panic-no-address.xml
+28
-0
tests/qemuxml2xmloutdata/qemuxml2xmlout-s390-panic.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-s390-panic.xml
+28
-0
tests/qemuxml2xmltest.c
tests/qemuxml2xmltest.c
+6
-0
未找到文件。
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-address.xml
0 → 100644
浏览文件 @
383c6f7f
<domain
type=
'qemu'
>
<name>
QEMUGuest1
</name>
<uuid>
9aa4b45c-b9dd-45ef-91fe-862b27b4231f
</uuid>
<memory>
262144
</memory>
<currentMemory>
262144
</currentMemory>
<os>
<type
arch=
's390x'
machine=
's390-ccw-virtio'
>
hvm
</type>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu-system-s390x
</emulator>
<controller
type=
'virtio-serial'
index=
'0'
>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0000'
/>
</controller>
<console
type=
'pty'
>
<target
type=
'virtio'
/>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0001'
/>
</console>
<panic
model=
's390'
>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0005'
/>
</panic>
</devices>
</domain>
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-missing.args
0 → 100644
浏览文件 @
383c6f7f
LC_ALL=C \
PATH=/bin \
HOME=/home/test \
USER=test \
LOGNAME=test \
QEMU_AUDIO_DRV=none \
/usr/bin/qemu-system-s390x \
-name QEMUGuest1 \
-S \
-M s390-ccw-virtio \
-m 256 \
-smp 1 \
-uuid 9aa4b45c-b9dd-45ef-91fe-862b27b4231f \
-nographic \
-nodefconfig \
-nodefaults \
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
server,nowait \
-mon chardev=charmonitor,id=monitor,mode=readline \
-no-acpi \
-boot c \
-device virtio-serial-ccw,id=virtio-serial0,devno=fe.0.0000 \
-chardev pty,id=charconsole0 \
-device virtconsole,chardev=charconsole0,id=console0 \
-device virtio-balloon-ccw,id=balloon0,devno=fe.0.0002
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-missing.xml
0 → 100644
浏览文件 @
383c6f7f
<domain
type=
'qemu'
>
<name>
QEMUGuest1
</name>
<uuid>
9aa4b45c-b9dd-45ef-91fe-862b27b4231f
</uuid>
<memory>
262144
</memory>
<currentMemory>
262144
</currentMemory>
<os>
<type
arch=
's390x'
machine=
's390-ccw-virtio'
>
hvm
</type>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu-system-s390x
</emulator>
<controller
type=
'virtio-serial'
index=
'0'
>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0000'
/>
</controller>
<console
type=
'pty'
>
<target
type=
'virtio'
/>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0001'
/>
</console>
</devices>
</domain>
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-no-address.args
0 → 100644
浏览文件 @
383c6f7f
LC_ALL=C \
PATH=/bin \
HOME=/home/test \
USER=test \
LOGNAME=test \
QEMU_AUDIO_DRV=none \
/usr/bin/qemu-system-s390x \
-name QEMUGuest1 \
-S \
-M s390-ccw-virtio \
-m 256 \
-smp 1 \
-uuid 9aa4b45c-b9dd-45ef-91fe-862b27b4231f \
-nographic \
-nodefconfig \
-nodefaults \
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
server,nowait \
-mon chardev=charmonitor,id=monitor,mode=readline \
-no-acpi \
-boot c \
-device virtio-serial-ccw,id=virtio-serial0,devno=fe.0.0000 \
-chardev pty,id=charconsole0 \
-device virtconsole,chardev=charconsole0,id=console0 \
-device virtio-balloon-ccw,id=balloon0,devno=fe.0.0001
tests/qemuxml2argvdata/qemuxml2argv-s390-panic-no-address.xml
0 → 100644
浏览文件 @
383c6f7f
<domain
type=
'qemu'
>
<name>
QEMUGuest1
</name>
<uuid>
9aa4b45c-b9dd-45ef-91fe-862b27b4231f
</uuid>
<memory>
262144
</memory>
<currentMemory>
262144
</currentMemory>
<os>
<type
arch=
's390x'
machine=
's390-ccw-virtio'
>
hvm
</type>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu-system-s390x
</emulator>
<controller
type=
'virtio-serial'
index=
'0'
>
</controller>
<console
type=
'pty'
>
<target
type=
'virtio'
/>
</console>
<panic/>
</devices>
</domain>
tests/qemuxml2argvdata/qemuxml2argv-s390-panic.xml
0 → 100644
浏览文件 @
383c6f7f
<domain
type=
'kvm'
>
<name>
test
</name>
<uuid>
9aa4b45c-b9dd-45ef-91fe-862b27b4231f
</uuid>
<memory>
262144
</memory>
<currentMemory>
262144
</currentMemory>
<os>
<type
arch=
's390x'
machine=
's390-ccw-virtio'
>
hvm
</type>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu-kvm
</emulator>
<controller
type=
'virtio-serial'
index=
'0'
>
</controller>
<console
type=
'pty'
>
<target
type=
'virtio'
/>
</console>
<panic/>
</devices>
</domain>
tests/qemuxml2argvtest.c
浏览文件 @
383c6f7f
...
...
@@ -1461,12 +1461,21 @@ mymain(void)
QEMU_CAPS_CHARDEV
,
QEMU_CAPS_NODEFCONFIG
,
QEMU_CAPS_BOOTINDEX
,
QEMU_CAPS_VIRTIO_S390
,
QEMU_CAPS_DEVICE_VIRTIO_RNG
,
QEMU_CAPS_OBJECT_RNG_RANDOM
);
DO_TEST
(
"s390-allow-bogus-usb-controller"
,
QEMU_CAPS_CHARDEV
,
QEMU_CAPS_NODEFCONFIG
,
QEMU_CAPS_BOOTINDEX
,
QEMU_CAPS_VIRTIO_S390
,
QEMU_CAPS_DEVICE_VIRTIO_RNG
,
QEMU_CAPS_OBJECT_RNG_RANDOM
);
DO_TEST
(
"s390-panic-no-address"
,
QEMU_CAPS_CHARDEV
,
QEMU_CAPS_NODEFCONFIG
,
QEMU_CAPS_VIRTIO_CCW
,
QEMU_CAPS_VIRTIO_S390
);
DO_TEST_FAILURE
(
"s390-panic-address"
,
QEMU_CAPS_CHARDEV
,
QEMU_CAPS_NODEFCONFIG
,
QEMU_CAPS_VIRTIO_CCW
,
QEMU_CAPS_VIRTIO_S390
);
DO_TEST
(
"s390-panic-missing"
,
QEMU_CAPS_CHARDEV
,
QEMU_CAPS_NODEFCONFIG
,
QEMU_CAPS_VIRTIO_CCW
,
QEMU_CAPS_VIRTIO_S390
);
DO_TEST
(
"ppc-dtb"
,
QEMU_CAPS_KVM
,
QEMU_CAPS_DTB
);
DO_TEST
(
"ppce500-serial"
,
QEMU_CAPS_KVM
,
QEMU_CAPS_CHARDEV
);
...
...
tests/qemuxml2xmloutdata/qemuxml2xmlout-s390-panic-missing.xml
0 → 100644
浏览文件 @
383c6f7f
<domain
type=
'qemu'
>
<name>
QEMUGuest1
</name>
<uuid>
9aa4b45c-b9dd-45ef-91fe-862b27b4231f
</uuid>
<memory
unit=
'KiB'
>
262144
</memory>
<currentMemory
unit=
'KiB'
>
262144
</currentMemory>
<vcpu
placement=
'static'
>
1
</vcpu>
<os>
<type
arch=
's390x'
machine=
's390-ccw-virtio'
>
hvm
</type>
<boot
dev=
'hd'
/>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu-system-s390x
</emulator>
<controller
type=
'virtio-serial'
index=
'0'
>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0000'
/>
</controller>
<console
type=
'pty'
>
<target
type=
'virtio'
port=
'0'
/>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0001'
/>
</console>
<memballoon
model=
'virtio'
>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0002'
/>
</memballoon>
<panic
model=
's390'
/>
</devices>
</domain>
tests/qemuxml2xmloutdata/qemuxml2xmlout-s390-panic-no-address.xml
0 → 100644
浏览文件 @
383c6f7f
<domain
type=
'qemu'
>
<name>
QEMUGuest1
</name>
<uuid>
9aa4b45c-b9dd-45ef-91fe-862b27b4231f
</uuid>
<memory
unit=
'KiB'
>
262144
</memory>
<currentMemory
unit=
'KiB'
>
262144
</currentMemory>
<vcpu
placement=
'static'
>
1
</vcpu>
<os>
<type
arch=
's390x'
machine=
's390-ccw-virtio'
>
hvm
</type>
<boot
dev=
'hd'
/>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu-system-s390x
</emulator>
<controller
type=
'virtio-serial'
index=
'0'
>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0000'
/>
</controller>
<console
type=
'pty'
>
<target
type=
'virtio'
port=
'0'
/>
</console>
<memballoon
model=
'virtio'
>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0001'
/>
</memballoon>
<panic
model=
's390'
/>
</devices>
</domain>
tests/qemuxml2xmloutdata/qemuxml2xmlout-s390-panic.xml
0 → 100644
浏览文件 @
383c6f7f
<domain
type=
'kvm'
>
<name>
test
</name>
<uuid>
9aa4b45c-b9dd-45ef-91fe-862b27b4231f
</uuid>
<memory
unit=
'KiB'
>
262144
</memory>
<currentMemory
unit=
'KiB'
>
262144
</currentMemory>
<vcpu
placement=
'static'
>
1
</vcpu>
<os>
<type
arch=
's390x'
machine=
's390-ccw-virtio'
>
hvm
</type>
<boot
dev=
'hd'
/>
</os>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/qemu-kvm
</emulator>
<controller
type=
'virtio-serial'
index=
'0'
>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0000'
/>
</controller>
<console
type=
'pty'
>
<target
type=
'virtio'
port=
'0'
/>
</console>
<memballoon
model=
'virtio'
>
<address
type=
'ccw'
cssid=
'0xfe'
ssid=
'0x0'
devno=
'0x0001'
/>
</memballoon>
<panic
model=
's390'
/>
</devices>
</domain>
tests/qemuxml2xmltest.c
浏览文件 @
383c6f7f
...
...
@@ -699,6 +699,12 @@ mymain(void)
DO_TEST_FULL
(
"s390-defaultconsole"
,
WHEN_ACTIVE
,
QEMU_CAPS_VIRTIO_CCW
,
QEMU_CAPS_VIRTIO_S390
);
DO_TEST_FULL
(
"s390-panic"
,
WHEN_BOTH
,
QEMU_CAPS_VIRTIO_CCW
,
QEMU_CAPS_VIRTIO_S390
);
DO_TEST_FULL
(
"s390-panic-missing"
,
WHEN_BOTH
,
QEMU_CAPS_VIRTIO_CCW
,
QEMU_CAPS_VIRTIO_S390
);
DO_TEST_FULL
(
"s390-panic-no-address"
,
WHEN_BOTH
,
QEMU_CAPS_VIRTIO_CCW
,
QEMU_CAPS_VIRTIO_S390
);
DO_TEST
(
"pcihole64"
);
DO_TEST
(
"pcihole64-gib"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录