提交 5c2c0967 编写于 作者: L lutianxiong

add new smoke testcase

上级 9be2e118
......@@ -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
#!/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 $@
#!/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 $@
#!/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.
先完成此消息的编辑!
想要评论请 注册