From cec9d09169a5c8d69a77ff20599779f9d45a1aef Mon Sep 17 00:00:00 2001 From: honghua Date: Thu, 16 Apr 2026 21:46:56 +0800 Subject: [PATCH] update testcase for testsuite texlive-collection-langfrench --- .../texlive-collection-langfrench.json | 10 --- ...ve-collection-langfrench_function_basic.sh | 71 ------------------- 2 files changed, 81 deletions(-) delete mode 100644 suite2cases/function_test/pkg_test/texlive-split-e/texlive-collection-langfrench.json delete mode 100644 testcases/function_test/pkg_test/texlive-filesystem/texlive-collection-langfrench/test_texlive-collection-langfrench_function_basic.sh diff --git a/suite2cases/function_test/pkg_test/texlive-split-e/texlive-collection-langfrench.json b/suite2cases/function_test/pkg_test/texlive-split-e/texlive-collection-langfrench.json deleted file mode 100644 index 9002445d1b8..00000000000 --- a/suite2cases/function_test/pkg_test/texlive-split-e/texlive-collection-langfrench.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-e/texlive-collection-langfrench", - "machine num": 1, - "cases": [ - { - "name": "test_texlive-collection-langfrench_function_basic", - "desc": "Test basic functionality of texlive-collection-langfrench" - } - ] -} \ No newline at end of file diff --git a/testcases/function_test/pkg_test/texlive-filesystem/texlive-collection-langfrench/test_texlive-collection-langfrench_function_basic.sh b/testcases/function_test/pkg_test/texlive-filesystem/texlive-collection-langfrench/test_texlive-collection-langfrench_function_basic.sh deleted file mode 100644 index 8712f205876..00000000000 --- a/testcases/function_test/pkg_test/texlive-filesystem/texlive-collection-langfrench/test_texlive-collection-langfrench_function_basic.sh +++ /dev/null @@ -1,71 +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 basic functionality of texlive-collection-langfrench -# ############################################ - -source "$OET_PATH/libs/locallibs/common_lib.sh" - -function run_test() { - - # 检查texlive-collection-langfrench是否已安装 - if dnf list installed texlive-collection-langfrench &>/dev/null; then - LOG_INFO "texlive-collection-langfrench已安装,测试结束后将保持安装状态" - INSTALLED=true - else - LOG_INFO "texlive-collection-langfrench未安装,测试结束后将卸载" - INSTALLED=false - fi - - # 检查yum源中是否存在texlive-collection-langfrench包 - LOG_INFO "检查yum源中是否存在texlive-collection-langfrench包" - if ! dnf list available texlive-collection-langfrench &>/dev/null; then - LOG_ERROR "yum源中不存在texlive-collection-langfrench包" - exit 255 - fi - - # 安装texlive-collection-langfrench包 - if [ "$INSTALLED" = false ]; then - LOG_INFO "开始安装texlive-collection-langfrench包" - dnf install -y texlive-collection-langfrench - CHECK_RESULT $? 0 0 "安装texlive-collection-langfrench失败" - fi - - # 测试基本功能 - LOG_INFO "测试texlive-collection-langfrench的基本功能" - # 示例命令:检查texlua是否可用(假设texlua是该包提供的命令) - if ! command -v texlua &>/dev/null; then - LOG_ERROR "texlua命令不存在或不支持" - exit 255 - fi - - # 执行示例命令 - LOG_INFO "执行texlua --version命令" - texlua --version - CHECK_RESULT $? 0 0 "执行texlua --version失败" - - # 清理环境 - if [ "$INSTALLED" = false ]; then - LOG_INFO "卸载texlive-collection-langfrench包" - dnf remove -y texlive-collection-langfrench - CHECK_RESULT $? 0 0 "卸载texlive-collection-langfrench失败" - fi - - LOG_INFO "测试完成" - -} - -main "$@" \ No newline at end of file