update testcase for testsuite texlive-ipaex-doc

This commit is contained in:
2026-04-23 17:50:34 +08:00
parent 77279bf9ce
commit ad0b7ab5ff
2 changed files with 0 additions and 68 deletions

View File

@@ -9,10 +9,6 @@
{
"name": "test_texlive-ipaex-doc_function_uninstall",
"desc": "Test package removal"
},
{
"name": "test_texlive-ipaex-doc_function_doc_access",
"desc": "Test documentation access"
}
]
}

View File

@@ -1,64 +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-01
# @License : Mulan PSL v2
# @Desc : Test documentation access
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 检查是否已安装texlive-ipaex-doc
LOG_INFO "检查是否已安装texlive-ipaex-doc"
rpm -q texlive-ipaex-doc > /dev/null 2>&1
if [ $? -eq 0 ]; then
LOG_INFO "texlive-ipaex-doc已安装保持安装状态"
installed=true
else
LOG_INFO "texlive-ipaex-doc未安装将在测试后卸载"
installed=false
fi
# 检查yum源中是否有texlive-ipaex-doc
LOG_INFO "检查yum源中是否有texlive-ipaex-doc"
dnf list available texlive-ipaex-doc > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中未找到texlive-ipaex-doc退出"
exit 255
fi
# 安装texlive-ipaex-doc
if [ "$installed" = false ]; then
LOG_INFO "安装texlive-ipaex-doc"
dnf install -y texlive-ipaex-doc
CHECK_RESULT $? 0 0 "安装texlive-ipaex-doc失败"
fi
# 测试文档访问
LOG_INFO "测试文档访问"
ls /usr/share/texlive/texmf-dist/doc/fonts/ipaex > /dev/null 2>&1
CHECK_RESULT $? 0 0 "访问texlive-ipaex-doc文档失败"
# 清理环境
if [ "$installed" = false ]; then
LOG_INFO "卸载texlive-ipaex-doc"
dnf remove -y texlive-ipaex-doc
CHECK_RESULT $? 0 0 "卸载texlive-ipaex-doc失败"
fi
LOG_INFO "测试完成"
}
main "$@"