delete no exist in testsuite testcase

This commit is contained in:
2025-11-10 10:11:32 +08:00
parent 5aa0f7ad29
commit dea4227aa6
2 changed files with 0 additions and 79 deletions

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/at/at",
"machine num": 1,
"cases": [
{
"name": "test_at_function_basic",
"desc": "Test basic functionality of at package"
}
]
}

View File

@@ -1,69 +0,0 @@
#!/usr/bin/bash
# Copyright (c) 2024 ISCAS .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 : honghua
# @Contact : honghua@iscas.ac.cn
# @Date : 2025-11-10
# @License : Mulan PSL v2
# @Desc : Test basic functionality of at package
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试at包的基本功能"
# 检查是否已安装at包
if ! dnf list installed at &>/dev/null; then
LOG_INFO "环境未安装at包将进行安装测试"
INSTALLED=0
else
LOG_INFO "环境已安装at包将保持安装状态"
INSTALLED=1
fi
# 检查yum源中是否有at包
LOG_INFO "检查yum源中是否存在at包"
if ! dnf list available at &>/dev/null; then
LOG_ERROR "yum源中未找到at包"
exit 255
fi
# 安装at包如果未安装
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "安装at包"
dnf install -y at
CHECK_RESULT $? 0 0 "安装at包失败"
fi
# 测试at命令基本功能
LOG_INFO "测试at命令基本功能"
echo "ls" | at now +1 minute
CHECK_RESULT $? 0 0 "at命令执行失败"
# 检查atd服务状态
LOG_INFO "检查atd服务状态"
systemctl status atd | grep "active (running)"
CHECK_RESULT $? 0 0 "atd服务未运行"
# 清理环境(如果之前未安装)
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "卸载at包"
dnf remove -y at
CHECK_RESULT $? 0 0 "卸载at包失败"
fi
LOG_INFO "测试at包的基本功能完成"
}
main "$@"