From e2da2fb673a726135f58ef6fe1c724b8cebce71d Mon Sep 17 00:00:00 2001 From: honghua Date: Fri, 17 Apr 2026 06:59:50 +0800 Subject: [PATCH] update testcase for testsuite texlive-cookingsymbols --- .../texlive-cookingsymbols.json | 10 --- ...xlive-cookingsymbols_function_rendering.sh | 68 ------------------- 2 files changed, 78 deletions(-) delete mode 100644 suite2cases/function_test/pkg_test/texlive-split-e/texlive-cookingsymbols.json delete mode 100644 testcases/function_test/pkg_test/texlive-split-e/texlive-cookingsymbols/test_texlive-cookingsymbols_function_rendering.sh diff --git a/suite2cases/function_test/pkg_test/texlive-split-e/texlive-cookingsymbols.json b/suite2cases/function_test/pkg_test/texlive-split-e/texlive-cookingsymbols.json deleted file mode 100644 index 5321a4af9fe..00000000000 --- a/suite2cases/function_test/pkg_test/texlive-split-e/texlive-cookingsymbols.json +++ /dev/null @@ -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" - } - ] -} \ No newline at end of file diff --git a/testcases/function_test/pkg_test/texlive-split-e/texlive-cookingsymbols/test_texlive-cookingsymbols_function_rendering.sh b/testcases/function_test/pkg_test/texlive-split-e/texlive-cookingsymbols/test_texlive-cookingsymbols_function_rendering.sh deleted file mode 100644 index 7ca0ddeb401..00000000000 --- a/testcases/function_test/pkg_test/texlive-split-e/texlive-cookingsymbols/test_texlive-cookingsymbols_function_rendering.sh +++ /dev/null @@ -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 "$@" \ No newline at end of file