Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
6e8114a0
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6e8114a0
编写于
2月 21, 2014
作者:
A
Andreas Färber
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: Add virtio-console qtest
Signed-off-by:
N
Andreas Färber
<
afaerber@suse.de
>
上级
aa97405e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
40 addition
and
0 deletion
+40
-0
tests/Makefile
tests/Makefile
+6
-0
tests/virtio-console-test.c
tests/virtio-console-test.c
+34
-0
未找到文件。
tests/Makefile
浏览文件 @
6e8114a0
...
...
@@ -69,6 +69,9 @@ gcov-files-ipack-y += hw/ipack/ipack.c
check-qtest-ipack-y
+=
tests/ipoctal232-test
$(EXESUF)
gcov-files-ipack-y
+=
hw/char/ipoctal232.c
check-qtest-virtioserial-y
+=
tests/virtio-console-test
$(EXESUF)
gcov-files-virtioserial-y
+=
hw/char/virtio-console.c
gcov-files-virtio-y
+=
i386-softmmu/hw/virtio/virtio.c
check-qtest-virtio-y
+=
tests/virtio-net-test
$(EXESUF)
gcov-files-virtio-y
+=
i386-softmmu/hw/net/virtio-net.c
...
...
@@ -82,6 +85,8 @@ check-qtest-virtio-y += tests/virtio-scsi-test$(EXESUF)
gcov-files-virtio-y
+=
i386-softmmu/hw/scsi/virtio-scsi.c
check-qtest-virtio-y
+=
tests/virtio-serial-test
$(EXESUF)
gcov-files-virtio-y
+=
i386-softmmu/hw/char/virtio-serial-bus.c
check-qtest-virtio-y
+=
$
(
check-qtest-virtioserial-y
)
gcov-files-virtio-y
+=
$
(
gcov-files-virtioserial-y
)
check-qtest-pci-y
+=
tests/e1000-test
$(EXESUF)
gcov-files-pci-y
+=
hw/net/e1000.c
...
...
@@ -255,6 +260,7 @@ tests/virtio-net-test$(EXESUF): tests/virtio-net-test.o
tests/virtio-rng-test$(EXESUF)
:
tests/virtio-rng-test.o
tests/virtio-scsi-test$(EXESUF)
:
tests/virtio-scsi-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/ipoctal232-test$(EXESUF)
:
tests/ipoctal232-test.o
tests/qom-test$(EXESUF)
:
tests/qom-test.o
...
...
tests/virtio-console-test.c
0 → 100644
浏览文件 @
6e8114a0
/*
* QTest testcase for VirtIO Console
*
* Copyright (c) 2014 SUSE LINUX Products GmbH
*
* 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"
/* Tests only initialization so far. TODO: Replace with functional tests */
static
void
pci_nop
(
void
)
{
}
int
main
(
int
argc
,
char
**
argv
)
{
int
ret
;
g_test_init
(
&
argc
,
&
argv
,
NULL
);
qtest_add_func
(
"/virtio/console/pci/nop"
,
pci_nop
);
qtest_start
(
"-device virtio-serial-pci,id=vser0 "
"-device virtconsole,bus=vser0.0"
);
ret
=
g_test_run
();
qtest_end
();
return
ret
;
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录