Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
78ea6aaa
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,发现更多精彩内容 >>
提交
78ea6aaa
编写于
1月 16, 2015
作者:
F
Feng Yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qemu.tests: Update migration_with_netperf.
Signed-off-by:
N
Feng Yang
<
fyang@redhat.com
>
上级
e31d54af
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
18 deletion
+22
-18
qemu/tests/cfg/migrate.cfg
qemu/tests/cfg/migrate.cfg
+1
-0
qemu/tests/migration_with_netperf.py
qemu/tests/migration_with_netperf.py
+21
-18
未找到文件。
qemu/tests/cfg/migrate.cfg
浏览文件 @
78ea6aaa
...
...
@@ -163,6 +163,7 @@
type = migration_with_netperf
client_num = 100
netperf_timeout = 1000
hostpassword = redhat
mig_timeout = 1500
# netperf_download_link can be local file or a remote URL
# when using remote URL, pkg_md5sum must be setted. for example:
...
...
qemu/tests/migration_with_netperf.py
浏览文件 @
78ea6aaa
...
...
@@ -34,15 +34,15 @@ def run(test, params, env):
netperf_link
=
utils_misc
.
get_path
(
data_dir
.
get_deps_dir
(
"netperf"
),
params
.
get
(
"netperf_link"
))
md5sum
=
params
.
get
(
"pkg_md5sum"
)
netperf_
link_win
=
params
.
get
(
"netperf
_link_win"
)
if
netperf_
link_win
:
netperf_
link_win
=
utils_misc
.
get_path
(
data_dir
.
get_deps_dir
(
"netperf"
),
netperf_link_win
)
netperf_md5sum_win
=
params
.
get
(
"netperf_md5sum_win
"
)
netperf_
server_link
=
params
.
get
(
"netperf_server_link
"
,
netperf_link
)
server_md5sum
=
params
.
get
(
"server
_md5sum"
,
md5sum
)
netperf_
server
_link
=
utils_misc
.
get_path
(
data_dir
.
get_deps_dir
(
"netperf"
),
netperf_
server
_link
)
netperf_
server_link
=
params
.
get
(
"netperf_server
_link_win"
)
if
netperf_
server_link
:
netperf_
server_link
=
utils_misc
.
get_path
(
data_dir
.
get_deps_dir
(
"netperf"
),
netperf_server_link
)
server_md5sum_win
=
params
.
get
(
"server_md5sum
"
)
netperf_
client_link
=
params
.
get
(
"netperf_client_link_win
"
,
netperf_link
)
client_md5sum_win
=
params
.
get
(
"client
_md5sum"
,
md5sum
)
netperf_
client
_link
=
utils_misc
.
get_path
(
data_dir
.
get_deps_dir
(
"netperf"
),
netperf_
client
_link
)
server_path
=
params
.
get
(
"server_path"
,
"/var/tmp/"
)
client_path
=
params
.
get
(
"client_path"
,
"/var/tmp/"
)
server_path_win
=
params
.
get
(
"server_path_win"
)
...
...
@@ -50,7 +50,7 @@ def run(test, params, env):
username
=
params
.
get
(
"username"
,
"root"
)
password
=
params
.
get
(
"password"
,
"redhat"
)
passwd
=
params
.
get
(
"hostpasswd"
,
"redhat"
)
passwd
=
params
.
get
(
"hostpassw
or
d"
,
"redhat"
)
client
=
params
.
get
(
"shell_client"
,
"ssh"
)
port
=
params
.
get
(
"shell_port"
,
"22"
)
compile_option_client_h
=
params
.
get
(
"compile_option_client_h"
,
""
)
...
...
@@ -60,15 +60,19 @@ def run(test, params, env):
if
params
.
get
(
"os_type"
)
==
"linux"
:
session
.
cmd
(
"iptables -F"
,
ignore_all_errors
=
True
)
g_client_link
=
netperf_link
g_server_link
=
netperf_link
g_server_path
=
server_path
g_client_path
=
client_path
g_client_install
=
False
g_server_md5sum
=
md5sum
g_client_md5sum
=
md5sum
elif
params
.
get
(
"os_type"
)
==
"windows"
:
g_client_link
=
netperf_link_win
g_client_link
=
netperf_client_link
g_server_link
=
netperf_server_link
g_server_path
=
server_path_win
g_client_path
=
client_path_win
md5sum
=
netperf
_md5sum_win
g_client_
install
=
True
g_server_md5sum
=
server
_md5sum_win
g_client_
md5sum
=
client_md5sum_win
netperf_client_g
=
None
netperf_client_h
=
None
netperf_server_g
=
None
...
...
@@ -76,17 +80,16 @@ def run(test, params, env):
try
:
netperf_client_g
=
utils_netperf
.
NetperfClient
(
guest_address
,
g_client_path
,
md5sum
,
g_client_
md5sum
,
g_client_link
,
client
=
client
,
port
=
port
,
username
=
username
,
password
=
password
,
install
=
g_client_install
,
compile_option
=
compile_option_client_g
)
netperf_server_h
=
utils_netperf
.
NetperfServer
(
remote_ip
,
server_path
,
server_
md5sum
,
md5sum
,
netperf_link
,
password
=
passwd
,
install
=
False
,
...
...
@@ -97,8 +100,8 @@ def run(test, params, env):
compile_option
=
compile_option_client_h
)
netperf_server_g
=
utils_netperf
.
NetperfServer
(
guest_address
,
g_server_path
,
server_md5sum
,
netperf
_server_link
,
g_
server_md5sum
,
g
_server_link
,
client
=
client
,
port
=
port
,
username
=
username
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录