Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
10f3f1c0
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,发现更多精彩内容 >>
提交
10f3f1c0
编写于
9月 07, 2017
作者:
L
Lucas Meneghel Rodrigues
提交者:
GitHub
9月 07, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1036 from sathnaga/run_avocado
Added support to run avocado tests inside guest
上级
77b80111
1b5cc3ce
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
45 addition
and
0 deletion
+45
-0
generic/tests/avocado_guest.py
generic/tests/avocado_guest.py
+32
-0
generic/tests/cfg/avocado_guest.cfg
generic/tests/cfg/avocado_guest.cfg
+13
-0
未找到文件。
generic/tests/avocado_guest.py
0 → 100644
浏览文件 @
10f3f1c0
from
virttest
import
utils_test
def
run
(
test
,
params
,
env
):
"""
Run an avocado test inside a guest.
:param test: QEMU test object.
:param params: Dictionary with test parameters.
:param env: Dictionary with the test environment.
"""
vm
=
env
.
get_vm
(
params
[
"main_vm"
])
vm
.
verify_alive
()
timeout
=
int
(
params
.
get
(
"test_timeout"
,
3600
))
testlist
=
[]
avocadoinstalltype
=
params
.
get
(
"avocadoinstalltype"
,
"pip"
)
avocadotestrepo
=
params
.
get
(
"avocadotestrepo"
,
"https://github.com/avocado-framework-tests/avocado-misc-tests.git"
)
avocadotest
=
params
.
get
(
"avocadotest"
,
"cpu/ebizzy.py"
)
avocadomux
=
params
.
get
(
"avocadomux"
,
""
)
avocadotestargs
=
params
.
get
(
"avocadotestargs"
,
""
)
for
index
,
item
in
enumerate
(
avocadotest
.
split
(
','
)):
try
:
mux
=
''
mux
=
avocadomux
.
split
(
','
)[
index
]
except
IndexError
:
pass
testlist
.
append
((
item
,
mux
))
utils_test
.
run_avocado
(
vm
,
params
,
test
,
testlist
,
timeout
=
timeout
,
testrepo
=
avocadotestrepo
,
installtype
=
avocadoinstalltype
,
reinstall
=
False
,
add_args
=
avocadotestargs
,
ignore_result
=
False
)
generic/tests/cfg/avocado_guest.cfg
0 → 100644
浏览文件 @
10f3f1c0
- avocado_guest: install setup image_copy unattended_install.cdrom
no JeOS
virt_test_type = qemu libvirt
only Linux
type = avocado_guest
test_timeout = 1800
variants:
- ebizzy:
avocadotest = "cpu/ebizzy.py"
avocadomux = ""
- ebizzy_stress:
avocadotest = "cpu/ebizzy.py,perf/stress.py"
avocadomux = ","
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录