diff --git a/suite2cases/function_test/pkg_test/texlive-split-u/texlive-rsfs-doc.json b/suite2cases/function_test/pkg_test/texlive-split-u/texlive-rsfs-doc.json index 03aa1792a8e..efc50fb9a16 100644 --- a/suite2cases/function_test/pkg_test/texlive-split-u/texlive-rsfs-doc.json +++ b/suite2cases/function_test/pkg_test/texlive-split-u/texlive-rsfs-doc.json @@ -10,10 +10,6 @@ "name": "test_texlive-rsfs-doc_function_install", "desc": "Verify that the texlive-rsfs-doc package can be successfully installed using the system package manager." }, - { - "name": "test_texlive-rsfs-doc_function_check", - "desc": "Verify that the texlive-rsfs-doc package is correctly installed and its documentation files are present in the system." - }, { "name": "test_texlive-rsfs-doc_function_usage", "desc": "Verify that the RSFS font documentation can be accessed and contains expected content about font usage." diff --git a/testcases/function_test/pkg_test/texlive-split-u/texlive-rsfs-doc/test_texlive-rsfs-doc_function_check.sh b/testcases/function_test/pkg_test/texlive-split-u/texlive-rsfs-doc/test_texlive-rsfs-doc_function_check.sh deleted file mode 100644 index 7c1ca6b35c0..00000000000 --- a/testcases/function_test/pkg_test/texlive-split-u/texlive-rsfs-doc/test_texlive-rsfs-doc_function_check.sh +++ /dev/null @@ -1,73 +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 : 2026-04-02 -# @License : Mulan PSL v2 -# @Desc : Verify that the texlive-rsfs-doc package is correctly installed and its documentation files are present in the system. -# ############################################ - -source "$OET_PATH/libs/locallibs/common_lib.sh" - -function run_test() { - LOG_INFO "开始测试:验证texlive-rsfs-doc软件包是否正确安装及其文档文件是否存在" - - LOG_INFO "步骤1:检查yum源中是否存在texlive-rsfs-doc软件包" - if ! dnf list available texlive-rsfs-doc &> /dev/null; then - LOG_ERROR "yum源中未找到texlive-rsfs-doc软件包" - exit 255 - fi - - LOG_INFO "步骤2:检查系统是否已安装texlive-rsfs-doc" - if rpm -q texlive-rsfs-doc &> /dev/null; then - LOG_INFO "texlive-rsfs-doc已安装,测试完成后将保持安装状态" - ALREADY_INSTALLED=1 - else - LOG_INFO "texlive-rsfs-doc未安装,将在测试中安装" - ALREADY_INSTALLED=0 - fi - - if [ $ALREADY_INSTALLED -eq 0 ]; then - LOG_INFO "步骤3:安装texlive-rsfs-doc软件包" - dnf install -y texlive-rsfs-doc - CHECK_RESULT $? 0 0 "安装texlive-rsfs-doc失败" - fi - - LOG_INFO "步骤4:验证texlive-rsfs-doc软件包已安装" - rpm -q texlive-rsfs-doc - CHECK_RESULT $? 0 0 "texlive-rsfs-doc软件包未正确安装" - - LOG_INFO "步骤5:检查texlive-rsfs-doc文档文件是否存在" - DOC_FILES=$(rpm -ql texlive-rsfs-doc | grep -E "\.pdf$|\.html$|\.txt$" | head -5) - if [ -z "$DOC_FILES" ]; then - LOG_ERROR "未找到texlive-rsfs-doc的文档文件" - CHECK_RESULT 1 0 0 "文档文件不存在" - else - LOG_INFO "找到以下文档文件:" - echo "$DOC_FILES" - CHECK_RESULT 0 0 0 "文档文件检查成功" - fi - - LOG_INFO "步骤6:清理测试环境" - if [ $ALREADY_INSTALLED -eq 0 ]; then - LOG_INFO "卸载测试安装的texlive-rsfs-doc软件包" - dnf remove -y texlive-rsfs-doc - CHECK_RESULT $? 0 0 "卸载texlive-rsfs-doc失败" - else - LOG_INFO "测试前已安装texlive-rsfs-doc,保持安装状态" - fi - - LOG_INFO "测试完成" -} - -main "$@" \ No newline at end of file