diff --git a/suite2cases/function_test/pkg_test/texlive-split-x/texlive-akshar.json b/suite2cases/function_test/pkg_test/texlive-split-x/texlive-akshar.json index 5a311ce19d2..09124440cf6 100644 --- a/suite2cases/function_test/pkg_test/texlive-split-x/texlive-akshar.json +++ b/suite2cases/function_test/pkg_test/texlive-split-x/texlive-akshar.json @@ -2,10 +2,6 @@ "path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-x/texlive-akshar", "machine num": 1, "cases": [ - { - "name": "test_texlive-akshar_function_install", - "desc": "Test package installation" - }, { "name": "test_texlive-akshar_function_uninstall", "desc": "Test package removal" diff --git a/testcases/function_test/pkg_test/texlive-split-x/texlive-akshar/test_texlive-akshar_function_install.sh b/testcases/function_test/pkg_test/texlive-split-x/texlive-akshar/test_texlive-akshar_function_install.sh deleted file mode 100644 index 718af081fe7..00000000000 --- a/testcases/function_test/pkg_test/texlive-split-x/texlive-akshar/test_texlive-akshar_function_install.sh +++ /dev/null @@ -1,60 +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-10-04 -# @License : Mulan PSL v2 -# @Desc : Test package installation -# ############################################ - -source "$OET_PATH/libs/locallibs/common_lib.sh" - -function run_test() { - # 检查是否已安装texlive-akshar包 - LOG_INFO "检查是否已安装texlive-akshar包" - rpm -q texlive-akshar > /dev/null 2>&1 - if [ $? -eq 0 ]; then - LOG_INFO "texlive-akshar已安装,无需重新安装" - installed=true - else - installed=false - fi - - # 检查yum源中是否存在texlive-akshar包 - LOG_INFO "检查yum源中是否存在texlive-akshar包" - dnf list available texlive-akshar > /dev/null 2>&1 - CHECK_RESULT $? 0 255 "yum源中不存在texlive-akshar包" - - # 安装texlive-akshar包 - if [ "$installed" = false ]; then - LOG_INFO "开始安装texlive-akshar包" - dnf install -y texlive-akshar > /dev/null 2>&1 - CHECK_RESULT $? 0 0 "安装texlive-akshar包失败" - fi - - # 验证texlive-akshar命令是否可用 - LOG_INFO "验证texlive-akshar命令是否可用" - texlive-akshar --version > /dev/null 2>&1 - CHECK_RESULT $? 0 255 "texlive-akshar命令不可用" - - # 清理环境:如果脚本开始时未安装,则卸载texlive-akshar包 - if [ "$installed" = false ]; then - LOG_INFO "清理环境:卸载texlive-akshar包" - dnf remove -y texlive-akshar > /dev/null 2>&1 - CHECK_RESULT $? 0 0 "卸载texlive-akshar包失败" - fi - - LOG_INFO "测试完成,环境已恢复" -} - -main "$@" \ No newline at end of file