Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
integration-test
提交
5c2c0967
I
integration-test
项目概览
openeuler
/
integration-test
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
integration-test
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5c2c0967
编写于
8月 08, 2020
作者:
L
lutianxiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add new smoke testcase
上级
9be2e118
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
110 addition
and
0 deletion
+110
-0
suite2cases/smoke-testing
suite2cases/smoke-testing
+3
-0
testcases/smoke-testing/oe_test_hdparm/oe_test_hdparm.sh
testcases/smoke-testing/oe_test_hdparm/oe_test_hdparm.sh
+39
-0
testcases/smoke-testing/oe_test_lsscsi/oe_test_lsscsi.sh
testcases/smoke-testing/oe_test_lsscsi/oe_test_lsscsi.sh
+36
-0
testcases/smoke-testing/oe_test_ndctl/oe_test_ndctl.sh
testcases/smoke-testing/oe_test_ndctl/oe_test_ndctl.sh
+32
-0
未找到文件。
suite2cases/smoke-testing
浏览文件 @
5c2c0967
...
...
@@ -61,3 +61,6 @@ oe_test_iSula_pause_resume_001
oe_test_iSula_query_state_001
oe_test_iSula_restart_stop_001
oe_test_iSula_search_info_001
oe_test_hdparm
oe_test_lsscsi
oe_test_ndctl
testcases/smoke-testing/oe_test_hdparm/oe_test_hdparm.sh
0 → 100644
浏览文件 @
5c2c0967
#!/usr/bin/bash
# Copyright (c) 2020 Huawei Technologies Co.,Ltd.ALL rights reserved.
# This program is licensed under Mulan PSL v2.
# You can use it according to the terms and conditions of the Mulan PSL v2.
# http://license.coscl.org.cn/MulanPSL2
# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# #############################################
# @Author : lutianxiong
# @Contact : lutianxiong@huawei.com
# @Date : 2020-07-29
# @License : Mulan PSL v2
# @Desc : hdparm test
# ############################################
set
-eo
pipefail
source
"
$OET_PATH
/libs/locallibs/common_lib.sh"
function
pre_test
()
{
dnf
install
-y
hdparm util-linux
}
function
run_test
()
{
disk
=
$(
lsblk
-S
-o
NAME,TYPE |
grep
-w
disk |
head
-1
|
awk
'{print $1}'
)
if
[
-z
"
${
disk
}
"
]
;
then
LOG_INFO
"no available disk found, skip
$0
"
return
0
fi
hdparm
-a
/dev/
${
disk
}
|
grep
readahead
hdparm
-r
/dev/
${
disk
}
|
grep readonly
hdparm
-F
/dev/
${
disk
}
}
main
$@
testcases/smoke-testing/oe_test_lsscsi/oe_test_lsscsi.sh
0 → 100644
浏览文件 @
5c2c0967
#!/usr/bin/bash
# Copyright (c) 2020 Huawei Technologies Co.,Ltd.ALL rights reserved.
# This program is licensed under Mulan PSL v2.
# You can use it according to the terms and conditions of the Mulan PSL v2.
# http://license.coscl.org.cn/MulanPSL2
# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# #############################################
# @Author : lutianxiong
# @Contact : lutianxiong@huawei.com
# @Date : 2020-07-29
# @License : Mulan PSL v2
# @Desc : lsscsi test
# ############################################
set
-eo
pipefail
source
"
$OET_PATH
/libs/locallibs/common_lib.sh"
function
pre_test
()
{
dnf
install
-y
lsscsi
}
function
run_test
()
{
lsscsi 2> error.log
test
-s
error.log
&&
return
1
}
function
post_test
()
{
test
-f
error.log
&&
cat
error.log
&&
rm
-f
error.log
}
main
$@
testcases/smoke-testing/oe_test_ndctl/oe_test_ndctl.sh
0 → 100644
浏览文件 @
5c2c0967
#!/usr/bin/bash
# Copyright (c) 2020 Huawei Technologies Co.,Ltd.ALL rights reserved.
# This program is licensed under Mulan PSL v2.
# You can use it according to the terms and conditions of the Mulan PSL v2.
# http://license.coscl.org.cn/MulanPSL2
# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# #############################################
# @Author : lutianxiong
# @Contact : lutianxiong@huawei.com
# @Date : 2020-07-29
# @License : Mulan PSL v2
# @Desc : ndctl test
# ############################################
set
-eo
pipefail
source
"
$OET_PATH
/libs/locallibs/common_lib.sh"
function
pre_test
()
{
dnf
install
-y
ndctl
}
function
run_test
()
{
ndctl
--list-cmds
|
grep help
ndctl list
}
main
$@
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录