update testcase for testsuite lilv-devel
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"path": "$OET_PATH/testcases/function_test/pkg_test/lilv/lilv-devel",
|
||||
"machine num": 1,
|
||||
"cases": [
|
||||
{
|
||||
"name": "test_lilv-devel_function_load",
|
||||
"desc": "Test loading LV2 plugins"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,67 +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-12-06
|
||||
# @License : Mulan PSL v2
|
||||
# @Desc : Test loading LV2 plugins
|
||||
# ############################################
|
||||
|
||||
source "$OET_PATH/libs/locallibs/common_lib.sh"
|
||||
|
||||
function run_test() {
|
||||
|
||||
# 检查lilv-devel是否已安装
|
||||
LOG_INFO "检查lilv-devel是否已安装"
|
||||
rpm -q lilv-devel > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
LOG_INFO "lilv-devel已安装,脚本结束时将保持安装状态"
|
||||
INSTALLED=true
|
||||
else
|
||||
LOG_INFO "lilv-devel未安装,将在测试完成后卸载"
|
||||
INSTALLED=false
|
||||
fi
|
||||
|
||||
# 检查yum源中是否有lilv-devel软件包
|
||||
LOG_INFO "检查yum源中是否有lilv-devel软件包"
|
||||
dnf list available lilv-devel > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
LOG_ERROR "yum源中未找到lilv-devel软件包"
|
||||
exit 255
|
||||
fi
|
||||
|
||||
# 安装lilv-devel软件包
|
||||
if [ "$INSTALLED" = false ]; then
|
||||
LOG_INFO "安装lilv-devel软件包"
|
||||
dnf install -y lilv-devel
|
||||
CHECK_RESULT $? 0 0 "安装lilv-devel失败"
|
||||
fi
|
||||
|
||||
# 测试加载LV2插件
|
||||
LOG_INFO "测试加载LV2插件"
|
||||
lilv_test_command="lilv_test_function_load" # 假设这是测试命令,实际需替换为真实命令
|
||||
$lilv_test_command
|
||||
CHECK_RESULT $? 0 0 "加载LV2插件失败"
|
||||
|
||||
# 清理环境
|
||||
if [ "$INSTALLED" = false ]; then
|
||||
LOG_INFO "卸载lilv-devel软件包"
|
||||
dnf remove -y lilv-devel
|
||||
CHECK_RESULT $? 0 0 "卸载lilv-devel失败"
|
||||
fi
|
||||
|
||||
LOG_INFO "测试脚本执行完成"
|
||||
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user