Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
0850fd58
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0850fd58
编写于
4月 28, 2014
作者:
G
Gerd Hoffmann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add display-vga test
Signed-off-by:
N
Gerd Hoffmann
<
kraxel@redhat.com
>
上级
63e3e24d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
43 addition
and
0 deletion
+43
-0
tests/Makefile
tests/Makefile
+5
-0
tests/display-vga-test.c
tests/display-vga-test.c
+38
-0
未找到文件。
tests/Makefile
浏览文件 @
0850fd58
...
...
@@ -113,6 +113,10 @@ check-qtest-pci-y += tests/tpci200-test$(EXESUF)
gcov-files-pci-y
+=
hw/ipack/tpci200.c
check-qtest-pci-y
+=
$
(
check-qtest-ipack-y
)
gcov-files-pci-y
+=
$
(
gcov-files-ipack-y
)
check-qtest-pci-y
+=
tests/display-vga-test
$(EXESUF)
gcov-files-pci-y
+=
hw/display/vga.c
gcov-files-pci-y
+=
hw/display/cirrus_vga.c
gcov-files-pci-y
+=
hw/display/vga-pci.c
check-qtest-i386-y
=
tests/endianness-test
$(EXESUF)
check-qtest-i386-y
+=
tests/fdc-test
$(EXESUF)
...
...
@@ -280,6 +284,7 @@ tests/virtio-9p-test$(EXESUF): tests/virtio-9p-test.o
tests/virtio-serial-test$(EXESUF)
:
tests/virtio-serial-test.o
tests/virtio-console-test$(EXESUF)
:
tests/virtio-console-test.o
tests/tpci200-test$(EXESUF)
:
tests/tpci200-test.o
tests/display-vga-test$(EXESUF)
:
tests/display-vga-test.o
tests/ipoctal232-test$(EXESUF)
:
tests/ipoctal232-test.o
tests/qom-test$(EXESUF)
:
tests/qom-test.o
tests/blockdev-test$(EXESUF)
:
tests/blockdev-test.o $(libqos-pc-obj-y)
...
...
tests/display-vga-test.c
0 → 100644
浏览文件 @
0850fd58
/*
* QTest testcase for vga cards
*
* Copyright (c) 2014 Red Hat, Inc
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
#include <glib.h>
#include <string.h>
#include "libqtest.h"
#include "qemu/osdep.h"
static
void
pci_cirrus
(
void
)
{
qtest_start
(
"-vga none -device cirrus-vga"
);
qtest_end
();
}
static
void
pci_stdvga
(
void
)
{
qtest_start
(
"-vga none -device VGA"
);
qtest_end
();
}
int
main
(
int
argc
,
char
**
argv
)
{
int
ret
;
g_test_init
(
&
argc
,
&
argv
,
NULL
);
qtest_add_func
(
"/display/pci/cirrus"
,
pci_cirrus
);
qtest_add_func
(
"/display/pci/stdvga"
,
pci_stdvga
);
ret
=
g_test_run
();
return
ret
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录