Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
821f623f
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,发现更多精彩内容 >>
提交
821f623f
编写于
3月 26, 2014
作者:
Amos_沧海桑田
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #35 from kongove/for-lmr
netperf: collect host/guest sysinfo by custom-built scripts
上级
9904c894
0b62f7ec
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
0 deletion
+25
-0
generic/tests/cfg/netperf.cfg
generic/tests/cfg/netperf.cfg
+9
-0
generic/tests/netperf.py
generic/tests/netperf.py
+16
-0
未找到文件。
generic/tests/cfg/netperf.cfg
浏览文件 @
821f623f
...
...
@@ -55,6 +55,15 @@
netperf_download_link = ftp://ftp.netperf.org/netperf/netperf-2.6.0.tar.bz2
pkg_md5sum = 9654ffdfd4c4f2c93ce3733cd9ed9236
setup_cmd = "cd /tmp && rm -rf netperf-2.6.0 && tar xvfj netperf-2.6.0.tar.bz2 && cd netperf-2.6.0 && ./configure --enable-burst --enable-demo=yes && make"
log_hostinfo_script = scripts/rh_perf_log_hostinfo_script.sh
#Linux:
# log_guestinfo_script = scripts/rh_perf_log_guestinfo_script.sh
# log_guestinfo_exec = bash
# log_guestinfo_path = /tmp/log_guestinfo.sh
#Windows:
# log_guestinfo_script = scripts/rh_perf_log_guestinfo_script.bat
# log_guestinfo_exec = cmd /c
# log_guestinfo_path = C:\log_guestinfo.bat
variants:
- guest_guest:
no Jeos
...
...
generic/tests/netperf.py
浏览文件 @
821f623f
...
...
@@ -226,6 +226,22 @@ def run(test, params, env):
netserver_port
=
params
.
get
(
'netserver_port'
,
"12865"
),
params
=
params
,
server_cyg
=
server_cyg
,
test
=
test
)
if
params
.
get
(
"log_hostinfo_script"
):
src
=
os
.
path
.
join
(
test
.
virtdir
,
params
.
get
(
"log_hostinfo_script"
))
path
=
os
.
path
.
join
(
test
.
resultsdir
,
"sysinfo"
)
utils
.
system_output
(
"bash %s %s &> %s"
%
(
src
,
test
.
resultsdir
,
path
))
if
params
.
get
(
"log_guestinfo_script"
)
and
params
.
get
(
"log_guestinfo_exec"
):
src
=
os
.
path
.
join
(
test
.
virtdir
,
params
.
get
(
"log_guestinfo_script"
))
path
=
os
.
path
.
join
(
test
.
resultsdir
,
"sysinfo"
)
destpath
=
params
.
get
(
"log_guestinfo_path"
,
"/tmp/log_guestinfo.sh"
)
vm
.
copy_files_to
(
src
,
destpath
)
logexec
=
params
.
get
(
"log_guestinfo_exec"
,
"bash"
)
output
=
server_ctl
.
cmd_output
(
"%s %s"
%
(
logexec
,
destpath
))
logfile
=
open
(
path
,
"a+"
)
logfile
.
write
(
output
)
logfile
.
close
()
@
error
.
context_aware
def
start_test
(
server
,
server_ctl
,
host
,
clients
,
resultsdir
,
l
=
60
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录