update testcase for testsuite texlive-cookingsymbols

This commit is contained in:
2026-04-17 06:59:50 +08:00
parent 82e1c64f97
commit e2da2fb673
2 changed files with 0 additions and 78 deletions

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-e/texlive-cookingsymbols",
"machine num": 1,
"cases": [
{
"name": "test_texlive-cookingsymbols_function_rendering",
"desc": "Test rendering of cooking symbols"
}
]
}

View File

@@ -1,68 +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-27
# @License : Mulan PSL v2
# @Desc : Test rendering of cooking symbols
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 测试脚本test_texlive-cookingsymbols_function_rendering
LOG_INFO "开始测试Test rendering of cooking symbols"
# 检查是否已安装 texlive-cookingsymbols
LOG_INFO "检查 texlive-cookingsymbols 是否已安装"
dnf list installed texlive-cookingsymbols > /dev/null 2>&1
if [ $? -eq 0 ]; then
LOG_INFO "texlive-cookingsymbols 已安装,测试结束后保持安装状态"
INSTALLED=1
else
LOG_INFO "texlive-cookingsymbols 未安装,将在测试结束后卸载"
INSTALLED=0
fi
# 检查 yum 源中是否有 texlive-cookingsymbols
LOG_INFO "检查 yum 源中是否有 texlive-cookingsymbols"
dnf list available texlive-cookingsymbols > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum 源中未找到 texlive-cookingsymbols"
exit 255
fi
# 安装 texlive-cookingsymbols如果未安装
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "正在安装 texlive-cookingsymbols"
dnf install -y texlive-cookingsymbols > /dev/null 2>&1
CHECK_RESULT $? 0 0 "安装 texlive-cookingsymbols 失败"
fi
# 测试渲染 cooking symbols
LOG_INFO "测试渲染 cooking symbols"
texlua cookingsymbols-test.lua > /dev/null 2>&1
CHECK_RESULT $? 0 0 "渲染 cooking symbols 失败"
# 清理环境(如果之前未安装)
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "卸载 texlive-cookingsymbols"
dnf remove -y texlive-cookingsymbols > /dev/null 2>&1
CHECK_RESULT $? 0 0 "卸载 texlive-cookingsymbols"失败"
fi
LOG_INFO "测试完成Test rendering of cooking symbols"
}
main "$@"