Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
afeb4cde
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,发现更多精彩内容 >>
提交
afeb4cde
编写于
5月 10, 2018
作者:
Q
qizhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
live_snapshot/hotplug_mem: replace autotest_control stress with linux_stress
Signed-off-by:
N
qizhu
<
qizhu@redhat.com
>
上级
916e3025
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
11 deletion
+12
-11
generic/tests/cfg/linux_stress.cfg
generic/tests/cfg/linux_stress.cfg
+1
-1
generic/tests/linux_stress.py
generic/tests/linux_stress.py
+9
-3
qemu/tests/cfg/hotplug_mem.cfg
qemu/tests/cfg/hotplug_mem.cfg
+1
-2
qemu/tests/cfg/live_snapshot.cfg
qemu/tests/cfg/live_snapshot.cfg
+1
-5
未找到文件。
generic/tests/cfg/linux_stress.cfg
浏览文件 @
afeb4cde
- linux_stress:
only Linux
type = linux_stress
stress_
time
= 60
stress_
duration
= 60
# Please specify below params for stress test, or use default value as shown
# download_url = http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz
generic/tests/linux_stress.py
浏览文件 @
afeb4cde
...
...
@@ -23,9 +23,15 @@ def run(test, params, env):
vm
.
verify_alive
()
stress
=
utils_test
.
VMStress
(
vm
,
'stress'
)
stress
.
load_stress_tool
()
stress_time
=
int
(
params
.
get
(
'stress_time'
))
if
stress_time
:
time
.
sleep
(
stress_time
)
stress_duration
=
int
(
params
.
get
(
'stress_duration'
,
0
))
# NOTE: stress_duration = 0 ONLY for some legacy test cases using
# autotest stress.control as their sub test.
# Please DO define stress_duration to make sure the clean action
# being performed, if your case can not be controlled by time,
# use utils_test.VMStress() directly
if
stress_duration
:
time
.
sleep
(
stress_duration
)
stress
.
unload_stress
()
stress
.
clean
()
vm
.
verify_kernel_crash
()
qemu/tests/cfg/hotplug_mem.cfg
浏览文件 @
afeb4cde
...
...
@@ -163,8 +163,7 @@
i386, i686:
install_path = "C:\Program Files\JAM Software\HeavyLoad"
Linux:
sub_type = autotest_control
test_control_file = stress.control
sub_type = linux_stress
test_timeout = 1800
variants stage:
- before:
...
...
qemu/tests/cfg/live_snapshot.cfg
浏览文件 @
afeb4cde
...
...
@@ -85,10 +85,7 @@
i386, i686:
install_path = "C:\Program Files\JAM Software\HeavyLoad"
Linux:
stress_test = autotest_control
test_control_file = stress.control
# Use a low stress to make sure guest can response during stress
control_args = "--cpu 4 --io 4 --vm 2 --vm-bytes 256M"
stress_test = linux_stress
test_timeout = 1800
check_cmd = 'pgrep stress'
stop_cmd = "killall -g stress"
...
...
@@ -128,7 +125,6 @@
create_command = "dd if=/dev/urandom of=FILE bs=128k count=100"
file_names = "/home/live_snapshot_base /home/live_snapshot_sn1"
test_exists_cmd = "test -f FILE"
control_args = "--cpu 1 --vm 1 --vm-bytes 16M"
sync_cmd = "sync"
- transaction:
type = live_snapshot_transaction
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录