Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
5759c3d1
T
tp-qemu
项目概览
openeuler
/
tp-qemu
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tp-qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5759c3d1
编写于
3月 27, 2015
作者:
Y
Yiqiao Pu
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #270 from FengYang/virtio_serial
Add virtio serial file transfer basic test.
上级
263a43d5
1c5ad328
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
44 addition
and
0 deletion
+44
-0
qemu/tests/cfg/virtio_serial_file_transfer.cfg
qemu/tests/cfg/virtio_serial_file_transfer.cfg
+18
-0
qemu/tests/virtio_serial_file_transfer.py
qemu/tests/virtio_serial_file_transfer.py
+26
-0
未找到文件。
qemu/tests/cfg/virtio_serial_file_transfer.cfg
0 → 100644
浏览文件 @
5759c3d1
- virtio_serial_file_transfer:
type = virtio_serial_file_transfer
guest_scripts = VirtIoChannel_guest_send_receive.py;windows_support.py
guest_script_folder = /var/tmp/
file_transfer_serial_port = vc1
virtio_ports = vc1 vc2
virtio_port_type = serialport
file_sender = both
md5_check = yes
transfer_timeout = 720
clean_cmd = rm -f
filesize = 10
host_script = serial_host_send_receive.py
guest_script = VirtIoChannel_guest_send_receive.py
repeat_times = 1
Windows:
guest_script_folder = C:\
clean_cmd = del /f /q
qemu/tests/virtio_serial_file_transfer.py
0 → 100644
浏览文件 @
5759c3d1
from
virttest
import
utils_test
def
run
(
test
,
params
,
env
):
"""
Test virtio serial guest file transfer.
Steps:
1) Boot up a VM with virtio serial device.
2) Create a large file in guest or host.
3) Copy this file between guest and host through virtio serial.
4) Check if file transfers ended good by md5 (optional).
:param test: QEMU test object.
:param params: Dictionary with the test parameters.
:param env: Dictionary with test environment.
"""
port_name
=
params
.
get
(
"file_transfer_serial_port"
)
file_sender
=
params
.
get
(
"file_sender"
,
"guest"
)
md5_check
=
params
.
get
(
"md5_check"
,
"yes"
)
==
"yes"
utils_test
.
run_virtio_serial_file_transfer
(
test
,
params
,
env
,
port_name
=
port_name
,
sender
=
file_sender
,
md5_check
=
md5_check
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录