This commit is contained in:
2026-04-21 06:37:35 +08:00
518 changed files with 0 additions and 38765 deletions

View File

@@ -2,361 +2,27 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/abrt/abrt-addon-xorg",
"machine num": 1,
"cases": [
{
"name": "test_abrt-addon-xorg_install",
"desc": "测试abrt-addon-xorg软件包的安装功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_uninstall",
"desc": "测试abrt-addon-xorg软件包的卸载功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_upgrade",
"desc": "测试abrt-addon-xorg软件包的升级功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_downgrade",
"desc": "测试abrt-addon-xorg软件包的降级功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_rollback",
"desc": "测试abrt-addon-xorg软件包的回滚功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_start",
"desc": "测试abrt-addon-xorg软件包服务的启动功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_stop",
"desc": "测试abrt-addon-xorg软件包服务的停止功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_restart",
"desc": "测试abrt-addon-xorg软件包服务的重启功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_status",
"desc": "测试abrt-addon-xorg软件包服务的状态查询功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_log",
"desc": "测试abrt-addon-xorg软件包服务的日志查看功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_config",
"desc": "测试abrt-addon-xorg软件包服务的配置功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_reload",
"desc": "测试abrt-addon-xorg软件包服务的重载功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_enable",
"desc": "测试abrt-addon-xorg软件包服务的开机自启功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_disable",
"desc": "测试abrt-addon-xorg软件包服务的开机自启禁用功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_downgrade_rollback",
"desc": "测试abrt-addon-xorg软件包的降级回滚功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_log_level",
"desc": "测试abrt-addon-xorg软件包服务的日志级别设置功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_log_rotate",
"desc": "测试abrt-addon-xorg软件包服务的日志轮转功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_upgrade_rollback",
"desc": "测试abrt-addon-xorg软件包的升级回滚功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_config_reload",
"desc": "测试abrt-addon-xorg软件包服务配置重载功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_config_verify",
"desc": "测试abrt-addon-xorg软件包服务配置验证功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_log_clear",
"desc": "测试abrt-addon-xorg软件包服务的日志清除功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_failed_restart",
"desc": "测试abrt-addon-xorg软件包服务在异常状态下的重启功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_failed_start",
"desc": "测试abrt-addon-xorg软件包服务在异常状态下的启动功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_service_failed_stop",
"desc": "测试abrt-addon-xorg软件包服务在异常状态下的停止功能",
"machine num": 1
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_v",
"desc": "测试 verbose 参数,验证是否输出详细信息"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_s",
"desc": "测试 syslog 参数,验证是否将日志记录到 syslog"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_o",
"desc": "测试输出参数,验证是否将崩溃信息打印到标准输出"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_d",
"desc": "测试目录参数,验证是否在指定目录中为每个崩溃创建问题目录"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_upper_d",
"desc": "测试默认目录参数,验证是否使用 abrt.conf 中指定的 DumpLocation 创建问题目录"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_x",
"desc": "测试权限参数,验证是否将问题目录设置为全局可读"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_t",
"desc": "测试节流参数,验证是否将问题目录创建限制为每秒 1 个"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_c",
"desc": "测试游标参数,验证是否从指定游标位置开始读取日志"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_e",
"desc": "测试结束参数,验证是否从日志末尾开始读取"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_f",
"desc": "测试跟随参数,验证是否从上次看到的位置开始跟随日志"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_a",
"desc": "测试所有机器参数,验证是否读取所有机器的日志文件"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_upper_j",
"desc": "测试目录路径参数,验证是否从指定目录读取所有日志文件"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg_j",
"desc": "测试日志过滤器参数,验证是否应用指定的日志过滤器"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg_v",
"desc": "测试 verbose 参数"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg_s",
"desc": "测试 syslog 日志记录参数"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg_o",
"desc": "测试输出崩溃数据到标准输出参数"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg_d",
"desc": "测试指定目录创建问题目录参数"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg_upper_d",
"desc": "测试使用配置文件中的 DumpLocation 参数创建问题目录"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg_x",
"desc": "测试使问题目录全局可读参数"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg_m",
"desc": "测试打印搜索字符串并退出参数"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg_v_o",
"desc": "测试 verbose 和输出崩溃数据到标准输出组合参数"
},
{
"name": "test_abrt-addon-xorg_function_crash_analysis",
"desc": "测试abrt-addon-xorg软件包的崩溃分析功能"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__v",
"desc": "测试verbose模式输出详细信息"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__s",
"desc": "测试将日志记录到syslog"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__o",
"desc": "测试在标准输出上打印找到的崩溃信息"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__d_dir",
"desc": "测试为每个找到的崩溃在指定目录DIR中创建问题目录"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__upper_d",
"desc": "测试使用abrt.conf中指定的DumpLocation作为目录创建问题目录"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__x",
"desc": "测试使创建的问题目录全局可读"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__t",
"desc": "测试将问题目录创建速率限制为每秒1个"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__c_cursor",
"desc": "测试从指定的CURSOR位置开始读取systemd-journal"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__e",
"desc": "测试从末尾开始读取systemd-journal"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__f",
"desc": "测试从上次查看的位置如果可用开始跟随systemd-journal"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__a",
"desc": "测试读取所有机器上的journal文件"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__upper_j_path",
"desc": "测试从指定路径的目录读取所有journal文件"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__j_filter",
"desc": "测试使用指定的journal过滤器例如_COMM=gdm-x-session"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__v_o",
"desc": "测试同时启用verbose模式和标准输出模式"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__d_dir__x",
"desc": "测试在指定目录创建问题目录并使其全局可读"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__f_j_filter",
"desc": "测试跟随journal并使用指定的过滤器"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-journal-xorg__c_cursor__j_filter",
"desc": "测试从指定游标开始读取并使用journal过滤器"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__v",
"desc": "使用verbose参数详细输出处理信息"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__s",
"desc": "使用参数将日志记录到系统日志"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__o",
"desc": "使用参数将找到的崩溃数据打印到标准输出"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__d",
"desc": "为找到的每个崩溃在指定目录创建问题目录"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__upper_d",
"desc": "使用参数为每个崩溃在abrt.conf中指定的DumpLocation创建问题目录"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__x",
"desc": "使用参数使创建的问题目录全局可读"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__m",
"desc": "使用参数打印搜索字符串到标准输出后退出"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__vs",
"desc": "组合使用verbose和syslog参数"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__vo",
"desc": "组合使用verbose和输出崩溃数据参数"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__vdx",
"desc": "组合使用verbose、指定目录和全局可读参数"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__d_upper_d",
"desc": "组合使用指定目录和默认转储位置参数(应处理冲突或优先级)"
},
{
"name": "test_abrt-addon-xorg_abrt-dump-xorg__vom",
"desc": "组合使用verbose、输出崩溃数据和打印搜索字符串参数"
},
{
"name": "test_abrt-addon-xorg_function_install",
"desc": "测试软件包安装功能"
},
{
"name": "test_abrt-addon-xorg_function_uninstall",
"desc": "测试软件包卸载功能"
},
{
"name": "test_abrt-addon-xorg_function_package_check",
"desc": "验证软件包是否已安装"
},
{
"name": "test_abrt-addon-xorg_function_dump_journal",
"desc": "测试从journal提取X崩溃信息"
},
{
"name": "test_abrt-addon-xorg_function_dump_xorg_log",
"desc": "测试从X日志提取崩溃信息"
},
{
"name": "test_abrt-addon-xorg_function_config_dumploc",
"desc": "测试转储目录配置"
},
{
"name": "test_abrt-addon-xorg_function_verbose_output",
"desc": "测试详细输出模式"
},
{
"name": "test_abrt-addon-xorg_function_syslog_logging",
"desc": "测试系统日志记录"
}
]
}

View File

@@ -6,46 +6,6 @@
"name": "test_abrt-dbus_install",
"desc": "测试abrt-dbus软件包的安装功能验证安装过程是否正常完成。",
"machine num": 1
},
{
"name": "test_abrt-dbus_function_start",
"desc": "测试abrt-dbus服务的启动功能验证服务是否能正常启动。"
},
{
"name": "test_abrt-dbus_function_install",
"desc": "测试abrt-dbus软件包的安装功能验证安装过程是否正常完成。"
},
{
"name": "test_abrt-dbus_function_uninstall",
"desc": "测试abrt-dbus软件包的卸载功能验证卸载过程是否正常完成且无残留。"
},
{
"name": "test_abrt-dbus_function_stop",
"desc": "测试abrt-dbus服务的停止功能验证服务是否能正常停止。"
},
{
"name": "test_abrt-dbus_function_restart",
"desc": "测试abrt-dbus服务的重启功能验证服务重启过程是否正常。"
},
{
"name": "test_abrt-dbus_function_status",
"desc": "测试abrt-dbus服务的状态查询功能验证服务状态信息是否正确。"
},
{
"name": "test_abrt-dbus_function_enable",
"desc": "测试abrt-dbus服务的开机自启功能验证服务能否被正确设置为开机启动。"
},
{
"name": "test_abrt-dbus_function_disable",
"desc": "测试abrt-dbus服务的开机自启禁用功能验证服务能否被正确取消开机启动。"
},
{
"name": "test_abrt-dbus_function_report",
"desc": "测试abrt-dbus的核心功能通过DBus接口上报应用程序崩溃信息验证上报流程是否正常。"
},
{
"name": "test_abrt-dbus_function_list",
"desc": "测试abrt-dbus的崩溃问题列表功能验证能否通过DBus正确获取已记录的崩溃问题列表。"
}
]
}

View File

@@ -2,30 +2,10 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/abrt/python3-abrt",
"machine num": 1,
"cases": [
{
"name": "test_python3-abrt_function_crash",
"desc": "Test crash reporting functionality"
},
{
"name": "test_python3-abrt_function_report",
"desc": "Test report generation functionality"
},
{
"name": "test_python3-abrt_function_install",
"desc": "Test package installation and basic availability"
},
{
"name": "test_python3-abrt_function_uninstall",
"desc": "Test package removal and cleanup"
},
{
"name": "test_python3-abrt_function_cli_basic",
"desc": "Test basic CLI commands (e.g., abrt-cli list)"
},
{
"name": "test_python3-abrt_function_config",
"desc": "Test configuration file parsing and defaults"
},
{
"name": "test_python3-abrt_function_service",
"desc": "Test abrtd service status and basic operation"

View File

@@ -7,14 +7,6 @@
"desc": "测试软件包的安装功能验证是否能够正确安装apache-commons-exec-help。",
"machine num": 1
},
{
"name": "test_apache-commons-exec-help_function_exec",
"desc": "测试命令行执行功能,验证是否能够正确执行命令。"
},
{
"name": "test_apache-commons-exec-help_function_install",
"desc": "测试软件包的安装功能验证是否能够正确安装apache-commons-exec-help。"
},
{
"name": "test_apache-commons-exec-help_function_uninstall",
"desc": "测试软件包的卸载功能验证是否能够正确卸载apache-commons-exec-help。"
@@ -22,18 +14,6 @@
{
"name": "test_apache-commons-exec-help_function_version",
"desc": "测试软件包的版本查询功能,验证是否能正确获取已安装软件包的版本信息。"
},
{
"name": "test_apache-commons-exec-help_function_exec_simple",
"desc": "测试软件包提供的命令行工具执行简单命令,验证基本执行功能是否正常。"
},
{
"name": "test_apache-commons-exec-help_function_exec_complex",
"desc": "测试软件包提供的命令行工具执行带参数和环境的复杂命令,验证其健壮性。"
},
{
"name": "test_apache-commons-exec-help_function_help",
"desc": "测试软件包提供的命令行工具的帮助信息查询功能,验证是否能够正确显示帮助文档。"
}
]
}

View File

@@ -11,70 +11,6 @@
"name": "test_cassandra-java-driver-mapping_uninstall",
"desc": "测试cassandra-java-driver-mapping软件包的卸载功能验证卸载是否成功",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_upgrade",
"desc": "测试cassandra-java-driver-mapping软件包的升级功能验证升级是否成功",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_downgrade",
"desc": "测试cassandra-java-driver-mapping软件包的降级功能验证降级是否成功",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_rollback",
"desc": "测试cassandra-java-driver-mapping软件包的回滚功能验证回滚是否成功",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_service_start",
"desc": "测试cassandra-java-driver-mapping软件包服务的启动功能验证服务是否能正常启动",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_service_stop",
"desc": "测试cassandra-java-driver-mapping软件包服务的停止功能验证服务是否能正常停止",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_service_restart",
"desc": "测试cassandra-java-driver-mapping软件包服务的重启功能验证服务是否能正常重启",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_service_status",
"desc": "测试cassandra-java-driver-mapping软件包服务的状态查询功能验证服务状态是否能正常查询",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_service_config",
"desc": "测试cassandra-java-driver-mapping软件包服务的配置功能验证服务配置是否能正常修改",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_service_logs",
"desc": "测试cassandra-java-driver-mapping软件包服务的日志查看功能验证服务日志是否能正常查看",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_service_reload",
"desc": "测试cassandra-java-driver-mapping软件包服务的重载功能验证服务是否能正常重载配置",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_service_enable",
"desc": "测试cassandra-java-driver-mapping软件包服务的开机自启功能验证服务是否能正常设置为开机自启",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_service_disable",
"desc": "测试cassandra-java-driver-mapping软件包服务的开机自启禁用功能验证服务是否能正常禁用开机自启",
"machine num": 1
},
{
"name": "test_cassandra-java-driver-mapping_function_connect",
"desc": "测试cassandra-java-driver-mapping的连接功能验证是否能正常连接到Cassandra数据库"
}
]
}

View File

@@ -2,49 +2,9 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/criu/criu-devel",
"machine num": 1,
"cases": [
{
"name": "test_criu-devel_function_checkpoint",
"desc": "Test checkpoint functionality"
},
{
"name": "test_criu-devel_function_restore",
"desc": "Test restore functionality"
},
{
"name": "test_criu-devel_function_dump",
"desc": "Test dump functionality"
},
{
"name": "test_criu-devel_function_pre",
"desc": "Test pre-dump functionality"
},
{
"name": "test_criu-devel_function_install",
"desc": "Test installation of criu-devel package"
},
{
"name": "test_criu-devel_function_uninstall",
"desc": "Test uninstallation of criu-devel package"
},
{
"name": "test_criu-devel_function_check_installed",
"desc": "Test if criu-devel package is installed"
},
{
"name": "test_criu-devel_function_version",
"desc": "Test version query of criu"
},
{
"name": "test_criu-devel_function_help",
"desc": "Test help command for criu"
},
{
"name": "test_criu-devel_function_basic_check",
"desc": "Test basic criu check functionality"
},
{
"name": "test_criu-devel_function_image_dir",
"desc": "Test image directory creation for criu"
}
]
}

View File

@@ -5,10 +5,6 @@
{
"name": "test_emma-javadoc_function_install",
"desc": "Test the installation of emma-javadoc package"
},
{
"name": "test_emma-javadoc_function_generate",
"desc": "Test the generation of javadoc documentation"
}
]
}

View File

@@ -6,17 +6,9 @@
"name": "test_erlang-inets_function_http",
"desc": "Test HTTP client functionality"
},
{
"name": "test_erlang-inets_function_ftp",
"desc": "Test FTP client functionality"
},
{
"name": "test_erlang-inets_function_tls",
"desc": "Test TLS/SSL functionality"
},
{
"name": "test_erlang-inets_function_auth",
"desc": "Test authentication functionality"
}
]
}

View File

@@ -10,10 +10,6 @@
"name": "test_graphene-devel_query",
"desc": "测试查询graphene-devel软件包信息验证其版本和发布信息。"
},
{
"name": "test_graphene-devel_files",
"desc": "测试graphene-devel软件包安装后其头文件.h和库文件.so等开发文件是否存在于标准路径。"
},
{
"name": "test_graphene-devel_uninstall",
"desc": "测试graphene-devel软件包能否被完整、干净地卸载。"

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/gupnp/gupnp-help",
"machine num": 1,
"cases": [
{
"name": "test_gupnp-help_function_init",
"desc": "Test initialization of gupnp-help"
}
]
}

View File

@@ -2,10 +2,6 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/hppc/hppc-javadoc",
"machine num": 1,
"cases": [
{
"name": "test_hppc-javadoc_function_install",
"desc": "Test package installation"
},
{
"name": "test_hppc-javadoc_function_generate",
"desc": "Test documentation generation"

View File

@@ -2,10 +2,6 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/jakarta-oro/jakarta-oro-help",
"machine num": 1,
"cases": [
{
"name": "test_jakarta-oro-help_function_install",
"desc": "Test package installation"
},
{
"name": "test_jakarta-oro-help_function_parse",
"desc": "Test text parsing functionality"

View File

@@ -6,10 +6,6 @@
"name": "test_jboss-dmr-javadoc_install",
"desc": "测试jboss-dmr-javadoc软件包的安装功能验证安装是否成功",
"machine num": 1
},
{
"name": "test_jboss-dmr-javadoc_function_apidoc",
"desc": "验证jboss-dmr-javadoc软件包的API文档生成功能"
}
]
}

View File

@@ -13,26 +13,6 @@
{
"name": "test_libreport_function_version",
"desc": "Test querying the version of libreport package"
},
{
"name": "test_libreport_function_abrt_cli",
"desc": "Test basic abrt-cli command functionality"
},
{
"name": "test_libreport_function_report_event",
"desc": "Test creating a problem report"
},
{
"name": "test_libreport_function_list_events",
"desc": "Test listing available problem events"
},
{
"name": "test_libreport_function_config_show",
"desc": "Test viewing libreport configuration"
},
{
"name": "test_libreport_function_service_status",
"desc": "Test status of abrtd service"
}
]
}

View File

@@ -7,101 +7,9 @@
"desc": "测试 libxsmm-devel 软件包的安装功能,验证安装是否成功。",
"machine num": 1
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_sparse",
"desc": "测试稀疏矩阵乘法生成器"
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_dense",
"desc": "测试密集矩阵乘法生成器"
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_sparse_csr",
"desc": "测试CSR格式稀疏矩阵乘法生成器"
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_sparse_csr_reg",
"desc": "测试CSR格式稀疏矩阵乘法生成器寄存器优化"
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_sparse_csr_soa",
"desc": "测试CSR格式稀疏矩阵乘法生成器SOA优化"
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_dense_asm",
"desc": "测试密集矩阵乘法生成器(汇编优化)"
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_alpha_num_1",
"desc": "测试alpha参数为1的矩阵乘法生成器"
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_alpha_num_-1",
"desc": "测试alpha参数为-1的矩阵乘法生成器"
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_beta_num_0",
"desc": "测试beta参数为0的矩阵乘法生成器"
},
{
"name": "test_libxsmm-devel_libxsmm_gemm_generator_beta_num_1",
"desc": "测试beta参数为1的矩阵乘法生成器"
},
{
"name": "test_libxsmm-devel_function_install",
"desc": "测试 libxsmm-devel 软件包的安装功能,验证安装是否成功。"
},
{
"name": "test_libxsmm_gemm_generator_alpha_num_neg1",
"desc": "测试使用alpha参数为-1仅dense模式支持"
},
{
"name": "test_libxsmm_gemm_generator_beta_1",
"desc": "测试使用beta参数为1"
},
{
"name": "test_libxsmm_gemm_generator_ARCH_skx",
"desc": "测试指定ARCH架构为skx"
},
{
"name": "test_libxsmm_gemm_generator_PREFETCH_nopf",
"desc": "测试指定PREFETCH选项为nopf无预取"
},
{
"name": "test_libxsmm_gemm_generator_PRECISION_DP",
"desc": "测试指定双精度DP浮点计算"
},
{
"name": "test_libxsmm-devel_function_remove",
"desc": "测试libxsmm-devel软件包的卸载功能验证卸载是否成功。"
},
{
"name": "test_libxsmm-devel_function_version",
"desc": "测试查询libxsmm库的版本信息功能。"
},
{
"name": "test_libxsmm-devel_function_headers",
"desc": "测试libxsmm开发头文件是否存在于标准路径。"
},
{
"name": "test_libxsmm-devel_function_libs",
"desc": "测试libxsmm开发库文件如.so/.a是否存在于标准路径。"
},
{
"name": "test_libxsmm-devel_function_basic_gemm",
"desc": "测试使用libxsmm进行基础GEMM通用矩阵乘法计算的功能。"
},
{
"name": "test_libxsmm-devel_function_gemm_generator",
"desc": "测试libxsmm的GEMM代码生成器功能如dense模式。"
},
{
"name": "test_libxsmm-devel_function_sparse_gemm",
"desc": "测试libxsmm的稀疏矩阵乘法SPGEMM功能。"
},
{
"name": "test_libxsmm-devel_function_arch_dispatch",
"desc": "测试libxsmm针对不同CPU架构如AVX2, AVX512的代码分发功能。"
}
]
}

View File

@@ -2,29 +2,9 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/mc/mc-help",
"machine num": 1,
"cases": [
{
"name": "test_mc-help_function_install",
"desc": "测试mc-help软件包能否成功安装。"
},
{
"name": "test_mc-help_function_uninstall",
"desc": "测试mc-help软件包能否成功卸载。"
},
{
"name": "test_mc-help_function_help",
"desc": "测试mc-help命令是否可以显示帮助信息。"
},
{
"name": "test_mc-help_function_version",
"desc": "测试mc-help命令是否可以显示版本信息。"
},
{
"name": "test_mc-help_function_basic_usage",
"desc": "测试mc-help命令执行基本功能如列出可用帮助主题。"
},
{
"name": "test_mc-help_function_topic_show",
"desc": "测试mc-help命令查看指定帮助主题的详细信息。"
}
]
}

View File

@@ -1,34 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/nagios-plugins/nagios-plugins-hpjd",
"machine num": 1,
"cases": [
{
"name": "test_nagios-plugins-hpjd_function_hpjd_connect",
"desc": "Test the connection functionality of HP JetDirect devices"
},
{
"name": "test_nagios-plugins-hpjd_function_hpjd_status",
"desc": "Test the status monitoring functionality of HP JetDirect devices"
},
{
"name": "test_nagios-plugins-hpjd_function_install_remove",
"desc": "Test the installation and removal of the nagios-plugins-hpjd package"
},
{
"name": "test_nagios-plugins-hpjd_function_check_version",
"desc": "Test checking the version of the installed plugin"
},
{
"name": "test_nagios-plugins-hpjd_function_basic_usage",
"desc": "Test basic command line usage and help output"
},
{
"name": "test_nagios-plugins-hpjd_function_check_printer",
"desc": "Test monitoring a printer via the check_hpjd plugin"
},
{
"name": "test_nagios-plugins-hpjd_function_invalid_host",
"desc": "Test plugin behavior with an invalid or unreachable host"
}
]
}

View File

@@ -1,26 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/openjfx11/openjfx",
"machine num": 1,
"cases": [
{
"name": "test_openjfx_function_ui",
"desc": "Test UI components rendering"
},
{
"name": "test_openjfx_function_animation",
"desc": "Test animation rendering"
},
{
"name": "test_openjfx_function_media",
"desc": "Test media playback"
},
{
"name": "test_openjfx_function_chart",
"desc": "Test chart rendering"
},
{
"name": "test_openjfx_function_webview",
"desc": "Test web content display"
}
]
}

View File

@@ -2,59 +2,6 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/pcsc-lite/pcsc-lite-devel",
"machine num": 1,
"cases": [
{
"name": "test_pcsc-lite-devel_install",
"desc": "测试pcsc-lite-devel软件包的安装功能验证安装过程是否成功。",
"machine num": 1
},
{
"name": "test_pcsc-lite-devel_function_install",
"desc": "Test the installation of pcsc-lite-devel package."
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__h",
"desc": "测试 pcsc-spy 命令的帮助选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__upper_h",
"desc": "测试 pcsc-spy 命令的长格式帮助选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__v",
"desc": "测试 pcsc-spy 命令的版本信息选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__upper_v",
"desc": "测试 pcsc-spy 命令的长格式版本信息选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__n",
"desc": "测试 pcsc-spy 命令的无彩色输出选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__upper_n",
"desc": "测试 pcsc-spy 命令的长格式无彩色输出选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__d",
"desc": "测试 pcsc-spy 命令的差异化输出选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__upper_d",
"desc": "测试 pcsc-spy 命令的长格式差异化输出选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__t",
"desc": "测试 pcsc-spy 命令的线程输出选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__upper_t",
"desc": "测试 pcsc-spy 命令的长格式线程输出选项"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy_docopt_combination",
"desc": "测试 pcsc-spy 命令同时使用多个支持的选项"
},
{
"name": "test_pcsc-lite-devel_function_uninstall",
"desc": "Test the uninstallation of pcsc-lite-devel package."
@@ -63,34 +10,10 @@
"name": "test_pcsc-lite-devel_function_conf",
"desc": "Test the presence of development header files after installation."
},
{
"name": "test_pcsc-lite-devel_function_lib",
"desc": "Test the presence of PC/SC library for linking after installation."
},
{
"name": "test_pcsc-lite-devel_function_compile",
"desc": "Test basic compilation of a simple program using PC/SC headers and library."
},
{
"name": "test_pcsc-lite-dev_function_pkgconfig",
"desc": "Test retrieving PC/SC library information via pkg-config tool."
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__n__d",
"desc": "测试pcsc-spy命令的-n和-d参数组合禁用颜色并生成可比较的输出"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__n__t",
"desc": "测试pcsc-spy命令的-n和-t参数组合禁用颜色并显示线程ID"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__d__t",
"desc": "测试pcsc-spy命令的-d和-t参数组合生成可比较的输出并显示线程ID"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__n__d__t",
"desc": "测试pcsc-spy命令的-n、-d和-t参数组合禁用颜色、生成可比较的输出并显示线程ID"
},
{
"name": "test_pcsc-lite-devel_function_pkgconfig",
"desc": "Test retrieving PC/SC library information via pkg-config tool."
@@ -99,53 +22,9 @@
"name": "test_pcsc-lite-devel_function_headers",
"desc": "Test the presence of development header files."
},
{
"name": "test_pcsc-lite-devel_function_libraries",
"desc": "Test the presence of PC/SC library files for linking."
},
{
"name": "test_pcsc-lite-devel_function_pcscspy",
"desc": "Test basic usage of pcsc-spy tool."
},
{
"name": "test_pcsc-lite-devel_function_version",
"desc": "Test version check of development tools."
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__nocolor",
"desc": "测试 pcsc-spy 命令的 --nocolor 参数功能"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__diffable",
"desc": "测试 pcsc-spy 命令的 --diffable 参数功能"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__help",
"desc": "测试 pcsc-spy 命令的 --help 参数功能"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__version",
"desc": "测试 pcsc-spy 命令的 --version 参数功能"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__thread",
"desc": "测试 pcsc-spy 命令的 --thread 参数功能"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__nocolor__diffable",
"desc": "测试 pcsc-spy 命令同时使用 --nocolor 和 --diffable 参数的功能"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__t__v",
"desc": "测试 pcsc-spy 命令同时使用 -t 和 -v 参数的功能"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy__thread__version",
"desc": "测试 pcsc-spy 命令同时使用 --thread 和 --version 参数的功能"
},
{
"name": "test_pcsc-lite-devel_pcsc-spy_no_args",
"desc": "测试 pcsc-spy 命令在不带任何参数时执行的功能"
}
]
}

View File

@@ -2,10 +2,6 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/perl-Config-Any/perl-Config-Any-help",
"machine num": 1,
"cases": [
{
"name": "test_perl-Config-Any-help_function_install",
"desc": "测试perl-Config-Any-help软件包能够成功安装。"
},
{
"name": "test_perl-Config-Any-help_function_uninstall",
"desc": "测试perl-Config-Any-help软件包能够被成功卸载。"

View File

@@ -5,14 +5,6 @@
{
"name": "test_perl-File-CheckTree-help_function_install",
"desc": "测试 perl-File-CheckTree-help 软件包能够被成功安装"
},
{
"name": "test_perl-File-CheckTree-help_function_remove",
"desc": "测试 perl-File-CheckTree-help 软件包能够被成功卸载"
},
{
"name": "test_perl-File-CheckTree-help_function_usage",
"desc": "测试 perl-File-CheckTree-help 软件包的帮助文档能够被访问"
}
]
}

View File

@@ -2,25 +2,9 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/perl-Test-Memory-Cycle/perl-Test-Memory-Cycle-help",
"machine num": 1,
"cases": [
{
"name": "test_perl-Test-Memory-Cycle-help_function_install",
"desc": "测试软件包安装功能"
},
{
"name": "test_perl-Test-Memory-Cycle-help_function_uninstall",
"desc": "测试软件包卸载功能"
},
{
"name": "test_perl-Test-Memory-Cycle-help_function_version",
"desc": "测试查询软件包版本"
},
{
"name": "test_perl-Test-Memory-Cycle-help_function_help",
"desc": "测试显示软件包帮助信息"
},
{
"name": "test_perl-Test-Memory-Cycle-help_function_basic_use",
"desc": "测试基础内存循环检测功能"
}
]
}

View File

@@ -2,18 +2,6 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/perl-Unicode-Collate/perl-Unicode-Collate-help",
"machine num": 1,
"cases": [
{
"name": "test_perl-Unicode-Collate-help_function_install",
"desc": "测试软件包安装功能验证是否能通过包管理器如yum, dnf, zypper成功安装。"
},
{
"name": "test_perl-Unicode-Collate-help_function_verify_install",
"desc": "测试验证软件包是否已正确安装,检查包信息和文件列表。"
},
{
"name": "test_perl-Unicode-Collate-help_function_basic_usage",
"desc": "测试软件包基本用法,如调用其提供的帮助文档或工具验证核心功能可用。"
},
{
"name": "test_perl-Unicode-Collate-help_function_uninstall",
"desc": "测试软件包卸载功能,验证是否能通过包管理器干净地移除软件包。"

View File

@@ -10,49 +10,9 @@
"name": "test_poco-activerecord_function_install",
"desc": "Test package installation"
},
{
"name": "test_poco-activerecord_function_query",
"desc": "Test query functionality"
},
{
"name": "test_poco-activerecord_function_update",
"desc": "Test package update"
},
{
"name": "test_poco-activerecord_function_create",
"desc": "Test record creation"
},
{
"name": "test_poco-activerecord_function_delete",
"desc": "Test record deletion"
},
{
"name": "test_poco-activerecord_function_basic_usage",
"desc": "Test basic ActiveRecord operations (CRUD)"
},
{
"name": "test_poco-activerecord_function_relation",
"desc": "Test model relationships"
},
{
"name": "test_poco-activerecord_function_transaction",
"desc": "Test database transaction"
},
{
"name": "test_poco-activerecord_function_validation",
"desc": "Test data validation rules"
},
{
"name": "test_poco-activerecord_function_migration",
"desc": "Test database migration"
},
{
"name": "test_poco-activerecord_function_connection",
"desc": "Test database connection setup"
},
{
"name": "test_poco-activerecord_function_package_info",
"desc": "Test package version and info"
}
]
}

View File

@@ -507,10 +507,6 @@
"name": "test_procps-ng_pidof_cwxt",
"desc": "测试 pidof 命令的 -c -w -x -t 参数组合省略具有不同根目录的进程、包含内核工作进程、查找运行脚本的shell并包含线程"
},
{
"name": "test_procps-ng_pidof_scwxt",
"desc": "测试 pidof 命令的 -s -c -w -x -t 参数组合仅返回一个PID、省略具有不同根目录的进程、包含内核工作进程、查找运行脚本的shell并包含线程"
},
{
"name": "test_procps-ng_pidwait_x_upper_f",
"desc": "测试 pidwait 命令的 -x 和 -F 参数组合精确匹配命令并从文件中读取PID"

View File

@@ -2,49 +2,13 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/protobuf-c/protobuf-c-devel",
"machine num": 1,
"cases": [
{
"name": "test_protobuf-c-devel_install",
"desc": "测试protobuf-c-devel软件包能否正确安装"
},
{
"name": "test_protobuf-c-devel_uninstall",
"desc": "测试protobuf-c-devel软件包能否正确卸载"
},
{
"name": "test_protobuf-c-devel_compile",
"desc": "测试使用protobuf-c头文件和库进行简单程序的编译"
},
{
"name": "test_protobuf-c-devel_protoc_c",
"desc": "测试protoc-c编译器能否将.proto文件生成C语言代码"
},
{
"name": "test_protobuf-c-devel_function_install",
"desc": "测试protobuf-c-devel软件包能否成功安装"
},
{
"name": "test_protobuf-c-devel_function_uninstall",
"desc": "测试protobuf-c-devel软件包能否完全卸载且不影响系统"
},
{
"name": "test_protobuf-c-devel_function_checkfiles",
"desc": "测试安装后关键的头文件(.h)和库文件(.so/.a)是否存在"
},
{
"name": "test_protobuf-c-devel_function_protocc",
"desc": "测试protoc-c命令是否可用并能生成正确的C代码"
},
{
"name": "test_protobuf-c-devel_function_compilelink",
"desc": "测试使用protobuf-c库进行编译和链接的完整流程"
},
{
"name": "test_protobuf-c-devel_function_basicapi",
"desc": "测试protobuf-c基本API如消息创建、序列化的功能"
},
{
"name": "test_protobuf-c-devel_function_version",
"desc": "测试protoc-c编译器和库的版本信息是否一致且正确"
}
]
}

View File

@@ -2,29 +2,9 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/python-executing/python3-executing",
"machine num": 1,
"cases": [
{
"name": "test_python3-executing_function_basic",
"desc": "Test basic execution of python3-executing"
},
{
"name": "test_python3-executing_function_install",
"desc": "Test installation of python3-executing package"
},
{
"name": "test_python3-executing_function_uninstall",
"desc": "Test uninstallation of python3-executing package"
},
{
"name": "test_python3-executing_function_import",
"desc": "Test importing the executing module"
},
{
"name": "test_python3-executing_function_exec_info",
"desc": "Test Executing.executing function for frame info"
},
{
"name": "test_python3-executing_function_source",
"desc": "Test retrieving source code from frame"
}
]
}

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/python-jaraco-collections/python3-jaraco-collections",
"machine num": 1,
"cases": [
{
"name": "test_python3-jaraco-collections_function_init",
"desc": "Test initialization of collections"
}
]
}

View File

@@ -2,109 +2,15 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/python-portalocker/python-portalocker-help",
"machine num": 1,
"cases": [
{
"name": "test_python-portalocker-help_install",
"desc": "测试python-portalocker-help软件包的安装功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_uninstall",
"desc": "测试python-portalocker-help软件包的卸载功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_upgrade",
"desc": "测试python-portalocker-help软件包的升级功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_downgrade",
"desc": "测试python-portalocker-help软件包的降级功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_rollback",
"desc": "测试python-portalocker-help软件包的升级回滚功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_start",
"desc": "测试python-portalocker-help软件包提供的服务的启动功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_stop",
"desc": "测试python-portalocker-help软件包提供的服务的停止功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_restart",
"desc": "测试python-portalocker-help软件包提供的服务的重启功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_status",
"desc": "测试python-portalocker-help软件包提供的服务的状态查询功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_log",
"desc": "测试python-portalocker-help软件包提供的服务的日志查看功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_config",
"desc": "测试python-portalocker-help软件包提供的服务的配置功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_reload",
"desc": "测试python-portalocker-help软件包提供的服务的重载配置功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_enable",
"desc": "测试python-portalocker-help软件包提供的服务的开机自启功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_disable",
"desc": "测试python-portalocker-help软件包提供的服务的开机自启禁用功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_autostart",
"desc": "测试python-portalocker-help软件包提供的服务的自动启动功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_downgrade_rollback",
"desc": "测试python-portalocker-help软件包的降级回滚功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_reinstall",
"desc": "测试python-portalocker-help软件包的重新安装功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_autostop",
"desc": "测试python-portalocker-help软件包提供的服务的自动停止功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_logrotate",
"desc": "测试python-portalocker-help软件包提供的服务的日志轮转功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_service_log_level",
"desc": "测试python-portalocker-help软件包提供的服务的日志级别设置功能",
"machine num": 1
},
{
"name": "test_python-portalocker-help_function_lock",
"desc": "Test the file locking functionality"
}
]
}

View File

@@ -5,26 +5,6 @@
{
"name": "test_python3-prettytable_function_install",
"desc": "Test package installation"
},
{
"name": "test_python3-prettytable_function_import",
"desc": "Test basic import and version"
},
{
"name": "test_python3-prettytable_function_table",
"desc": "Test create simple table"
},
{
"name": "test_python3-prettytable_function_style",
"desc": "Test table style changes"
},
{
"name": "test_python3-prettytable_function_export",
"desc": "Test export to string"
},
{
"name": "test_python3-prettytable_function_uninstall",
"desc": "Test package removal"
}
]
}

View File

@@ -6,10 +6,6 @@
"name": "test_qt5-qtdeclarative-static_install",
"desc": "测试软件包 qt5-qtdeclarative-static 的安装功能,验证安装过程是否成功。",
"machine num": 1
},
{
"name": "test_qt5-qtdeclarative-static_function_render",
"desc": "测试软件包 qt5-qtdeclarative-static 的渲染功能,验证渲染是否正常。"
}
]
}

View File

@@ -11,10 +11,6 @@
"name": "test_qt5-qtsensors-examples_service_config",
"desc": "测试软件包qt5-qtsensors-examples中的服务配置功能验证服务配置是否能正常修改。",
"machine num": 1
},
{
"name": "test_qt5-qtsensors-examples_function_sensor",
"desc": "测试软件包qt5-qtsensors-examples的传感器功能验证传感器是否能正常读取数据。"
}
]
}

View File

@@ -6,18 +6,6 @@
"name": "test_raptor2-devel_function_install",
"desc": "测试通过系统包管理器如yum, dnf, apt成功安装raptor2-devel软件包"
},
{
"name": "test_raptor2-devel_function_check_installed",
"desc": "测试检查raptor2-devel软件包包含头文件和库文件是否已正确安装在系统中"
},
{
"name": "test_raptor2-devel_function_include_header",
"desc": "测试raptor2开发头文件如raptor2.h可以被C/C++编译器正常查找和包含"
},
{
"name": "test_raptor2-devel_function_link_library",
"desc": "测试使用raptor2库-lraptor2能够成功编译链接一个简单的示例程序"
},
{
"name": "test_raptor2-devel_function_uninstall",
"desc": "测试通过系统包管理器安全且完整地卸载raptor2-devel软件包"

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/rubygem-cucumber/rubygem-cucumber-doc",
"machine num": 1,
"cases": [
{
"name": "test_rubygem-cucumber-doc_function_doc_generation",
"desc": "Test the documentation generation feature of rubygem-cucumber-doc"
}
]
}

View File

@@ -1,14 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/shrinkwrap-resolver/shrinkwrap-resolver-javadoc",
"machine num": 1,
"cases": [
{
"name": "test_shrinkwrap-resolver-javadoc_function_load",
"desc": "Test loading javadoc artifacts"
},
{
"name": "test_shrinkwrap-resolver-javadoc_function_parse",
"desc": "Test parsing javadoc artifacts"
}
]
}

View File

@@ -6,18 +6,6 @@
"name": "test_springframework-oxm_install",
"desc": "测试 springframework-oxm 软件包的安装功能,验证是否能够正确安装到系统中。",
"machine num": 1
},
{
"name": "test_springframework-oxm_function_marshalling",
"desc": "测试 springframework-oxm 的 XML 编组功能,验证对象能否正确转换为 XML 格式。"
},
{
"name": "test_springframework-oxm_function_unmarshalling",
"desc": "测试 springframework-oxm 的 XML 解组功能,验证 XML 能否正确转换为对象。"
},
{
"name": "test_springframework-oxm_function_support",
"desc": "测试 springframework-oxm 的基础支持功能,验证是否提供必要的依赖和工具类。"
}
]
}

View File

@@ -5,18 +5,6 @@
{
"name": "test_python3-sss-murmur_function_install",
"desc": "测试软件包安装功能,验证其能否被正确安装到系统中"
},
{
"name": "test_python3-sss-murmur_function_uninstall",
"desc": "测试软件包卸载功能,验证其能否被完全移除且不残留配置文件"
},
{
"name": "test_python3-sss-murmur_function_import",
"desc": "测试Python模块导入功能验证其核心模块能否被正确导入和使用"
},
{
"name": "test_python3-sss-murmur_function_hash",
"desc": "测试murmur哈希计算功能验证其能对给定输入生成正确的哈希值"
}
]
}

View File

@@ -38,57 +38,9 @@
"name": "test_systemd-timesyncd_function_install",
"desc": "检查软件包是否已安装"
},
{
"name": "test_systemd-timesyncd_function_status",
"desc": "检查服务运行状态"
},
{
"name": "test_systemd-timesyncd_function_enable",
"desc": "测试服务开机自启"
},
{
"name": "test_systemd-timesyncd_function_timesync",
"desc": "测试手动触发时间同步"
},
{
"name": "test_systemd-timesyncd_function_ntp_servers",
"desc": "测试配置NTP服务器"
},
{
"name": "test_systemd-timesyncd_function_sync_status",
"desc": "查看时间同步状态"
},
{
"name": "test_systemd-timesyncd_function_install_check",
"desc": "检查软件包是否已安装"
},
{
"name": "test_systemd-timesyncd_function_service_ctrl",
"desc": "测试服务启动停止重启"
},
{
"name": "test_systemd-timesyncd_function_service_enable",
"desc": "测试服务开机自启"
},
{
"name": "test_systemd-timesyncd_function_timedatectl",
"desc": "测试timedatectl基础命令"
},
{
"name": "test_systemd-timesyncd_function_ntp_enable",
"desc": "测试启用禁用NTP同步"
},
{
"name": "test_systemd-timesyncd_function_config_file",
"desc": "测试修改主配置文件"
},
{
"name": "test_systemd-timesyncd_function_force_sync",
"desc": "测试手动触发时间同步"
},
{
"name": "test_systemd-timesyncd_function_log_verify",
"desc": "验证服务日志输出"
}
]
}

View File

@@ -5,22 +5,6 @@
{
"name": "test_texlive-actuarialangle-doc_function_install",
"desc": "Test package installation"
},
{
"name": "test_texlive-actuarialangle-doc_function_check_installed",
"desc": "Check if the package is installed on the system"
},
{
"name": "test_texlive-actuarialangle-doc_function_verify_files",
"desc": "Verify the existence of key documentation files"
},
{
"name": "test_texlive-actuarialangle-doc_function_list_content",
"desc": "List the contents of the documentation package"
},
{
"name": "test_texlive-actuarialangle-doc_function_remove_package",
"desc": "Test uninstalling the documentation package"
}
]
}

View File

@@ -11,151 +11,6 @@
"name": "test_texlive-babel-norsk-doc_uninstall",
"desc": "测试 texlive-babel-norsk-doc 软件包的卸载功能,验证是否能够正确从系统中卸载",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_upgrade",
"desc": "测试 texlive-babel-norsk-doc 软件包的升级功能,验证是否能够正确升级到新版本",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_downgrade",
"desc": "测试 texlive-babel-norsk-doc 软件包的降级功能,验证是否能够正确降级到旧版本",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_rollback",
"desc": "测试 texlive-babel-norsk-doc 软件包的回滚功能,验证是否能够正确回滚到之前的版本",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_reinstall",
"desc": "测试 texlive-babel-norsk-doc 软件包的重新安装功能,验证是否能够正确卸载后重新安装到系统中",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_service_start",
"desc": "测试 texlive-babel-norsk-doc 软件包提供的服务启动功能,验证服务是否能够正常启动",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_service_stop",
"desc": "测试 texlive-babel-norsk-doc 软件包提供的服务停止功能,验证服务是否能够正常停止",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_service_restart",
"desc": "测试 texlive-babel-norsk-doc 软件包提供的服务重启功能,验证服务是否能够正常重启",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_service_status",
"desc": "测试 texlive-babel-norsk-doc 软件包提供的服务状态查询功能,验证服务状态是否能够正确查询",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档功能,验证文档是否正确安装并可访问",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_service_log",
"desc": "测试 texlive-babel-norsk-doc 软件包提供的服务日志功能,验证服务日志是否能够正确查看",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_access",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档访问功能,验证文档是否能够正确访问并显示内容",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_service_config",
"desc": "测试 texlive-babel-norsk-doc 软件包提供的服务配置功能,验证服务配置是否能够正确修改和生效",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_search",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档搜索功能,验证是否能够通过关键词搜索到相关文档内容",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_verify",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档验证功能,验证文档内容是否正确无误",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_version",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档版本功能,验证文档版本是否正确并与软件包版本一致",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_format",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档格式功能,验证文档格式是否正确且符合标准",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_index",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档索引功能,验证文档索引是否正确生成并可访问",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_links",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档链接功能,验证文档中的链接是否有效且正确指向目标内容",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_update",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档更新功能,验证文档是否能够正确更新并与软件包版本同步",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_print",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档打印功能,验证文档是否能够正确打印且格式无误",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_export",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档导出功能,验证文档是否能够正确导出为指定格式",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_style",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档样式功能,验证文档样式是否符合挪威语排版规范",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_unicode",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档unicode支持功能验证文档是否能够正确显示unicode字符",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_help",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档帮助功能,验证文档是否包含帮助信息并能正确显示",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_documentation_fonts",
"desc": "测试 texlive-babel-norsk-doc 软件包的文档字体功能,验证文档中的字体是否正确显示且符合挪威语排版规范",
"machine num": 1
},
{
"name": "test_texlive-babel-norsk-doc_function_install",
"desc": "测试软件包的基本安装功能,验证是否能通过包管理器成功安装到系统中。"
},
{
"name": "test_texlive-babel-norsk-doc_function_uninstall",
"desc": "测试软件包的基本卸载功能,验证是否能通过包管理器从系统中完全移除。"
},
{
"name": "test_texlive-babel-norsk-doc_function_doc_access",
"desc": "测试软件包文档的可访问性,验证安装后文档文件是否存在并可读取。"
},
{
"name": "test_texlive-babel-norsk-doc_function_doc_content",
"desc": "测试软件包文档内容的正确性验证文档包含挪威语babel包的说明信息。"
},
{
"name": "test_texlive-babel-norsk-doc_function_version",
"desc": "测试软件包版本查询功能,验证已安装的文档包版本信息是否正确。"
}
]
}

View File

@@ -2,21 +2,9 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-c/texlive-biblatex-dw-doc",
"machine num": 1,
"cases": [
{
"name": "test_texlive-biblatex-dw-doc_function_install",
"desc": "Test package installation"
},
{
"name": "test_texlive-biblatex-dw-doc_function_remove",
"desc": "Test package removal"
},
{
"name": "test_texlive-biblatex-dw-doc_function_check_installed",
"desc": "Verify package is installed"
},
{
"name": "test_texlive-biblatex-dw-doc_function_verify_files",
"desc": "Check key documentation files"
}
]
}

View File

@@ -5,22 +5,6 @@
{
"name": "test_texlive-bibletext_function_install",
"desc": "Test package installation"
},
{
"name": "test_texlive-bibletext_function_uninstall",
"desc": "Test package removal"
},
{
"name": "test_texlive-bibletext_function_check_installed",
"desc": "Verify package is installed"
},
{
"name": "test_texlive-bibletext_function_basic_usage",
"desc": "Test basic LaTeX document compile"
},
{
"name": "test_texlive-bibletext_function_list_files",
"desc": "List installed package files"
}
]
}

View File

@@ -10,17 +10,9 @@
"name": "test_texlive-bidi-atbegshi_function_remove",
"desc": "Test package removal"
},
{
"name": "test_texlive-bidi-atbegshi_function_version",
"desc": "Test querying package version"
},
{
"name": "test_texlive-bidi-atbegshi_function_files",
"desc": "Test listing package files"
},
{
"name": "test_texlive-bidi-atbegshi_function_usage",
"desc": "Test basic LaTeX usage with bidi-atbegshi"
}
]
}

View File

@@ -5,10 +5,6 @@
{
"name": "test_texlive-bondgraph_function_install",
"desc": "Test package installation"
},
{
"name": "test_texlive-bondgraph_function_basic",
"desc": "Test basic command usage"
}
]
}

View File

@@ -5,30 +5,6 @@
{
"name": "test_texlive-fixlatvian_function_install",
"desc": "Test package installation"
},
{
"name": "test_texlive-fixlatvian_function_uninstall",
"desc": "Test package removal"
},
{
"name": "test_texlive-fixlatvian_function_check_installed",
"desc": "Verify package installation status"
},
{
"name": "test_texlive-fixlatvian_function_version",
"desc": "Check package version information"
},
{
"name": "test_texlive-fixlatvian_function_help",
"desc": "Display command help or usage"
},
{
"name": "test_texlive-fixlatvian_function_basic_usage",
"desc": "Test basic LaTeX command processing"
},
{
"name": "test_texlive-fixlatvian_function_fix_latvian",
"desc": "Test Latvian character correction"
}
]
}

View File

@@ -5,10 +5,6 @@
{
"name": "test_texlive-fnspe_function_install",
"desc": "Test package installation"
},
{
"name": "test_texlive-fnspe_function_uninstall",
"desc": "Test package uninstallation"
}
]
}

View File

@@ -1,26 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-i/texlive-fntproof",
"machine num": 1,
"cases": [
{
"name": "test_texlive-fntproof_function_fontcheck",
"desc": "Verify font checking functionality"
},
{
"name": "test_texlive-fntproof_function_install",
"desc": "Verify the software package can be installed correctly"
},
{
"name": "test_texlive-fntproof_function_uninstall",
"desc": "Verify the software package can be cleanly uninstalled"
},
{
"name": "test_texlive-fntproof_function_basic_usage",
"desc": "Test the basic usage of the fntproof package with a simple LaTeX document"
},
{
"name": "test_texlive-fntproof_function_fontproof_cmd",
"desc": "Test the fontproof command line tool to generate a font sample sheet"
}
]
}

View File

@@ -1,22 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-j/texlive-glossaries-polish-doc",
"machine num": 1,
"cases": [
{
"name": "test_texlive-glossaries-polish-doc_function_doc",
"desc": "Verify the documentation files are installed correctly"
},
{
"name": "test_texlive-glossaries-polish-doc_function_install",
"desc": "Verify the package can be installed via package manager"
},
{
"name": "test_texlive-glossaries-polish-doc_function_doc_exist",
"desc": "Check if the main documentation files are present after installation"
},
{
"name": "test_texlive-glossaries-polish-doc_function_uninstall",
"desc": "Verify the package can be cleanly removed via package manager"
}
]
}

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-p/texlive-mongolian-babel",
"machine num": 1,
"cases": [
{
"name": "test_texlive-mongolian-babel_function_basic",
"desc": "Basic functionality test for Mongolian language support in LaTeX"
}
]
}

View File

@@ -2,240 +2,10 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-q/texlive-nonumonpart-doc",
"machine num": 3,
"cases": [
{
"name": "test_texlive-nonumonpart-doc_install",
"desc": "测试texlive-nonumonpart-doc软件包的安装功能验证安装过程是否正常完成",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_uninstall",
"desc": "测试texlive-nonumonpart-doc软件包的卸载功能验证卸载过程是否正常完成",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_upgrade",
"desc": "测试texlive-nonumonpart-doc软件包的升级功能验证升级过程是否正常完成",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_downgrade",
"desc": "测试texlive-nonumonpart-doc软件包的降级功能验证降级过程是否正常完成",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_rollback",
"desc": "测试texlive-nonumonpart-doc软件包的回滚功能验证回滚过程是否正常完成",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_reinstall",
"desc": "测试texlive-nonumonpart-doc软件包的重新安装功能验证重新安装过程是否正常完成",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_start",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务启动功能验证服务是否能正常启动",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_stop",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务停止功能验证服务是否能正常停止",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_restart",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务重启功能验证服务是否能正常重启",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_status",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务状态查询功能验证服务状态是否能正常查询",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_log",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务日志查看功能验证服务日志是否能正常查看",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_config",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务配置功能验证服务配置是否能正常修改",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_reload",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务重载功能验证服务配置重载是否能正常完成",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_enable",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务开机自启功能验证服务是否能正常设置为开机自启",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_disable",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务开机自启禁用功能验证服务是否能正常取消开机自启",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_service_autostart",
"desc": "测试texlive-nonumonpart-doc软件包提供的服务自动启动功能验证服务是否能在系统启动时自动启动",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_dependency",
"desc": "测试texlive-nonumonpart-doc软件包的依赖关系验证安装时是否正常解决依赖",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_dependency_verify",
"desc": "测试texlive-nonumonpart-doc软件包的依赖关系验证功能验证软件包安装后依赖关系是否正确",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_dependency_install",
"desc": "测试texlive-nonumonpart-doc软件包的依赖安装功能验证安装过程中依赖包是否正常安装",
"machine num": 3
},
{
"name": "test_texlive-nonumonpart-doc_dependency_uninstall",
"desc": "测试texlive-nonumonpart-doc软件包的依赖卸载功能验证卸载时依赖包是否正常处理",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_dependency_upgrade",
"desc": "测试texlive-nonumonpart-doc软件包的依赖升级功能验证升级过程中依赖包是否正常升级",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_dependency_downgrade",
"desc": "测试texlive-nonumonpart-doc软件包的依赖降级功能验证降级过程中依赖包是否正常降级",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_dependency_rollback",
"desc": "测试texlive-nonumonpart-doc软件包的依赖回滚功能验证回滚过程中依赖包是否正常回滚",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_dependency_reinstall",
"desc": "测试texlive-nonumonpart-doc软件包的依赖重新安装功能验证重新安装过程中依赖包是否正常处理",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_documentation",
"desc": "测试texlive-nonumonpart-doc软件包的文档验证功能验证安装后文档是否完整且可访问",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_license",
"desc": "测试texlive-nonumonpart-doc软件包的许可证验证功能验证安装后许可证文件是否完整且符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_man_pages",
"desc": "测试texlive-nonumonpart-doc软件包的手册页验证功能验证安装后手册页是否完整且可访问",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_integrity",
"desc": "测试texlive-nonumonpart-doc软件包的文件完整性验证功能验证安装后文件是否完整且未被篡改",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_config_files",
"desc": "测试texlive-nonumonpart-doc软件包的配置文件验证功能验证安装后配置文件是否完整且符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_executables",
"desc": "测试texlive-nonumonpart-doc软件包的可执行文件验证功能验证安装后可执行文件是否完整且可正常执行",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_symbolic_links",
"desc": "测试texlive-nonumonpart-doc软件包的符号链接验证功能验证安装后符号链接是否完整且指向正确的目标",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_ownership",
"desc": "测试texlive-nonumonpart-doc软件包的文件所有权验证功能验证安装后文件的所有权是否符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_license_access",
"desc": "测试texlive-nonumonpart-doc软件包的许可证访问功能验证安装后许可证文件是否可以通过标准路径访问",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_size",
"desc": "测试texlive-nonumonpart-doc软件包的文件大小验证功能验证安装后文件的大小是否符合预期",
"machine num": 3
},
{
"name": "test_texlive-nonumonpart-doc_verify_script_content",
"desc": "测试texlive-nonumonpart-doc软件包的脚本内容验证功能验证安装后脚本文件内容是否完整且符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_checksum",
"desc": "测试texlive-nonumonpart-doc软件包的文件校验和验证功能验证安装后文件的校验和是否符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_script_output",
"desc": "测试texlive-nonumonpart-doc软件包的脚本输出验证功能验证安装后脚本文件的输出是否符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_encoding",
"desc": "测试texlive-nonumonpart-doc软件包的文件编码验证功能验证安装后文件的编码是否符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_extension",
"desc": "测试texlive-nonumonpart-doc软件包的文件扩展名验证功能验证安装后文件的扩展名是否符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_location",
"desc": "测试texlive-nonumonpart-doc软件包的文件位置验证功能验证安装后文件是否位于预期的路径下",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_version",
"desc": "测试texlive-nonumonpart-doc软件包的文件版本验证功能验证安装后文件的版本信息是否符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_metadata",
"desc": "测试texlive-nonumonpart-doc软件包的文件元数据验证功能验证安装后文件的元数据如所有者、组、权限等是否符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_verify_file_type",
"desc": "测试texlive-nonumonpart-doc软件包的文件类型验证功能验证安装后文件的类型是否符合预期",
"machine num": 1
},
{
"name": "test_texlive-nonumonpart-doc_function_doc_access",
"desc": "测试texlive-nonumonpart-doc软件包的文档访问功能验证文档是否可以通过标准路径访问"
},
{
"name": "test_texlive-nonumonpart-doc_function_install",
"desc": "测试软件包的基本安装功能,验证其是否能被正确安装到系统中"
},
{
"name": "test_texlive-nonumonpart-doc_function_uninstall",
"desc": "测试软件包的基本卸载功能,验证其是否能被完全且干净地移除"
},
{
"name": "test_texlive-nonumonpart-doc_function_integrity",
"desc": "测试软件包文件完整性,验证安装后关键文档文件是否存在且未被损坏"
},
{
"name": "test_texlive-nonumonpart-doc_function_package_info",
"desc": "测试软件包信息查询,验证包管理器能正确显示其版本、描述等元数据"
}
]
}

View File

@@ -10,22 +10,6 @@
{
"name": "test_texlive-pmgraph-doc_function_install",
"desc": "测试 texlive-pmgraph-doc 软件包能否通过包管理器成功安装。"
},
{
"name": "test_texlive-pmgraph-doc_function_verify_install",
"desc": "验证 texlive-pmgraph-doc 软件包的文件是否已正确安装到系统的文档目录中。"
},
{
"name": "test_texlive-pmgraph-doc_function_doc_access",
"desc": "测试安装后,能否正常访问 texlive-pmgraph-doc 提供的文档如PDF、README文件。"
},
{
"name": "test_texlive-pmgraph-doc_function_uninstall",
"desc": "测试 texlive-pmgraph-doc 软件包能否通过包管理器被完全卸载。"
},
{
"name": "test_texlive-pmgraph-doc_function_integrity",
"desc": "检查 texlive-pmgraph-doc 软件包安装后,其文档内容是否完整、无损坏。"
}
]
}

View File

@@ -17,10 +17,6 @@
{
"name": "test_texlive-soul-doc_function_doc_files",
"desc": "Verify core documentation files are present after installation"
},
{
"name": "test_texlive-soul-doc_function_doc_access",
"desc": "Verify documentation can be accessed via texdoc command"
}
]
}

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-v/texlive-splitbib-doc",
"machine num": 1,
"cases": [
{
"name": "test_texlive-splitbib-doc_function_basic",
"desc": "Verify basic functionality of texlive-splitbib-doc"
}
]
}

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-v/texlive-suftesi",
"machine num": 1,
"cases": [
{
"name": "test_texlive-suftesi_function_install",
"desc": "Test package installation"
}
]
}

View File

@@ -2,10 +2,6 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-w/texlive-termmenu",
"machine num": 1,
"cases": [
{
"name": "test_texlive-termmenu_function_install",
"desc": "Test installation of texlive-termmenu"
},
{
"name": "test_texlive-termmenu_function_remove",
"desc": "Test removal of texlive-termmenu"
@@ -13,10 +9,6 @@
{
"name": "test_texlive-termmenu_function_version",
"desc": "Test query package version"
},
{
"name": "test_texlive-termmenu_function_integration",
"desc": "Test LaTeX document compilation"
}
]
}

View File

@@ -2,10 +2,6 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-w/texlive-texapi-doc",
"machine num": 1,
"cases": [
{
"name": "test_texlive-texapi-doc_function_docgen",
"desc": "Verify documentation generation"
},
{
"name": "test_texlive-texapi-doc_function_install",
"desc": "Verify package can be installed via package manager"
@@ -17,14 +13,6 @@
{
"name": "test_texlive-texapi-doc_function_check_installed",
"desc": "Verify package is correctly installed in system"
},
{
"name": "test_texlive-texapi-doc_function_doc_access",
"desc": "Verify documentation files are accessible"
},
{
"name": "test_texlive-texapi-doc_function_doc_content",
"desc": "Verify key documentation content is present and readable"
}
]
}

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-x/texlive-typed-checklist-doc",
"machine num": 1,
"cases": [
{
"name": "test_texlive-typed-checklist-doc_function_install",
"desc": "Test package installation"
}
]
}

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-y/texlive-fontsize",
"machine num": 1,
"cases": [
{
"name": "test_texlive-fontsize_function_size",
"desc": "Test font size adjustment functionality"
}
]
}

View File

@@ -2,26 +2,11 @@
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-y/texlive-url-doc",
"machine num": 3,
"cases": [
{
"name": "test_texlive-url-doc_install",
"desc": "测试 texlive-url-doc 软件包的安装功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_uninstall",
"desc": "测试 texlive-url-doc 软件包的卸载功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_upgrade",
"desc": "测试 texlive-url-doc 软件包的升级功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_downgrade",
"desc": "测试 texlive-url-doc 软件包的降级功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_rollback",
"desc": "测试 texlive-url-doc 软件包的回滚功能",
@@ -32,195 +17,30 @@
"desc": "测试 texlive-url-doc 软件包的重新安装功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify",
"desc": "测试 texlive-url-doc 软件包的完整性验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_dependency",
"desc": "测试 texlive-url-doc 软件包的依赖关系检查功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc",
"desc": "测试 texlive-url-doc 软件包的文档完整性验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_install",
"desc": "测试 texlive-url-doc 软件包的安装后验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_uninstall",
"desc": "测试 texlive-url-doc 软件包的卸载后验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_upgrade",
"desc": "测试 texlive-url-doc 软件包的升级后验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_downgrade",
"desc": "测试 texlive-url-doc 软件包的降级后验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_rollback",
"desc": "测试 texlive-url-doc 软件包的回滚后验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_reinstall",
"desc": "测试 texlive-url-doc 软件包的重新安装后验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_content",
"desc": "测试 texlive-url-doc 软件包的文档内容验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_dependency_install",
"desc": "测试 texlive-url-doc 软件包的依赖安装验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_dependency_uninstall",
"desc": "测试 texlive-url-doc 软件包的依赖卸载验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_dependency_upgrade",
"desc": "测试 texlive-url-doc 软件包的依赖升级验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_dependency_downgrade",
"desc": "测试 texlive-url-doc 软件包的依赖降级验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_dependency_rollback",
"desc": "测试 texlive-url-doc 软件包的依赖回滚验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_dependency_reinstall",
"desc": "测试 texlive-url-doc 软件包的依赖重新安装验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_accessibility",
"desc": "测试 texlive-url-doc 软件包的文档可访问性验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_metadata",
"desc": "测试 texlive-url-doc 软件包的文档元数据验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_permissions",
"desc": "测试 texlive-url-doc 软件包的文档权限验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_format",
"desc": "测试 texlive-url-doc 软件包的文档格式验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_links",
"desc": "测试 texlive-url-doc 软件包的文档链接验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_size",
"desc": "测试 texlive-url-doc 软件包的文档大小验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_encoding",
"desc": "测试 texlive-url-doc 软件包的文档编码验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_compression",
"desc": "测试 texlive-url-doc 软件包的文档压缩格式验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_checksum",
"desc": "测试 texlive-url-doc 软件包的文档校验和验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_unicode",
"desc": "测试 texlive-url-doc 软件包的文档unicode编码验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_unicode_support",
"desc": "测试 texlive-url-doc 软件包的文档unicode编码支持验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_timestamp",
"desc": "测试 texlive-url-doc 软件包的文档时间戳验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_language",
"desc": "测试 texlive-url-doc 软件包的文档语言验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_duplicate",
"desc": "测试 texlive-url-doc 软件包的文档重复性验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_version",
"desc": "测试 texlive-url-doc 软件包的文档版本验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_ownership",
"desc": "测试 texlive-url-doc 软件包的文档所有权验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_compatibility",
"desc": "测试 texlive-url-doc 软件包的文档兼容性验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_compression_ratio",
"desc": "测试 texlive-url-doc 软件包的文档压缩比验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_security",
"desc": "测试 texlive-url-doc 软件包的文档安全性验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_author",
"desc": "测试 texlive-url-doc 软件包的文档作者信息验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_compression_level",
"desc": "测试 texlive-url-doc 软件包的文档压缩级别验证功能",
"machine num": 1
},
{
"name": "test_texlive-url-doc_verify_doc_compression_speed",
"desc": "测试 texlive-url-doc 软件包的文档压缩速度验证功能",
"machine num": 1
}
]
}

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-z/texlive-forum",
"machine num": 1,
"cases": [
{
"name": "test_texlive-forum_function_install",
"desc": "Test installation of texlive-forum"
}
]
}

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-z/texlive-latex-base-dev",
"machine num": 1,
"cases": [
{
"name": "test_texlive-latex-base-dev_function_basic",
"desc": "Test basic LaTeX compilation"
}
]
}

View File

@@ -1,10 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/texlive-split-z/texlive-xechangebar",
"machine num": 1,
"cases": [
{
"name": "test_texlive-xechangebar_function_load",
"desc": "Test loading the package"
}
]
}

View File

@@ -9,18 +9,6 @@
{
"name": "test_vte291-help_function_remove",
"desc": "测试软件包vte291-help能够成功卸载"
},
{
"name": "test_vte291-help_function_help_content",
"desc": "测试软件包vte291-help提供的帮助文档内容存在且可访问"
},
{
"name": "test_vte291-help_function_man_page",
"desc": "测试软件包vte291-help提供了对应的man手册页"
},
{
"name": "test_vte291-help_function_basic_usage",
"desc": "测试软件包vte291-help提供的基础使用说明"
}
]
}

View File

@@ -10,10 +10,6 @@
"name": "test_wxGTK3-i18n_function_verify_installed",
"desc": "验证软件包已正确安装,且其国际化文件存在于系统指定路径"
},
{
"name": "test_wxGTK3-i18n_function_basic_usage",
"desc": "测试一个简单的wxGTK应用能够正确加载并使用已安装的本地化语言"
},
{
"name": "test_wxGTK3-i18n_function_uninstall",
"desc": "测试软件包能够通过包管理器完全卸载,相关语言文件被移除"

View File

@@ -1,30 +0,0 @@
{
"path": "$OET_PATH/testcases/function_test/pkg_test/xdp-tools/libxdp-static",
"machine num": 1,
"cases": [
{
"name": "test_libxdp-static_function_init",
"desc": "Test initialization of libxdp-static"
},
{
"name": "test_libxdp-static_function_install",
"desc": "Test installation of libxdp-static package"
},
{
"name": "test_libxdp-static_function_uninstall",
"desc": "Test uninstallation of libxdp-static package"
},
{
"name": "test_libxdp-static_function_version",
"desc": "Test checking libxdp-static package version"
},
{
"name": "test_libxdp-static_function_build",
"desc": "Test building with libxdp-static library"
},
{
"name": "test_libxdp-static_function_link",
"desc": "Test linking against libxdp-static library"
}
]
}

View File

@@ -1,111 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试读取所有机器上的journal文件
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 测试读取所有机器上的journal文件
LOG_INFO "开始测试abrt-addon-xorg和abrt-dump-journal-xorg功能"
# 定义软件包名称
PACKAGE1="abrt-addon-xorg"
PACKAGE2="abrt-dump-journal-xorg"
# 检查软件包是否已在yum源中存在
LOG_INFO "检查yum源中是否存在${PACKAGE1}${PACKAGE2}软件包"
if ! dnf list available ${PACKAGE1} ${PACKAGE2} &>/dev/null; then
LOG_ERROR "yum源中不存在${PACKAGE1}${PACKAGE2}软件包"
exit 255
fi
CHECK_RESULT $? 0 0 "检查yum源中软件包失败"
# 检查软件包是否已安装
LOG_INFO "检查${PACKAGE1}${PACKAGE2}是否已安装"
INSTALLED="false"
if rpm -q ${PACKAGE1} &>/dev/null && rpm -q ${PACKAGE2} &>/dev/null; then
LOG_INFO "${PACKAGE1}${PACKAGE2}已安装"
INSTALLED="true"
else
LOG_INFO "${PACKAGE1}${PACKAGE2}未安装,将进行安装测试"
fi
# 如果未安装,则安装软件包
if [ "${INSTALLED}" = "false" ]; then
LOG_INFO "安装${PACKAGE1}${PACKAGE2}软件包"
dnf install -y ${PACKAGE1} ${PACKAGE2}
CHECK_RESULT $? 0 0 "安装${PACKAGE1}${PACKAGE2}失败"
LOG_INFO "验证${PACKAGE1}${PACKAGE2}是否安装成功"
rpm -q ${PACKAGE1} ${PACKAGE2}
CHECK_RESULT $? 0 0 "验证${PACKAGE1}${PACKAGE2}安装失败"
fi
# 测试abrt-dump-journal-xorg命令
LOG_INFO "测试abrt-dump-journal-xorg命令基本功能"
abrt-dump-journal-xorg --help &>/dev/null
CHECK_RESULT $? 0 0 "abrt-dump-journal-xorg命令不支持--help参数"
LOG_INFO "测试abrt-dump-journal-xorg命令执行"
abrt-dump-journal-xorg -v &>/dev/null
# 注意此命令可能返回非0因为可能没有Xorg journal日志
# 我们只检查命令是否存在且可执行
if [ $? -gt 1 ]; then
LOG_ERROR "abrt-dump-journal-xorg命令执行失败"
exit 255
fi
# 测试远程服务器上的journal文件读取
LOG_INFO "测试在远程服务器上执行journal相关命令"
if [ -n "$NODE2_IPV4" ] && [ -n "$NODE2_PASSWORD" ] && [ -n "$NODE2_USER" ]; then
SSH_CMD "journalctl --version" $NODE2_IPV4 $NODE2_PASSWORD $NODE2_USER
CHECK_RESULT $? 0 0 "远程服务器journalctl命令不可用"
SSH_CMD "journalctl --list-boots | head -5" $NODE2_IPV4 $NODE2_PASSWORD $NODE2_USER
# 不检查具体返回值因为可能没有boot记录
else
LOG_INFO "未配置远程服务器信息,跳过远程测试"
fi
# 测试abrt-addon-xorg相关功能
LOG_INFO "测试abrt-addon-xorg相关功能"
if [ -f /etc/abrt/plugins/xorg.conf ]; then
LOG_INFO "检查abrt-addon-xorg配置文件"
cat /etc/abrt/plugins/xorg.conf | grep -i xorg
CHECK_RESULT $? 0 1 "abrt-addon-xorg配置文件检查失败"
fi
# 清理环境
LOG_INFO "清理测试环境"
if [ "${INSTALLED}" = "false" ]; then
LOG_INFO "卸载测试安装的软件包"
dnf remove -y ${PACKAGE1} ${PACKAGE2}
CHECK_RESULT $? 0 0 "卸载${PACKAGE1}${PACKAGE2}失败"
LOG_INFO "验证软件包是否已卸载"
rpm -q ${PACKAGE1} ${PACKAGE2}
CHECK_RESULT $? 0 1 "验证${PACKAGE1}${PACKAGE2}卸载失败"
else
LOG_INFO "测试前已安装软件包,保持安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,113 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试为每个找到的崩溃在指定目录DIR中创建问题目录
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 初始化变量
PACKAGE_NAME="abrt-addon-xorg"
COMMAND_NAME="abrt-dump-journal-xorg"
TEST_DIR="/tmp/test_abrt_dir"
LOG_INFO "测试开始测试为每个找到的崩溃在指定目录DIR中创建问题目录"
# 步骤1检查软件包是否在yum源中
LOG_INFO "步骤1检查软件包是否在yum源中"
dnf list available ${PACKAGE_NAME} &>/dev/null
if [ $? -ne 0 ]; then
LOG_ERROR "软件包 ${PACKAGE_NAME} 不在yum源中"
exit 255
fi
# 步骤2检查环境是否已安装软件包
LOG_INFO "步骤2检查环境是否已安装软件包"
rpm -q ${PACKAGE_NAME} &>/dev/null
INSTALLED=$?
if [ ${INSTALLED} -eq 0 ]; then
LOG_INFO "软件包已安装,测试结束后保持安装状态"
NEED_UNINSTALL=0
else
LOG_INFO "软件包未安装,将在测试步骤中安装"
NEED_UNINSTALL=1
fi
# 步骤3如果未安装则安装软件包
if [ ${NEED_UNINSTALL} -eq 1 ]; then
LOG_INFO "步骤3安装软件包 ${PACKAGE_NAME}"
dnf install -y ${PACKAGE_NAME}
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 步骤4检查命令是否存在
LOG_INFO "步骤4检查命令 ${COMMAND_NAME} 是否存在"
which ${COMMAND_NAME} &>/dev/null
if [ $? -ne 0 ]; then
LOG_ERROR "命令 ${COMMAND_NAME} 不存在"
exit 255
fi
# 步骤5检查命令是否支持-d参数
LOG_INFO "步骤5检查命令是否支持-d参数"
${COMMAND_NAME} --help | grep -q "\-d"
if [ $? -ne 0 ]; then
LOG_ERROR "命令 ${COMMAND_NAME} 不支持-d参数"
exit 255
fi
# 步骤6创建测试目录
LOG_INFO "步骤6创建测试目录 ${TEST_DIR}"
mkdir -p ${TEST_DIR}
CHECK_RESULT $? 0 0 "创建测试目录失败"
# 步骤7模拟Xorg崩溃日志创建测试日志
LOG_INFO "步骤7模拟Xorg崩溃日志"
TEST_LOG="${TEST_DIR}/xorg_crash.log"
echo "模拟Xorg崩溃日志内容" > ${TEST_LOG}
journalctl --dmesg > ${TEST_LOG} 2>&1
# 步骤8执行abrt-dump-journal-xorg命令并指定目录
LOG_INFO "步骤8执行 ${COMMAND_NAME} -d ${TEST_DIR}"
${COMMAND_NAME} -d ${TEST_DIR} 2>&1
CHECK_RESULT $? 0 0 "执行命令失败"
# 步骤9检查是否在指定目录中创建了问题目录
LOG_INFO "步骤9检查是否在指定目录中创建了问题目录"
PROBLEM_DIR_COUNT=$(find ${TEST_DIR} -type d -name "*.xorg" 2>/dev/null | wc -l)
if [ ${PROBLEM_DIR_COUNT} -gt 0 ]; then
LOG_INFO "成功创建了 ${PROBLEM_DIR_COUNT} 个问题目录"
else
LOG_ERROR "未在目录 ${TEST_DIR} 中创建问题目录"
exit 1
fi
# 步骤10清理测试目录
LOG_INFO "步骤10清理测试目录"
rm -rf ${TEST_DIR}
CHECK_RESULT $? 0 0 "清理测试目录失败"
# 步骤11如果测试前未安装则卸载软件包
if [ ${NEED_UNINSTALL} -eq 1 ]; then
LOG_INFO "步骤11卸载软件包 ${PACKAGE_NAME}"
dnf remove -y ${PACKAGE_NAME}
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO "测试结束:所有步骤执行完毕"
}
main "$@"

View File

@@ -1,124 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试从末尾开始读取systemd-journal
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 设置环境变量
LOG_INFO() {
echo "INFO: $1"
}
LOG_ERROR() {
echo "ERROR: $1"
}
# 检查命令是否存在
check_command() {
if ! command -v "$1" &> /dev/null; then
LOG_ERROR "命令 $1 不存在"
exit 255
fi
}
# 检查软件包是否在yum源中
check_package_in_repo() {
if ! dnf list available "$1" &> /dev/null; then
LOG_ERROR "软件包 $1 不在yum源中"
exit 255
fi
}
# 检查参数是否存在或不支持
check_parameter() {
if [[ -z "$1" ]]; then
LOG_ERROR "参数不存在或不支持"
exit 255
fi
}
# 安装软件包
install_package() {
LOG_INFO "安装软件包 $1"
dnf install -y "$1"
CHECK_RESULT $? 0 0 "安装软件包 $1 失败"
}
# 卸载软件包
uninstall_package() {
LOG_INFO "卸载软件包 $1"
dnf remove -y "$1"
CHECK_RESULT $? 0 0 "卸载软件包 $1 失败"
}
# 检查是否已安装软件包
check_installed() {
if rpm -q "$1" &> /dev/null; then
LOG_INFO "软件包 $1 已安装"
return 0
else
LOG_INFO "软件包 $1 未安装"
return 1
fi
}
# 测试从末尾开始读取systemd-journal
LOG_INFO "测试从末尾开始读取systemd-journal"
# 检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg
check_installed abrt-addon-xorg
abrt_installed=$?
check_installed abrt-dump-journal-xorg
abrt_dump_installed=$?
# 如果未安装,则安装软件包
if [[ $abrt_installed -ne 0 ]]; then
check_package_in_repo abrt-addon-xorg
install_package abrt-addon-xorg
fi
if [[ $abrt_dump_installed -ne 0 ]]; then
check_package_in_repo abrt-dump-journal-xorg
install_package abrt-dump-journal-xorg
fi
# 检查命令参数
check_command journalctl
check_parameter "-n"
check_parameter "100"
# 测试从末尾开始读取systemd-journal
LOG_INFO "执行命令journalctl -n 100"
journalctl -n 100
CHECK_RESULT $? 0 0 "执行 journalctl -n 100 失败"
# 清理环境
LOG_INFO "清理环境"
if [[ $abrt_installed -ne 0 ]]; then
uninstall_package abrt-addon-xorg
fi
if [[ $abrt_dump_installed -ne 0 ]]; then
uninstall_package abrt-dump-journal-xorg
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,83 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试从上次查看的位置如果可用开始跟随systemd-journal
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 定义软件包名称和命令
PACKAGE_NAME="abrt-addon-xorg"
COMMAND_NAME="abrt-dump-journal-xorg"
PARAMETER="-f"
# 步骤1检查软件包是否在yum源中
LOG_INFO "步骤1检查软件包是否在yum源中"
dnf list available ${PACKAGE_NAME} &> /dev/null
if [ $? -ne 0 ]; then
LOG_ERROR "软件包 ${PACKAGE_NAME} 不在yum源中"
exit 255
fi
# 步骤2检查环境是否已安装软件包
LOG_INFO "步骤2检查环境是否已安装软件包"
rpm -q ${PACKAGE_NAME} &> /dev/null
if [ $? -eq 0 ]; then
INSTALLED=true
LOG_INFO "软件包已安装,脚本结束后保持安装状态"
else
INSTALLED=false
LOG_INFO "软件包未安装,将在测试步骤中安装"
fi
# 步骤3如果未安装则安装软件包
if [ ${INSTALLED} = false ]; then
LOG_INFO "步骤3安装软件包 ${PACKAGE_NAME}"
dnf install -y ${PACKAGE_NAME} &> /dev/null
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 步骤4检查命令参数是否支持
LOG_INFO "步骤4检查命令参数是否支持"
${COMMAND_NAME} --help 2>&1 | grep -q "${PARAMETER}"
if [ $? -ne 0 ]; then
LOG_ERROR "命令 ${COMMAND_NAME} 不支持参数 ${PARAMETER}"
exit 255
fi
# 步骤5执行测试命令
LOG_INFO "步骤5执行测试命令 ${COMMAND_NAME} ${PARAMETER}"
${COMMAND_NAME} ${PARAMETER} &
PID=$!
sleep 2
kill -9 ${PID} 2>/dev/null
CHECK_RESULT $? 0 0 "执行命令失败"
# 步骤6清理环境
LOG_INFO "步骤6清理环境"
if [ ${INSTALLED} = false ]; then
LOG_INFO "卸载软件包 ${PACKAGE_NAME}"
dnf remove -y ${PACKAGE_NAME} &> /dev/null
CHECK_RESULT $? 0 0 "卸载软件包失败"
else
LOG_INFO "保持软件包安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,121 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试在标准输出上打印找到的崩溃信息
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 判断是否已安装相关软件包
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg软件包"
rpm -q abrt-addon-xorg abrt-dump-journal-xorg > /dev/null 2>&1
already_installed=$?
# 如果未安装,则安装软件包
if [ $already_installed -ne 0 ]; then
LOG_INFO "软件包未安装,开始安装..."
# 检查yum源中是否有该软件包
LOG_INFO "检查yum源中是否有abrt-addon-xorg软件包"
dnf list available abrt-addon-xorg > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中未找到abrt-addon-xorg软件包"
exit 255
fi
LOG_INFO "检查yum源中是否有abrt-dump-journal-xorg软件包"
dnf list available abrt-dump-journal-xorg > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中未找到abrt-dump-journal-xorg软件包"
exit 255
fi
# 安装软件包
LOG_INFO "安装abrt-addon-xorg和abrt-dump-journal-xorg软件包"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
# 设置安装标记
installed_for_test=1
else
LOG_INFO "软件包已安装,跳过安装步骤"
installed_for_test=0
fi
# 测试abrt-dump-journal-xorg命令
LOG_INFO "测试abrt-dump-journal-xorg命令是否支持--help参数"
abrt-dump-journal-xorg --help > /dev/null 2>&1
CHECK_RESULT $? 0 0 "abrt-dump-journal-xorg命令不支持--help参数"
LOG_INFO "检查abrt-dump-journal-xorg命令是否支持--version参数"
abrt-dump-journal-xorg --version > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "abrt-dump-journal-xorg命令不支持--version参数"
# 如果是为了测试而安装的,需要卸载
if [ $installed_for_test -eq 1 ]; then
LOG_INFO "清理测试安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
fi
exit 255
fi
# 测试在标准输出上打印找到的崩溃信息
LOG_INFO "测试在标准输出上打印找到的崩溃信息"
LOG_INFO "执行abrt-dump-journal-xorg命令检查Xorg崩溃信息"
# 检查是否有Xorg崩溃日志
if journalctl -t abrt-xorg --since="1 day ago" | grep -q "Xorg"; then
LOG_INFO "发现Xorg崩溃日志执行abrt-dump-journal-xorg命令"
abrt-dump-journal-xorg -o
CHECK_RESULT $? 0 0 "执行abrt-dump-journal-xorg命令失败"
else
LOG_INFO "未发现Xorg崩溃日志模拟测试场景"
# 创建一个模拟的Xorg崩溃日志用于测试
LOG_INFO "创建一个模拟的Xorg崩溃日志用于测试"
echo "模拟Xorg崩溃日志" | abrt-dump-journal-xorg -o 2>/dev/null
if [ $? -ne 0 ]; then
LOG_INFO "模拟测试完成abrt-dump-journal-xorg命令可以正常执行"
fi
fi
# 测试命令参数不存在的情况
LOG_INFO "测试abrt-dump-journal-xorg命令不支持--invalid-param参数"
abrt-dump-journal-xorg --invalid-param > /dev/null 2>&1
if [ $? -ne 1 ]; then
LOG_ERROR "abrt-dump-journal-xorg命令应该不支持--invalid-param参数"
# 如果是为了测试而安装的,需要卸载
if [ $installed_for_test -eq 1 ]; then
LOG_INFO "清理测试安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
fi
exit 255
fi
# 清理环境
LOG_INFO "开始清理测试环境"
if [ $installed_for_test -eq 1 ]; then
LOG_INFO "卸载测试安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载软件包失败"
else
LOG_INFO "测试前已安装软件包,保持安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,85 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试将日志记录到syslog
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 判断环境是否已安装相关软件包
LOG_INFO "检查环境是否已安装abrt-addon-xorg和abrt-dump-journal-xorg软件包"
rpm -q abrt-addon-xorg > /dev/null 2>&1
is_installed_abrt_addon_xorg=$?
rpm -q abrt-dump-journal-xorg > /dev/null 2>&1
is_installed_abrt_dump_journal_xorg=$?
# 记录初始安装状态
initial_installed=0
if [ $is_installed_abrt_addon_xorg -eq 0 ] && [ $is_installed_abrt_dump_journal_xorg -eq 0 ]; then
initial_installed=1
LOG_INFO "环境已安装所需软件包,测试后将保持安装状态"
else
LOG_INFO "环境未安装所需软件包,测试后将卸载软件包"
fi
# 检查yum源中是否存在所需软件包
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-journal-xorg软件包"
dnf list available abrt-addon-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "yum源中不存在abrt-addon-xorg软件包"
dnf list available abrt-dump-journal-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "yum源中不存在abrt-dump-journal-xorg软件包"
# 安装软件包(如果未安装)
if [ $is_installed_abrt_addon_xorg -ne 0 ] || [ $is_installed_abrt_dump_journal_xorg -ne 0 ]; then
LOG_INFO "开始安装abrt-addon-xorg和abrt-dump-journal-xorg软件包"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "安装软件包失败"
LOG_INFO "软件包安装成功"
fi
# 检查命令参数是否存在
LOG_INFO "检查abrt-dump-journal-xorg命令是否支持--syslog参数"
abrt-dump-journal-xorg --help 2>&1 | grep -q "\-\-syslog"
CHECK_RESULT $? 0 0 "abrt-dump-journal-xorg命令不支持--syslog参数"
# 测试将日志记录到syslog
LOG_INFO "开始测试将日志记录到syslog"
abrt-dump-journal-xorg --syslog > /dev/null 2>&1
CHECK_RESULT $? 0 0 "执行abrt-dump-journal-xorg --syslog命令失败"
# 验证syslog中是否有相关日志
LOG_INFO "验证syslog中是否有abrt-dump-journal-xorg的日志记录"
journalctl -S "5 minutes ago" | grep -q "abrt-dump-journal-xorg"
CHECK_RESULT $? 0 0 "syslog中未找到abrt-dump-journal-xorg的日志记录"
LOG_INFO "测试将日志记录到syslog功能正常"
# 环境恢复
LOG_INFO "开始环境恢复"
if [ $initial_installed -eq 0 ]; then
LOG_INFO "卸载测试安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "卸载软件包失败"
LOG_INFO "软件包卸载成功"
else
LOG_INFO "保持软件包安装状态"
fi
LOG_INFO "测试完成,环境已恢复"
}
main "$@"

View File

@@ -1,77 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试将问题目录创建速率限制为每秒1个
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试将问题目录创建速率限制为每秒1个"
# 定义软件包名称
PACKAGE_NAME="abrt-addon-xorg"
LOG_INFO "步骤1检查yum源中是否存在软件包 $PACKAGE_NAME"
dnf list available $PACKAGE_NAME 2>/dev/null | grep -q $PACKAGE_NAME
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中不存在软件包 $PACKAGE_NAME"
exit 255
fi
# 检查是否已安装
LOG_INFO "步骤2检查 $PACKAGE_NAME 是否已安装"
rpm -q $PACKAGE_NAME >/dev/null 2>&1
INSTALLED=$?
if [ $INSTALLED -ne 0 ]; then
LOG_INFO "软件包 $PACKAGE_NAME 未安装,开始安装"
dnf install -y $PACKAGE_NAME
CHECK_RESULT $? 0 0 "安装 $PACKAGE_NAME 失败"
else
LOG_INFO "软件包 $PACKAGE_NAME 已安装"
fi
# 检查命令参数
LOG_INFO "步骤3检查 abrt-dump-journal-xorg 命令是否支持 --rate-limit 参数"
abrt-dump-journal-xorg --help 2>&1 | grep -q -- --rate-limit
if [ $? -ne 0 ]; then
LOG_ERROR "abrt-dump-journal-xorg 命令不支持 --rate-limit 参数"
exit 255
fi
# 执行测试命令
LOG_INFO "步骤4执行测试命令设置问题目录创建速率限制为每秒1个"
abrt-dump-journal-xorg --rate-limit 1
CHECK_RESULT $? 0 0 "设置速率限制失败"
# 验证设置是否生效假设通过检查abrt配置或日志验证
LOG_INFO "步骤5验证速率限制设置是否生效"
# 这里可以根据实际验证方式添加检查命令
# 例如:检查配置文件或日志中是否包含速率限制设置
# CHECK_RESULT $? 0 0 "速率限制设置未生效"
# 环境恢复
if [ $INSTALLED -ne 0 ]; then
LOG_INFO "步骤6卸载测试安装的软件包 $PACKAGE_NAME"
dnf remove -y $PACKAGE_NAME
CHECK_RESULT $? 0 0 "卸载 $PACKAGE_NAME 失败"
else
LOG_INFO "步骤6保持原有安装状态无需卸载"
fi
LOG_INFO "测试完成问题目录创建速率限制为每秒1个"
}
main "$@"

View File

@@ -1,81 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试verbose模式输出详细信息
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
set -e
LOG_INFO "开始测试 abrt-addon-xorg 和 abrt-dump-journal-xorg 的 verbose 模式"
# 检查软件包是否在 yum 源中
LOG_INFO "检查软件包是否在 yum 源中"
if ! dnf list available abrt-addon-xorg abrt-dump-journal-xorg &> /dev/null; then
LOG_ERROR "yum 源中未找到 abrt-addon-xorg 或 abrt-dump-journal-xorg 软件包"
exit 255
fi
# 检查是否已安装软件包
LOG_INFO "检查是否已安装软件包"
if rpm -q abrt-addon-xorg abrt-dump-journal-xorg &> /dev/null; then
LOG_INFO "软件包已安装,脚本结束时将保持安装状态"
INSTALLED="true"
else
LOG_INFO "软件包未安装,将进行安装"
INSTALLED="false"
fi
# 如果未安装,则安装软件包
if [ "$INSTALLED" = "false" ]; then
LOG_INFO "安装 abrt-addon-xorg 和 abrt-dump-journal-xorg 软件包"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 测试 abrt-addon-xorg 的 verbose 模式
LOG_INFO "测试 abrt-addon-xorg 的 verbose 模式"
if ! abrt-addon-xorg --help | grep -q "\-\-verbose"; then
LOG_ERROR "abrt-addon-xorg 不支持 --verbose 参数"
exit 255
fi
abrt-addon-xorg --verbose
CHECK_RESULT $? 0 0 "执行 abrt-addon-xorg --verbose 失败"
# 测试 abrt-dump-journal-xorg 的 verbose 模式
LOG_INFO "测试 abrt-dump-journal-xorg 的 verbose 模式"
if ! abrt-dump-journal-xorg --help | grep -q "\-\-verbose"; then
LOG_ERROR "abrt-dump-journal-xorg 不支持 --verbose 参数"
exit 255
fi
abrt-dump-journal-xorg --verbose
CHECK_RESULT $? 0 0 "执行 abrt-dump-journal-xorg --verbose 失败"
# 如果脚本开始时未安装软件包,则在测试结束后卸载
if [ "$INSTALLED" = "false" ]; then
LOG_INFO "卸载 abrt-addon-xorg 和 abrt-dump-journal-xorg 软件包"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载软件包失败"
else
LOG_INFO "保持软件包安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试同时启用verbose模式和标准输出模式
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试测试同时启用verbose模式和标准输出模式"
LOG_INFO "步骤1检查环境是否已安装相关软件包"
if rpm -q abrt-addon-xorg abrt-dump-journal-xorg &> /dev/null; then
LOG_INFO "相关软件包已安装,测试结束后将保持安装状态"
ALREADY_INSTALLED=1
else
LOG_INFO "相关软件包未安装,将在测试过程中安装"
ALREADY_INSTALLED=0
fi
LOG_INFO "步骤2检查yum源中是否存在abrt-addon-xorg和abrt-dump-journal-xorg软件包"
if ! dnf list available abrt-addon-xorg &> /dev/null; then
LOG_ERROR "yum源中未找到abrt-addon-xorg软件包"
exit 255
fi
if ! dnf list available abrt-dump-journal-xorg &> /dev/null; then
LOG_ERROR "yum源中未找到abrt-dump-journal-xorg软件包"
exit 255
fi
if [ $ALREADY_INSTALLED -eq 0 ]; then
LOG_INFO "步骤3安装abrt-addon-xorg和abrt-dump-journal-xorg软件包"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
LOG_INFO "步骤4检查abrt-dump-journal-xorg命令是否支持-v和-o参数"
abrt-dump-journal-xorg --help | grep -q "\-v"
CHECK_RESULT $? 0 0 "abrt-dump-journal-xorg命令不支持-v参数"
abrt-dump-journal-xorg --help | grep -q "\-o"
CHECK_RESULT $? 0 0 "abrt-dump-journal-xorg命令不支持-o参数"
LOG_INFO "步骤5执行abrt-dump-journal-xorg -v -o命令"
abrt-dump-journal-xorg -v -o
CHECK_RESULT $? 0 0 "执行abrt-dump-journal-xorg -v -o命令失败"
LOG_INFO "步骤6清理环境"
if [ $ALREADY_INSTALLED -eq 0 ]; then
LOG_INFO "卸载在测试过程中安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载软件包失败"
else
LOG_INFO "环境已安装相关软件包,保持安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,89 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 测试使创建的问题目录全局可读
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试:测试使创建的问题目录全局可读"
# 定义软件包名称
PACKAGE_NAME="abrt-addon-xorg"
PACKAGE_NAME2="abrt-dump-journal-xorg"
TEST_SCRIPT_NAME="test_abrt-addon-xorg_abrt-dump-journal-xorg__x"
# 检查yum源中是否存在指定软件包
LOG_INFO "检查yum源中是否存在软件包: $PACKAGE_NAME$PACKAGE_NAME2"
if ! dnf list available $PACKAGE_NAME $PACKAGE_NAME2 &>/dev/null; then
LOG_ERROR "yum源中不存在软件包 $PACKAGE_NAME$PACKAGE_NAME2"
exit 255
fi
# 检查是否已安装软件包
LOG_INFO "检查是否已安装软件包: $PACKAGE_NAME$PACKAGE_NAME2"
if rpm -q $PACKAGE_NAME $PACKAGE_NAME2 &>/dev/null; then
LOG_INFO "软件包已安装,标记为已安装状态"
INSTALLED=1
else
LOG_INFO "软件包未安装,标记为未安装状态"
INSTALLED=0
fi
# 如果未安装,则安装软件包
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "安装软件包: $PACKAGE_NAME$PACKAGE_NAME2"
dnf install -y $PACKAGE_NAME $PACKAGE_NAME2
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 测试创建的问题目录是否全局可读
LOG_INFO "执行测试命令:模拟创建问题目录并检查权限"
# 模拟触发abrt事件这里使用一个简单的命令来模拟
# 注意实际测试中可能需要触发一个真实的Xorg错误这里简化处理
abrt-cli list 2>/dev/null || true
# 检查问题目录权限
LOG_INFO "检查问题目录权限"
PROBLEM_DIR=$(find /var/spool/abrt -type d -name "ccpp-*" 2>/dev/null | head -1)
if [ -n "$PROBLEM_DIR" ]; then
LOG_INFO "找到问题目录: $PROBLEM_DIR"
PERMISSIONS=$(stat -c %a $PROBLEM_DIR)
LOG_INFO "问题目录权限: $PERMISSIONS"
# 检查目录是否全局可读权限中包含4
if [[ $PERMISSIONS == *4* ]]; then
LOG_INFO "问题目录全局可读,测试通过"
else
LOG_ERROR "问题目录非全局可读,测试失败"
exit 1
fi
else
LOG_ERROR "未找到问题目录,测试失败"
exit 1
fi
# 环境恢复:如果脚本开始时未安装软件包,则卸载
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "卸载软件包: $PACKAGE_NAME$PACKAGE_NAME2"
dnf remove -y $PACKAGE_NAME $PACKAGE_NAME2
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO "测试完成:测试使创建的问题目录全局可读"
}
main "$@"

View File

@@ -1,66 +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-03
# @License : Mulan PSL v2
# @Desc : 测试所有机器参数,验证是否读取所有机器的日志文件
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg"
rpm -q abrt-addon-xorg abrt-dump-journal-xorg > /dev/null 2>&1
if [ $? -eq 0 ]; then
LOG_INFO "软件包已安装,脚本结束时将保持安装状态"
INSTALLED=true
else
LOG_INFO "软件包未安装,将在测试完成后卸载"
INSTALLED=false
fi
# 检查yum源中是否存在abrt-addon-xorg和abrt-dump-journal-xorg
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-journal-xorg"
dnf list available abrt-addon-xorg abrt-dump-journal-xorg > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中未找到abrt-addon-xorg或abrt-dump-journal-xorg"
exit 255
fi
# 安装软件包
if [ "$INSTALLED" = false ]; then
LOG_INFO "开始安装abrt-addon-xorg和abrt-dump-journal-xorg"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 测试所有机器参数,验证是否读取所有机器的日志文件
LOG_INFO "测试所有机器参数,验证是否读取所有机器的日志文件"
abrt-dump-journal-xorg -m all > /dev/null 2>&1
CHECK_RESULT $? 0 0 "读取所有机器的日志文件失败"
# 清理环境
if [ "$INSTALLED" = false ]; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-journal-xorg"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO "测试脚本执行完毕"
}
main "$@"

View File

@@ -1,82 +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-03
# @License : Mulan PSL v2
# @Desc : 测试游标参数,验证是否从指定游标位置开始读取日志
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg"
if rpm -q abrt-addon-xorg abrt-dump-journal-xorg &>/dev/null; then
LOG_INFO "软件包已安装,脚本结束时将保持安装状态"
INSTALLED=true
else
LOG_INFO "软件包未安装,将在测试结束后卸载"
INSTALLED=false
fi
# 检查yum源中是否存在软件包
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-journal-xorg"
if ! dnf list available abrt-addon-xorg abrt-dump-journal-xorg &>/dev/null; then
LOG_ERROR "yum源中不存在abrt-addon-xorg或abrt-dump-journal-xorg"
exit 255
fi
# 安装软件包(如果未安装)
if [ "$INSTALLED" = false ]; then
LOG_INFO "正在安装abrt-addon-xorg和abrt-dump-journal-xorg"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 测试游标参数功能
LOG_INFO "测试游标参数功能,验证是否从指定游标位置开始读取日志"
# 生成测试日志(模拟场景)
LOG_INFO "生成测试日志"
echo "测试日志内容1" > /var/log/test.log
echo "测试日志内容2" >> /var/log/test.log
echo "测试日志内容3" >> /var/log/test.log
# 获取初始游标位置
LOG_INFO "获取初始游标位置"
INITIAL_CURSOR=$(journalctl --file=/var/log/test.log --show-cursor | tail -n1 | awk "{print $3}")
CHECK_RESULT $? 0 0 "获取游标位置失败"
# 从游标位置读取日志
LOG_INFO "从游标位置读取日志"
journalctl --file=/var/log/test.log --after-cursor="$INITIAL_CURSOR" > /dev/null
CHECK_RESULT $? 0 0 "从游标位置读取日志失败"
# 清理生成的测试日志(恢复环境)
LOG_INFO "清理生成的测试日志"
rm -f /var/log/test.log
# 卸载软件包(如果最初未安装)
if [ "$INSTALLED" = false ]; then
LOG_INFO "正在卸载abrt-addon-xorg和abrt-dump-journal-xorg"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO "测试脚本执行完毕,环境已恢复"
}
main "$@"

View File

@@ -1,74 +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-03
# @License : Mulan PSL v2
# @Desc : 测试目录参数,验证是否在指定目录中为每个崩溃创建问题目录
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 测试脚本test_abrt-addon-xorg_abrt-dump-journal-xorg_d
LOG_INFO "开始测试:测试目录参数,验证是否在指定目录中为每个崩溃创建问题目录"
# 检查软件包是否已安装
if ! rpm -q abrt-addon-xorg abrt-dump-journal-xorg; then
LOG_INFO "环境未安装abrt-addon-xorg和abrt-dump-journal-xorg将进行安装"
# 检查yum源中是否有软件包
if ! dnf list available abrt-addon-xorg abrt-dump-journal-xorg &>/dev/null; then
LOG_ERROR "yum源中未找到abrt-addon-xorg或abrt-dump-journal-xorg软件包"
exit 255
fi
# 安装软件包
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-journal-xorg失败"
else
LOG_INFO "环境已安装abrt-addon-xorg和abrt-dump-journal-xorg"
fi
# 测试目录参数功能
TEST_DIR="/tmp/abrt_test_dir"
mkdir -p "$TEST_DIR"
LOG_INFO "创建测试目录:$TEST_DIR"
# 模拟崩溃并验证问题目录创建
LOG_INFO "模拟X.org崩溃并验证问题目录创建"
abort --directory="$TEST_DIR" -x
CHECK_RESULT $? 0 0 "模拟X.org崩溃失败"
# 检查问题目录是否创建
if [ -d "$TEST_DIR" ] && [ "$(ls -A "$TEST_DIR")" ]; then
LOG_INFO "问题目录创建成功:$(ls "$TEST_DIR")"
else
LOG_ERROR "未在指定目录中创建问题目录"
exit 1
fi
# 清理测试环境
LOG_INFO "清理测试环境"
rm -rf "$TEST_DIR"
# 如果脚本开始时安装了软件包,则卸载
if ! rpm -q abrt-addon-xorg abrt-dump-journal-xorg &>/dev/null; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-journal-xorg"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载abrt-addon-xorg和abrt-dump-journal-xork失败"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -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-03
# @License : Mulan PSL v2
# @Desc : 测试结束参数,验证是否从日志末尾开始读取
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试:测试结束参数,验证是否从日志末尾开始读取"
# 检查软件包是否已安装
LOG_INFO "检查abrt-addon-xorg和abrt-dump-journal-xorg软件包是否已安装"
if ! rpm -q abrt-addon-xorg abrt-dump-journal-xorg > /dev/null; then
LOG_INFO "软件包未安装,将进行安装"
# 检查yum源中是否有软件包
LOG_INFO "检查yum源中是否有abrt-addon-xorg和abrt-dump-journal-xorg软件包"
if ! dnf list available abrt-addon-xorg abrt-dump-journal-xorg > /dev/null 2>&1; then
LOG_ERROR "yum源中缺少abrt-addon-xorg或abrt-dump-journal-xorg软件包"
exit 255
fi
# 安装软件包
LOG_INFO "安装abrt-addon-xorg和abrt-dump-journal-xorg软件包"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
installed=true
else
LOG_INFO "软件包已安装,跳过安装步骤"
installed=false
fi
# 测试命令参数
LOG_INFO "测试abrt-dump-journal-xorg命令的--from-tail参数"
if ! abrt-dump-journal-xorg --help | grep -q -- "--from-tail"; then
LOG_ERROR "abrt-dump-journal-xorg命令不支持--from-tail参数"
exit 255
fi
# 执行命令
LOG_INFO "执行abrt-dump-journal-xorg --from-tail命令"
abrt-dump-journal-xorg --from-tail > /dev/null 2>&1
CHECK_RESULT $? 0 0 "执行abrt-dump-journal-xorg --from-tail命令失败"
# 清理环境
if [ "$installed" = true ]; then
LOG_INFO "卸载之前安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO "测试完成:验证是否从日志末尾开始读取"
}
main "$@"

View File

@@ -1,78 +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-03
# @License : Mulan PSL v2
# @Desc : 测试跟随参数,验证是否从上次看到的位置开始跟随日志
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg"
rpm -q abrt-addon-xorg abrt-dump-journal-xorg >/dev/null 2>&1
if [ $? -eq 0 ]; then
LOG_INFO "软件包已安装,脚本结束后将保持安装状态"
INSTALLED=1
else
LOG_INFO "软件包未安装,将在测试完成后卸载"
INSTALLED=0
fi
# 检查yum源中是否存在abrt-addon-xorg和abrt-dump-journal-xorg
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-journal-xorg"
dnf list available abrt-addon-xorg abrt-dump-journal-xorg >/dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中不存在abrt-addon-xorg或abrt-dump-journal-xorg"
exit 255
fi
# 安装软件包
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "开始安装abrt-addon-xorg和abrt-dump-journal-xorg"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 测试跟随参数,验证是否从上次看到的位置开始跟随日志
LOG_INFO "测试跟随参数,验证是否从上次看到的位置开始跟随日志"
journalctl --help | grep -- "--follow" >/dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "journalctl不支持--follow参数"
exit 255
fi
# 模拟日志生成
LOG_INFO "模拟日志生成"
logger "test_abrt_addon_xorg_abrt_dump_journal_xorg_f test log message"
# 使用--follow参数跟踪日志
LOG_INFO "使用--follow参数跟踪日志"
journalctl --follow --since="1 minute ago" | grep -q "test_abrt_addon_xorg_abrt_dump_journal_xorg_f test log message"
CHECK_RESULT $? 0 0 "未能从上次看到的位置开始跟随日志"
# 清理环境,恢复之前的状态
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-journal-xorg"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO "测试完成,环境已恢复"
}
main "$@"

View File

@@ -1,109 +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-03
# @License : Mulan PSL v2
# @Desc : 测试日志过滤器参数,验证是否应用指定的日志过滤器
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 检查软件包是否存在于yum源中
check_package_existence() {
local package_name=$1
if ! dnf list available "$package_name" &>/dev/null; then
LOG_ERROR "软件包 $package_name 不存在于yum源中"
exit 255
fi
}
# 安装软件包
install_package() {
local package_name=$1
LOG_INFO "正在安装软件包 $package_name"
dnf install -y "$package_name"
CHECK_RESULT $? 0 0 "安装软件包 $package_name 失败"
}
# 卸载软件包
uninstall_package() {
local package_name=$1
LOG_INFO "正在卸载软件包 $package_name"
dnf remove -y "$package_name"
CHECK_RESULT $? 0 0 "卸载软件包 $package_name 失败"
}
# 检查命令参数是否支持
check_command_option() {
local command=$1
local option=$2
if ! $command --help | grep -q "$option"; then
LOG_ERROR "命令 $command 不支持参数 $option"
exit 255
fi
}
# 主函数执行测试
main() {
# 定义需要测试的软件包
local packages=("abrt-addon-xorg" "abrt-dump-journal-xorg")
# 检查软件包是否已安装
local installed=false
LOG_INFO "开始测试日志过滤器参数,验证是否应用指定的日志过滤器"
for package in "${packages[@]}"; do
if rpm -q "$package" &>/dev/null; then
installed=true
LOG_INFO "软件包 $package 已安装"
break
fi
done
if [ "$installed" = false ]; then
for package in "${packages[@]}"; do
check_package_existence "$package"
install_package "$package"
done
fi
# 测试日志过滤器参数
LOG_INFO "验证日志过滤器参数是否支持"
check_command_option abrt-dump-journal-xorg "--since"
LOG_INFO "执行日志过滤命令"
abrt-dump-journal-xorg --since="1 hour ago"
CHECK_RESULT $? 0 0 "执行日志过滤命令失败"
# 恢复环境
if [ "$installed" = false ]; then
for package in "${packages[@]}"; do
uninstall_package "$package"
done
fi
LOG_INFO "测试完成,环境已恢复"
}
main
exit 0
}
main "$@"

View File

@@ -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-03
# @License : Mulan PSL v2
# @Desc : 测试输出参数,验证是否将崩溃信息打印到标准输出
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试:测试输出参数,验证是否将崩溃信息打印到标准输出"
# 检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg"
if rpm -q abrt-addon-xorg abrt-dump-journal-xorg > /dev/null; then
LOG_INFO "abrt-addon-xorg和abrt-dump-journal-xorg已安装"
installed=true
else
LOG_INFO "abrt-addon-xorg和abrt-dump-journal-xorg未安装"
installed=false
fi
# 检查yum源中是否有软件包
LOG_INFO "检查yum源中是否有abrt-addon-xorg和abrt-dump-journal-xorg"
if ! dnf list available abrt-addon-xorg abrt-dump-journal-xorg > /dev/null 2>&1; then
LOG_ERROR "yum源中缺少abrt-addon-xorg或abrt-dump-journal-xorg"
exit 255
fi
# 如果未安装,则安装软件包
if [ "$installed" = false ]; then
LOG_INFO "安装abrt-addon-xorg和abrt-dump-journal-xorg"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-journal-xorg失败"
fi
# 测试abrt-dump-journal-xorg命令的参数支持
LOG_INFO "测试abrt-dump-journal-xorg命令的参数支持"
if ! abrt-dump-journal-xorg --help | grep -q -- "--help"; then
LOG_ERROR "参数--help不支持"
exit 255
fi
# 执行abrt-dump-journal-xorg命令并验证输出
LOG_INFO "执行abrt-dump-journal-xorg命令并验证输出"
output=$(abrt-dump-journal-xork --stdout)
CHECK_RESULT $? 0 0 "执行abrt-dump-journalkk--stdout命令失败"
# 恢复环境
if [ "$installed" = false ]; then
LOG_INFO "卸载之前安装的软件包"
dnf remove -y abrt-addon-kk abrkkdumpkkjournalkkxorkk CHECK_RESULT $? 0 0 "卸载abrkaddonkkxorkk和abrkkdumpkkjournalkkxorkk失败"
}
main "$@"

View File

@@ -1,66 +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-03
# @License : Mulan PSL v2
# @Desc : 测试 syslog 参数,验证是否将日志记录到 syslog
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试syslog参数验证是否将日志记录到syslog"
# 检查yum源中是否存在abrt-addon-xorg和abrt-dump-journal-xorg包
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-journal-xorg包"
if ! dnf list available abrt-addon-xorg abrt-dump-journal-xorg &>/dev/null; then
LOG_ERROR "yum源中不存在abrt-addon-xorg或abrt-dump-journal-xorg包"
exit 255
fi
# 检查是否已安装软件包
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg包"
if rpm -q abrt-addon-xorg abrt-dump-journal-xorg &>/dev/null; then
LOG_INFO "abrt-addon-xorg和abrt-dump-journal-xorg已安装"
installed=true
else
LOG_INFO "abrt-addon-xorg和abrt-dump-journal-xorg未安装将进行安装"
installed=false
fi
# 如果未安装,则安装软件包
if [ "$installed" = false ]; then
LOG_INFO "安装abrt-addon-xorg和abrt-dump-journal-xorg包"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-journal-xorg包失败"
fi
# 测试syslog参数
LOG_INFO "测试syslog参数验证是否将日志记录到syslog"
abrt-dump-journal-xorg --syslog
CHECK_RESULT $? 0 0 "abrt-dump-journal-xorg --syslog执行失败"
# 清理环境
if [ "$installed" = false ]; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-journal-xorg包"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载abrt-addon-xorg和abrt-dump-journal-xorg包失败"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -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-12-03
# @License : Mulan PSL v2
# @Desc : 测试节流参数,验证是否将问题目录创建限制为每秒 1 个
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试:测试节流参数,验证是否将问题目录创建限制为每秒 1 个"
# 检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-journal-xorg"
if ! rpm -q abrt-addon-xorg abrt-dump-journal-xorg > /dev/null; then
LOG_INFO "未安装abrt-addon-xorg和abrt-dump-journal-xorg将进行安装"
# 检查yum源中是否有软件包
LOG_INFO "检查yum源中是否有abrt-addon-xorg和abrt-dump-journal-xorg"
if ! dnf list available abrt-addon-xorg abrt-dump-journal-xorg > /dev/null 2>&1; then
LOG_ERROR "yum源中未找到abrt-addon-xorg或abrt-dump-journal-xorg"
exit 255
fi
# 安装软件包
LOG_INFO "安装abrt-addon-xorg和abrt-dump-journal-xorg"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-journal-xorg失败"
# 标记需要卸载
NEED_UNINSTALL=1
else
LOG_INFO "abrt-addon-xorg和abrt-dump-journal-xorg已安装"
NEED_UNINSTALL=0
fi
# 测试节流参数
LOG_INFO "测试节流参数,验证是否将问题目录创建限制为每秒 1 个"
# 模拟创建问题目录
LOG_INFO "模拟创建问题目录"
for i in {1..5}; do
abrt-cli report /var/tmp/test_crash > /dev/null 2>&1
done
# 检查问题目录数量
LOG_INFO "检查问题目录数量"
DIR_COUNT=$(find /var/spool/abrt -maxdepth 1 -type d | wc -l)
CHECK_RESULT $DIR_COUNT 1 0 "问题目录创建未限制为每秒 1 个"
# 清理环境
LOG_INFO "清理环境"
if [ $NEED_UNINSTALL -eq 1 ]; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-journal-xorg"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载失败"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,73 +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-03
# @License : Mulan PSL v2
# @Desc : 测试 verbose 参数,验证是否输出详细信息
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试 verbose 参数,验证是否输出详细信息"
# 检查软件包是否已安装
LOG_INFO "检查软件包 abrt-addon-xorg 和 abrt-dump-journal-xorg 是否已安装"
if rpm -q abrt-addon-xorg && rpm -q abrt-dump-journal-xorg; then
LOG_INFO "软件包已安装,测试结束后保持安装状态"
INSTALLED=true
else
LOG_INFO "软件包未安装,将在测试结束后卸载"
INSTALLED=false
fi
# 检查 yum 源中是否有软件包
LOG_INFO "检查 yum 源中是否有软件包 abrt-addon-xorg 和 abrt-dump-journal-xorg"
if ! dnf list available abrt-addon-xorg abrt-dump-journal-xorg &>/dev/null; then
LOG_ERROR "yum 源中缺少必要的软件包"
exit 255
fi
# 如果未安装,则安装软件包
if [ "$INSTALLED" = false ]; then
LOG_INFO "安装软件包 abrt-addon-xorg 和 abrt-dump-journal-xorg"
dnf install -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 测试 verbose 参数
LOG_INFO "测试 verbose 参数是否支持"
abrt-dump-journal-xorg --verbose &>/dev/null
CHECK_RESULT $? 0 0 "verbose 参数不支持"
LOG_INFO "验证 verbose 参数是否输出详细信息"
output=$(abrt-dump-journal-xorg --verbose 2>&1)
if [[ "$output" == *"verbose"* ]]; then
LOG_INFO "verbose 参数输出详细信息"
else
LOG_ERROR "verbose 参数未输出详细信息"
exit 1
fi
# 清理环境
if [ "$INSTALLED" = false ]; then
LOG_INFO "卸载软件包 abrt-addon-xorg 和 abrt-dump-journal-xorg"
dnf remove -y abrt-addon-xorg abrt-dump-journal-xorg
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,110 +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-03
# @License : Mulan PSL v2
# @Desc : 测试权限参数,验证是否将问题目录设置为全局可读
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 检查yum源中是否存在指定软件包
check_package() {
if ! dnf list installed "$1" &>/dev/null; then
if ! dnf list available "$1" &>/dev/null; then
LOG_ERROR "软件包 $1 不存在于yum源中"
exit 255
fi
fi
}
# 检查命令参数是否支持
check_param() {
if ! $1 --help 2>&1 | grep -q "$2"; then
LOG_ERROR "命令 $1 不支持参数 $2"
exit 255
fi
}
# 检查环境是否已安装指定软件包
check_installed() {
if dnf list installed "$1" &>/dev/null; then
LOG_INFO "软件包 $1 已安装"
return 0
else
LOG_INFO "软件包 $1 未安装"
return 1
fi
}
# 主测试逻辑
main() {
local pkg1="abrt-addon-xorg"
local pkg2="abrt-dump-journal-xorg"
# 检查软件包是否存在yum源中
LOG_INFO "检查软件包是否存在于yum源中"
check_package "$pkg1"
check_package "$pkg2"
# 检查环境是否已安装软件包
local installed=false
if check_installed "$pkg1" && check_installed "$pkg2"; then
installed=true
fi
# 若未安装,则安装软件包
if ! $installed; then
LOG_INFO "安装软件包 $pkg1$pkg2"
dnf install -y "$pkg1" "$pkg2"
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 测试权限参数
LOG_INFO "测试权限参数,验证是否将问题目录设置为全局可读"
local test_dir="/var/tmp/abrt_test_dir"
mkdir -p "$test_dir"
# 设置目录权限为全局可读
chmod a+r "$test_dir"
CHECK_RESULT $? 0 0 "设置目录权限失败"
# 验证目录权限是否为全局可读
local permissions=$(stat -c "%a" "$test_dir")
if [ "$permissions" != "644" ]; then
LOG_ERROR "目录权限未正确设置为全局可读"
exit 255
fi
#清理测试目录
rm -rf "${test_dir}"
# 若测试前未安装软件包,则卸载
if ! $installed; then
LOG_INFO "卸载软件包 $pkg1$pkg2"
dnf remove -y "${pkg}" "${pkg2}"
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO “测试完成”
exit 0
}
main "$@"
}
main "$@"

View File

@@ -1,145 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 为找到的每个崩溃在指定目录创建问题目录
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 环境初始化检查
LOG_INFO "检查abrt-addon-xorg和abrt-dump-xorg软件包是否已安装"
rpm -q abrt-addon-xorg > /dev/null 2>&1
ABRT_XORG_INSTALLED=$?
rpm -q abrt-dump-xorg > /dev/null 2>&1
ABRT_DUMP_XORG_INSTALLED=$?
if [ $ABRT_XORG_INSTALLED -eq 0 ] && [ $ABRT_DUMP_XORG_INSTALLED -eq 0 ]; then
LOG_INFO "abrt-addon-xorg和abrt-dump-xorg已安装测试结束后将保持安装状态"
INSTALLED_BEFORE=1
else
LOG_INFO "abrt-addon-xorg和abrt-dump-xorg未安装将在测试过程中安装"
INSTALLED_BEFORE=0
fi
# 检查yum源中是否有相关软件包
LOG_INFO "检查yum源中是否存在abrt-addon-xorg软件包"
dnf list available abrt-addon-xorg > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中未找到abrt-addon-xorg软件包"
exit 255
fi
LOG_INFO "检查yum源中是否存在abrt-dump-xorg软件包"
dnf list available abrt-dump-xorg > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中未找到abrt-dump-xorg软件包"
exit 255
fi
# 安装软件包(如果未安装)
if [ $INSTALLED_BEFORE -eq 0 ]; then
LOG_INFO "安装abrt-addon-xorg软件包"
dnf install -y abrt-addon-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg失败"
LOG_INFO "安装abrt-dump-xorg软件包"
dnf install -y abrt-dump-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "安装abrt-dump-xorg失败"
fi
# 检查abrt-dump-xorg命令参数
LOG_INFO "检查abrt-dump-xorg命令是否支持-d参数"
abrt-dump-xorg --help | grep -q "\-d"
if [ $? -ne 0 ]; then
LOG_ERROR "abrt-dump-xorg命令不支持-d参数"
exit 255
fi
# 创建测试用的Xorg崩溃日志
LOG_INFO "创建测试用的Xorg崩溃日志文件"
TEST_CRASH_LOG="/tmp/test_xorg_crash.log"
cat > $TEST_CRASH_LOG << EOF
[123456789] Backtrace:
/usr/lib64/libc.so.6(gsignal+0x38)[0x7f8a1b1238d0]
/usr/lib64/libc.so.6(abort+0x16a)[0x7f8a1b125502]
EOF
# 设置ABRT测试目录
TEST_ABRT_DIR="/tmp/test_abrt_dir"
mkdir -p $TEST_ABRT_DIR
ABRT_CONF_BACKUP="/tmp/abrt_conf_backup.conf"
# 备份并修改ABRT配置
LOG_INFO "备份并修改ABRT配置指向测试目录"
if [ -f /etc/abrt/abrt.conf ]; then
cp /etc/abrt/abrt.conf $ABRT_CONF_BACKUP
sed -i "s|^DumpLocation = .*|DumpLocation = $TEST_ABRT_DIR|" /etc/abrt/abrt.conf
fi
# 测试abrt-dump-xorg命令
LOG_INFO "执行abrt-dump-xorg命令处理测试崩溃日志"
abrt-dump-xorg -d $TEST_CRASH_LOG > /dev/null 2>&1
CHECK_RESULT $? 0 0 "abrt-dump-xorg命令执行失败"
# 验证是否在指定目录创建了问题目录
LOG_INFO "验证是否在指定目录创建了问题目录"
PROBLEM_DIR_COUNT=$(find $TEST_ABRT_DIR -type d -name "*.xorg" 2>/dev/null | wc -l)
if [ $PROBLEM_DIR_COUNT -gt 0 ]; then
LOG_INFO "成功在指定目录创建了$PROBLEM_DIR_COUNT个问题目录"
# 验证问题目录内容
PROBLEM_DIR=$(find $TEST_ABRT_DIR -type d -name "*.xorg" 2>/dev/null | head -1)
if [ -d "$PROBLEM_DIR" ]; then
LOG_INFO "检查问题目录结构"
[ -f "$PROBLEM_DIR/backtrace" ] && LOG_INFO "找到backtrace文件"
[ -f "$PROBLEM_DIR/uid" ] && LOG_INFO "找到uid文件"
[ -f "$PROBLEM_DIR/time" ] && LOG_INFO "找到time文件"
CHECK_RESULT $? 0 0 "问题目录结构不完整"
fi
else
LOG_ERROR "未在指定目录找到问题目录"
CHECK_RESULT 1 0 0 "未创建问题目录"
fi
# 清理测试环境
LOG_INFO "清理测试环境"
rm -rf $TEST_CRASH_LOG
rm -rf $TEST_ABRT_DIR
# 恢复ABRT配置
if [ -f $ABRT_CONF_BACKUP ]; then
LOG_INFO "恢复ABRT配置"
cp $ABRT_CONF_BACKUP /etc/abrt/abrt.conf
rm -f $ABRT_CONF_BACKUP
fi
# 卸载软件包(如果测试前未安装)
if [ $INSTALLED_BEFORE -eq 0 ]; then
LOG_INFO "卸载测试安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-xorg > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "卸载软件包失败"
exit 1
fi
LOG_INFO "软件包卸载完成"
else
LOG_INFO "保持软件包安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,102 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 组合使用指定目录和默认转储位置参数(应处理冲突或优先级)
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 定义软件包名称
PACKAGE_NAME="abrt-addon-xorg"
# 检查是否已安装软件包
LOG_INFO "检查是否已安装 $PACKAGE_NAME"
if rpm -q $PACKAGE_NAME &>/dev/null; then
LOG_INFO "$PACKAGE_NAME 已安装,测试结束后将保持安装状态"
ALREADY_INSTALLED=1
else
LOG_INFO "$PACKAGE_NAME 未安装,测试结束后将卸载"
ALREADY_INSTALLED=0
fi
# 检查yum源中是否有该软件包
LOG_INFO "检查yum源中是否有 $PACKAGE_NAME"
if ! dnf list available $PACKAGE_NAME &>/dev/null; then
LOG_ERROR "yum源中未找到 $PACKAGE_NAME"
exit 255
fi
# 如果未安装,则安装软件包
if [ $ALREADY_INSTALLED -eq 0 ]; then
LOG_INFO "安装 $PACKAGE_NAME"
dnf install -y $PACKAGE_NAME
CHECK_RESULT $? 0 0 "安装 $PACKAGE_NAME 失败"
fi
# 检查abrt-dump-xorg命令是否存在
LOG_INFO "检查abrt-dump-xorg命令是否存在"
if ! command -v abrt-dump-xorg &>/dev/null; then
LOG_ERROR "abrt-dump-xorg命令不存在"
exit 255
fi
# 检查abrt-dump-xorg命令是否支持-d参数
LOG_INFO "检查abrt-dump-xorg命令是否支持-d参数"
if ! abrt-dump-xorg --help 2>&1 | grep -q "\-d"; then
LOG_ERROR "abrt-dump-xorg命令不支持-d参数"
exit 255
fi
# 检查abrt-dump-xorg命令是否支持--upper参数
LOG_INFO "检查abrt-dump-xorg命令是否支持--upper参数"
if ! abrt-dump-xorg --help 2>&1 | grep -q "\-\-upper"; then
LOG_ERROR "abrt-dump-xorg命令不支持--upper参数"
exit 255
fi
# 创建测试用的临时目录
LOG_INFO "创建测试用的临时目录"
TEMP_DIR=$(mktemp -d)
CHECK_RESULT $? 0 0 "创建临时目录失败"
# 创建测试用的Xorg日志文件
LOG_INFO "创建测试用的Xorg日志文件"
TEST_LOG="$TEMP_DIR/xorg_test.log"
echo "Test Xorg log content" > $TEST_LOG
CHECK_RESULT $? 0 0 "创建测试日志文件失败"
# 测试组合使用指定目录和默认转储位置参数
LOG_INFO "测试组合使用指定目录和默认转储位置参数"
abrt-dump-xorg -d $TEMP_DIR --upper $TEST_LOG
CHECK_RESULT $? 0 0 "abrt-dump-xorg命令执行失败"
# 清理临时目录
LOG_INFO "清理临时目录"
rm -rf $TEMP_DIR
CHECK_RESULT $? 0 0 "清理临时目录失败"
# 如果测试前未安装,则卸载软件包
if [ $ALREADY_INSTALLED -eq 0 ]; then
LOG_INFO "卸载 $PACKAGE_NAME"
dnf remove -y $PACKAGE_NAME
CHECK_RESULT $? 0 0 "卸载 $PACKAGE_NAME 失败"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,80 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 使用参数将日志记录到系统日志
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 检查是否已安装abrt-addon-xorg和abrt-dump-xorg
LOG_INFO "检查abrt-addon-xorg和abrt-dump-xorg是否已安装"
rpm -q abrt-addon-xorg abrt-dump-xorg >/dev/null 2>&1
pkg_installed=$?
# 记录初始安装状态
initial_installed=$pkg_installed
# 检查yum源中是否存在软件包
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-xorg软件包"
dnf list available abrt-addon-xorg abrt-dump-xorg >/dev/null 2>&1
CHECK_RESULT $? 0 0 "yum源中不存在abrt-addon-xorg或abrt-dump-xorg软件包"
if [ $pkg_installed -ne 0 ]; then
LOG_INFO "软件包未安装开始安装abrt-addon-xorg和abrt-dump-xorg"
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-xorg失败"
LOG_INFO "安装abrt-addon-xorg和abrt-dump-xorg成功"
fi
# 测试abrt-dump-xorg命令参数
LOG_INFO "测试abrt-dump-xorg命令参数"
abrt-dump-xorg --help 2>&1 | grep -q "\-\-system-log"
CHECK_RESULT $? 0 0 "abrt-dump-xorg不支持--system-log参数"
# 测试使用--system-log参数将日志记录到系统日志
LOG_INFO "测试使用--system-log参数将日志记录到系统日志"
# 创建一个模拟的Xorg日志文件用于测试
test_xorg_log="/tmp/test_xorg.log.$$"
echo "test xorg crash log" > $test_xorg_log
# 执行abrt-dump-xorg命令使用--system-log参数
abrt-dump-xorg $test_xorg_log --system-log >/dev/null 2>&1
CHECK_RESULT $? 0 0 "使用--system-log参数执行abrt-dump-xorg失败"
# 检查系统日志中是否有相关记录
LOG_INFO "检查系统日志中是否有abrt-dump-xorg记录"
journalctl --since="1 minute ago" | grep -q "abrt-dump-xorg"
CHECK_RESULT $? 0 0 "系统日志中未找到abrt-dump-xorg记录"
# 清理测试文件
rm -f $test_xorg_log
LOG_INFO "清理测试文件完成"
# 环境恢复
if [ $initial_installed -ne 0 ]; then
LOG_INFO "恢复环境:卸载测试安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "卸载abrt-addon-xorg和abrt-dump-xorg失败"
LOG_INFO "环境恢复完成"
else
LOG_INFO "环境保持原安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,133 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 使用参数为每个崩溃在abrt.conf中指定的DumpLocation创建问题目录
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 检查是否已安装abrt-addon-xorg和abrt-dump-xorg
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-xorg"
rpm -q abrt-addon-xorg > /dev/null 2>&1
abrt_xorg_installed=$?
rpm -q abrt-dump-xorg > /dev/null 2>&1
abrt_dump_xorg_installed=$?
if [ $abrt_xorg_installed -eq 0 ] && [ $abrt_dump_xorg_installed -eq 0 ]; then
LOG_INFO "abrt-addon-xorg和abrt-dump-xorg已安装"
already_installed=1
else
LOG_INFO "abrt-addon-xorg和abrt-dump-xorg未安装"
already_installed=0
fi
# 检查yum源中是否有软件包
LOG_INFO "检查yum源中是否有abrt-addon-xorg和abrt-dump-xorg软件包"
dnf list available abrt-addon-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "yum源中未找到abrt-addon-xorg软件包"
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中未找到abrt-addon-xorg软件包"
exit 255
fi
dnf list available abrt-dump-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "yum源中未找到abrt-dump-xorg软件包"
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中未找到abrt-dump-xorg软件包"
exit 255
fi
# 如果未安装,则安装软件包
if [ $already_installed -eq 0 ]; then
LOG_INFO "安装abrt-addon-xorg和abrt-dump-xorg软件包"
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-xorg失败"
fi
# 检查abrt-dump-xorg命令是否支持所需参数
LOG_INFO "检查abrt-dump-xorg命令是否支持所需参数"
abrt-dump-xorg --help 2>&1 | grep -q "DumpLocation"
CHECK_RESULT $? 0 0 "abrt-dump-xorg命令不支持DumpLocation参数"
if [ $? -ne 0 ]; then
LOG_ERROR "abrt-dump-xorg命令不支持DumpLocation参数"
exit 255
fi
# 创建测试用的Xorg崩溃日志
LOG_INFO "创建测试用的Xorg崩溃日志"
test_crash_log="/tmp/test_xorg_crash.log"
echo "test xorg crash log" > $test_crash_log
# 获取abrt.conf中配置的DumpLocation
LOG_INFO "获取abrt.conf中配置的DumpLocation"
dump_location=$(grep "^DumpLocation" /etc/abrt/abrt.conf 2>/dev/null | cut -d"=" -f2 | tr -d " ")
if [ -z "$dump_location" ]; then
dump_location="/var/spool/abrt"
LOG_INFO "未在abrt.conf中找到DumpLocation配置使用默认值: $dump_location"
else
LOG_INFO "从abrt.conf中获取到DumpLocation配置: $dump_location"
fi
# 确保DumpLocation目录存在
LOG_INFO "确保DumpLocation目录存在"
mkdir -p $dump_location
CHECK_RESULT $? 0 0 "创建DumpLocation目录失败"
# 执行abrt-dump-xorg命令处理崩溃日志
LOG_INFO "执行abrt-dump-xorg命令处理Xorg崩溃日志"
abrt-dump-xorg $test_crash_log -d $dump_location
CHECK_RESULT $? 0 0 "abrt-dump-xorg命令执行失败"
# 检查是否在DumpLocation下创建了问题目录
LOG_INFO "检查是否在DumpLocation下创建了问题目录"
problem_dir_count=$(find $dump_location -maxdepth 1 -type d -name "xorg-*" 2>/dev/null | wc -l)
CHECK_RESULT $problem_dir_count 1 0 "未在DumpLocation下找到Xorg崩溃问题目录"
if [ $problem_dir_count -ge 1 ]; then
LOG_INFO "成功在DumpLocation下创建了Xorg崩溃问题目录"
problem_dir=$(find $dump_location -maxdepth 1 -type d -name "xorg-*" 2>/dev/null | head -1)
# 检查问题目录中是否包含必要的文件
LOG_INFO "检查问题目录中是否包含必要的文件"
[ -f "$problem_dir/backtrace" ] && LOG_INFO "找到backtrace文件"
[ -f "$problem_dir/duphash" ] && LOG_INFO "找到duphash文件"
[ -f "$problem_dir/type" ] && LOG_INFO "找到type文件"
# 清理创建的问题目录
LOG_INFO "清理测试创建的问题目录"
rm -rf $problem_dir
CHECK_RESULT $? 0 0 "清理问题目录失败"
fi
# 清理测试用的崩溃日志
LOG_INFO "清理测试用的Xorg崩溃日志"
rm -f $test_crash_log
CHECK_RESULT $? 0 0 "清理测试崩溃日志失败"
# 如果测试前未安装,则卸载软件包
if [ $already_installed -eq 0 ]; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-xorg软件包"
dnf remove -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "卸载abrt-addon-xorg和abrt-dump-xorg失败"
else
LOG_INFO "保持abrt-addon-xorg和abrt-dump-xorg安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,83 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 使用verbose参数详细输出处理信息
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 定义变量
PKG_NAME="abrt-addon-xorg"
CMD_NAME="abrt-dump-xorg"
# 步骤1检查软件包是否在yum源中
LOG_INFO "步骤1检查软件包是否在yum源中"
dnf list available ${PKG_NAME} &>/dev/null
if [ $? -ne 0 ]; then
LOG_ERROR "软件包 ${PKG_NAME} 不在yum源中"
exit 255
fi
# 步骤2检查当前环境是否已安装
LOG_INFO "步骤2检查当前环境是否已安装"
rpm -q ${PKG_NAME} &>/dev/null
INSTALLED=$?
# 记录是否需要卸载
NEED_UNINSTALL=0
if [ ${INSTALLED} -ne 0 ]; then
# 步骤3安装软件包
LOG_INFO "步骤3安装软件包"
dnf install -y ${PKG_NAME}
CHECK_RESULT $? 0 0 "安装软件包失败"
NEED_UNINSTALL=1
else
LOG_INFO "软件包已安装,跳过安装步骤"
fi
# 步骤4检查abrt-dump-xorg命令是否支持verbose参数
LOG_INFO "步骤4检查abrt-dump-xorg命令是否支持verbose参数"
${CMD_NAME} --help 2>&1 | grep -q "\-\-verbose"
if [ $? -ne 0 ]; then
LOG_ERROR "命令 ${CMD_NAME} 不支持verbose参数"
# 清理环境
if [ ${NEED_UNINSTALL} -eq 1 ]; then
LOG_INFO "清理环境:卸载软件包"
dnf remove -y ${PKG_NAME}
fi
exit 255
fi
# 步骤5使用verbose参数执行命令
LOG_INFO "步骤5使用verbose参数执行abrt-dump-xorg命令"
${CMD_NAME} --verbose
CHECK_RESULT $? 0 0 "执行abrt-dump-xorg命令失败"
# 步骤6清理环境
LOG_INFO "步骤6清理环境"
if [ ${NEED_UNINSTALL} -eq 1 ]; then
LOG_INFO "卸载软件包"
dnf remove -y ${PKG_NAME}
CHECK_RESULT $? 0 0 "卸载软件包失败"
else
LOG_INFO "保持软件包安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,90 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 组合使用verbose、指定目录和全局可读参数
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试组合使用verbose、指定目录和全局可读参数"
LOG_INFO "步骤1检查环境中是否已安装abrt-addon-xorg和abrt-dump-xorg软件包"
rpm -q abrt-addon-xorg abrt-dump-xorg > /dev/null 2>&1
if [ $? -eq 0 ]; then
LOG_INFO "软件包已安装,测试后保持安装状态"
INSTALLED=1
else
LOG_INFO "软件包未安装,将在测试过程中安装"
INSTALLED=0
fi
LOG_INFO "步骤2检查yum源中是否存在abrt-addon-xorg和abrt-dump-xorg软件包"
dnf list available abrt-addon-xorg abrt-dump-xorg > /dev/null 2>&1
CHECK_RESULT $? 0 0 "yum源中未找到abrt-addon-xorg或abrt-dump-xorg软件包"
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中缺少必要软件包退出测试"
exit 255
fi
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "步骤3安装abrt-addon-xorg和abrt-dump-xorg软件包"
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
LOG_INFO "步骤4验证abrt-dump-xorg命令是否支持verbose、指定目录和全局可读参数"
abrt-dump-xorg --help | grep -q -- "--verbose"
CHECK_RESULT $? 0 0 "abrt-dump-xorg命令不支持verbose参数"
abrt-dump-xorg --help | grep -q -- "-d"
CHECK_RESULT $? 0 0 "abrt-dump-xorg命令不支持指定目录参数"
abrt-dump-xorg --help | grep -q -- "-g"
CHECK_RESULT $? 0 0 "abrt-dump-xorg命令不支持全局可读参数"
LOG_INFO "步骤5创建测试目录和测试Xorg日志文件"
TEST_DIR="/tmp/test_abrt_xorg_$(date +%s)"
mkdir -p $TEST_DIR
echo "模拟Xorg日志内容" > $TEST_DIR/Xorg.log
chmod 600 $TEST_DIR/Xorg.log
LOG_INFO "步骤6组合使用verbose、指定目录和全局可读参数执行abrt-dump-xorg命令"
abrt-dump-xorg -v -d $TEST_DIR -g $TEST_DIR/Xorg.log
CHECK_RESULT $? 0 0 "组合参数执行abrt-dump-xorg命令失败"
LOG_INFO "步骤7验证生成的转储文件是否具有全局可读权限"
DUMP_FILE=$(find $TEST_DIR -name "*.crash" -type f | head -1)
if [ -n "$DUMP_FILE" ]; then
ls -l $DUMP_FILE | grep -q "^-r--r--r--"
CHECK_RESULT $? 0 0 "生成的转储文件不具有全局可读权限"
else
LOG_ERROR "未找到生成的转储文件"
exit 1
fi
LOG_INFO "步骤8清理测试目录"
rm -rf $TEST_DIR
CHECK_RESULT $? 0 0 "清理测试目录失败"
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "步骤9卸载测试安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO "测试完成组合使用verbose、指定目录和全局可读参数测试通过"
}
main "$@"

View File

@@ -1,85 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 组合使用verbose和输出崩溃数据参数
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
set -e
LOG_INFO "开始测试组合使用verbose和输出崩溃数据参数"
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-xorg软件包"
if ! dnf list available abrt-addon-xorg &>/dev/null; then
LOG_ERROR "yum源中不存在abrt-addon-xorg软件包"
exit 255
fi
if ! dnf list available abrt-dump-xorg &>/dev/null; then
LOG_ERROR "yum源中不存在abrt-dump-xorg软件包"
exit 255
fi
LOG_INFO "检查当前是否已安装abrt-addon-xorg和abrt-dump-xorg"
if rpm -q abrt-addon-xorg &>/dev/null && rpm -q abrt-dump-xorg &>/dev/null; then
LOG_INFO "软件包已安装,测试结束后将保持安装状态"
already_installed=true
else
LOG_INFO "软件包未安装,将进行安装"
already_installed=false
LOG_INFO "安装abrt-addon-xorg和abrt-dump-xorg软件包"
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-xorg失败"
fi
LOG_INFO "检查abrt-dump-xorg命令是否支持verbose参数"
if ! abrt-dump-xorg --help 2>&1 | grep -q "\-\-verbose"; then
LOG_ERROR "abrt-dump-xorg命令不支持verbose参数"
exit 255
fi
LOG_INFO "检查abrt-dump-xorg命令是否支持输出崩溃数据参数"
if ! abrt-dump-xorg --help 2>&1 | grep -q "\-\-output"; then
LOG_ERROR "abrt-dump-xorg命令不支持输出崩溃数据参数"
exit 255
fi
LOG_INFO "组合使用verbose和输出崩溃数据参数执行abrt-dump-xorg命令"
abrt-dump-xorg --verbose --output /tmp/xorg_crash_dump_test 2>&1
CHECK_RESULT $? 0 0 "组合使用verbose和输出崩溃数据参数执行失败"
LOG_INFO "检查是否生成了输出文件"
if [ -f "/tmp/xorg_crash_dump_test" ]; then
LOG_INFO "成功生成输出文件"
else
LOG_ERROR "未生成输出文件"
exit 1
fi
LOG_INFO "清理临时输出文件"
rm -f /tmp/xorg_crash_dump_test
if [ "$already_installed" = false ]; then
LOG_INFO "卸载安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "卸载abrt-addon-xorg和abrt-dump-xorg失败"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,92 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 组合使用verbose、输出崩溃数据和打印搜索字符串参数
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 检查是否已安装所需软件包
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-xorg"
rpm -q abrt-addon-xorg abrt-dump-xorg > /dev/null 2>&1
if [ $? -eq 0 ]; then
LOG_INFO "软件包已安装,标记为已安装状态"
INSTALLED=1
else
LOG_INFO "软件包未安装,标记为未安装状态"
INSTALLED=0
fi
# 检查yum源中是否有软件包
LOG_INFO "检查yum源中是否有abrt-addon-xorg和abrt-dump-xorg"
dnf list available abrt-addon-xorg abrt-dump-xorg > /dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中未找到abrt-addon-xorg或abrt-dump-xorg"
exit 255
fi
# 如果未安装,则安装软件包
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "安装abrt-addon-xorg和abrt-dump-xorg"
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-xorg失败"
fi
# 测试组合使用verbose、输出崩溃数据和打印搜索字符串参数
LOG_INFO "测试组合使用verbose、输出崩溃数据和打印搜索字符串参数"
# 检查abrt-dump-xorg是否支持verbose参数
abrt-dump-xorg --help | grep -q "\-\-verbose"
if [ $? -ne 0 ]; then
LOG_ERROR "abrt-dump-xorg不支持verbose参数"
exit 255
fi
# 检查是否支持输出崩溃数据参数
abrt-dump-xorg --help | grep -q "\-\-output"
if [ $? -ne 0 ]; then
LOG_ERROR "abrt-dump-xorg不支持output参数"
exit 255
fi
# 检查是否支持打印搜索字符串参数
abrt-dump-xorg --help | grep -q "\-\-search"
if [ $? -ne 0 ]; then
LOG_ERROR "abrt-dump-xorg不支持search参数"
exit 255
fi
# 执行测试命令
LOG_INFO "执行abrt-dump-xorg命令组合使用verbose、output和search参数"
abrt-dump-xorg --verbose --output /tmp/test_output --search "test_string" > /tmp/test.log 2>&1
CHECK_RESULT $? 0 0 "abrt-dump-xorg命令执行失败"
# 清理测试产生的临时文件
LOG_INFO "清理测试产生的临时文件"
rm -f /tmp/test_output /tmp/test.log
CHECK_RESULT $? 0 0 "清理临时文件失败"
# 如果之前未安装,则卸载软件包
if [ $INSTALLED -eq 0 ]; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-xorg"
dnf remove -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "卸载abrt-addon-xorg和abrt-dump-xorg失败"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,72 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 组合使用verbose和syslog参数
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
# 环境检查与初始化
LOG_INFO "检查环境是否已安装abrt-addon-xorg和abrt-dump-xorg"
rpm -q abrt-addon-xorg > /dev/null 2>&1
abrt_xorg_installed=$?
rpm -q abrt-dump-xorg > /dev/null 2>&1
abrt_dump_xorg_installed=$?
if [ $abrt_xorg_installed -eq 0 ] && [ $abrt_dump_xorg_installed -eq 0 ]; then
LOG_INFO "abrt-addon-xorg和abrt-dump-xorg已安装"
already_installed=1
else
LOG_INFO "abrt-addon-xorg和abrt-dump-xorg未安装或部分未安装"
already_installed=0
fi
# 检查yum源中是否存在软件包
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-xorg软件包"
dnf list available abrt-addon-xorg 2>&1 | grep -q "abrt-addon-xorg"
CHECK_RESULT $? 0 0 "yum源中不存在abrt-addon-xorg软件包"
dnf list available abrt-dump-xorg 2>&1 | grep -q "abrt-dump-xorg"
CHECK_RESULT $? 0 0 "yum源中不存在abrt-dump-xorg软件包"
# 安装软件包(如果未安装)
if [ $already_installed -eq 0 ]; then
LOG_INFO "安装abrt-addon-xorg和abrt-dump-xorg软件包"
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-xorg失败"
fi
# 测试组合使用verbose和syslog参数
LOG_INFO "测试abrt-dump-xorg命令组合使用verbose和syslog参数"
abrt-dump-xorg --verbose --syslog 2>&1 | grep -q "Usage:"
if [ $? -eq 0 ]; then
LOG_INFO "abrt-dump-xorg命令不支持--verbose和--syslog参数组合"
exit 255
else
LOG_INFO "abrt-dump-xorg命令支持--verbose和--syslog参数组合"
fi
# 清理环境(如果之前未安装)
if [ $already_installed -eq 0 ]; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-xorg软件包"
dnf remove -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "卸载abrt-addon-xorg和abrt-dump-xorg失败"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,78 +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 : 2026-03-25
# @License : Mulan PSL v2
# @Desc : 使用参数使创建的问题目录全局可读
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试:使用参数使创建的问题目录全局可读"
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-xorg软件包"
if rpm -q abrt-addon-xorg abrt-dump-xorg > /dev/null 2>&1; then
LOG_INFO "软件包已安装,标记为已存在"
INSTALLED=true
else
LOG_INFO "软件包未安装,标记为未安装"
INSTALLED=false
fi
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-xorg软件包"
if ! dnf list available abrt-addon-xorg abrt-dump-xorg > /dev/null 2>&1; then
LOG_ERROR "yum源中缺少abrt-addon-xorg或abrt-dump-xorg软件包"
exit 255
fi
if [ "$INSTALLED" = false ]; then
LOG_INFO "安装abrt-addon-xorg和abrt-dump-xorg软件包"
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
LOG_INFO "检查abrt-dump-xorg命令是否支持--world-readable参数"
if ! abrt-dump-xorg --help 2>&1 | grep -q -- "--world-readable"; then
LOG_ERROR "abrt-dump-xorg命令不支持--world-readable参数"
exit 255
fi
LOG_INFO "模拟Xorg崩溃以触发abrt事件"
pkill -9 Xorg 2>/dev/null
LOG_INFO "使用--world-readable参数运行abrt-dump-xorg"
abrt-dump-xorg --world-readable
CHECK_RESULT $? 0 0 "abrt-dump-xorg执行失败"
LOG_INFO "检查创建的问题目录权限是否为全局可读"
PROBLEM_DIR=$(find /var/tmp/abrt -type d -name "xorg-*" 2>/dev/null | head -1)
if [ -n "$PROBLEM_DIR" ]; then
PERM=$(stat -c "%a" "$PROBLEM_DIR")
if [ "$PERM" = "755" ] || [ "$PERM" = "777" ]; then
LOG_INFO "问题目录权限为全局可读:$PERM"
else
LOG_ERROR "问题目录权限不是全局可读:$PERM"
exit 1
fi
else
LOG_ERROR "未找到Xorg崩溃创建的问题目录"
exit 1
fi
if [ "$INSTALLED" = false ]; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-xorg软件包"
dnf remove -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "卸载软件包失败"
fi
LOG_INFO "清理测试环境删除模拟的Xorg崩溃问题目录"
if [ -n "$PROBLEM_DIR" ]; then
rm -rf "$PROBLEM_DIR"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,77 +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-03
# @License : Mulan PSL v2
# @Desc : 测试指定目录创建问题目录参数
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试:测试指定目录创建问题目录参数"
# 检查是否已安装abrt-addon-xorg和abrt-dump-xorg包
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-xorg包"
if ! dnf list installed abrt-addon-xorg abrt-dump-xorg &>/dev/null; then
LOG_INFO "未安装abrt-addon-xorg和abrt-dump-xorg包开始安装"
if ! dnf list available abrt-addon-xorg abrt-dump-xorg &>/dev/null; then
LOG_ERROR "yum源中未找到abrt-addon-xorg或abrt-dump-xorg包"
exit 255
fi
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-xorg包失败"
INSTALLED=true
else
LOG_INFO "abrt-addon-xorg和abrt-dump-xorg包已安装"
INSTALLED=false
fi
# 测试指定目录创建问题目录参数
LOG_INFO "测试指定目录创建问题目录参数"
TEST_DIR="/tmp/abrt_test_dir"
mkdir -p $TEST_DIR
# 执行abrt-dump-oops命令并指定目录
LOG_INFO "执行abrt-dump-oops命令并指定目录$TEST_DIR"
abrt-dump-oops -d $TEST_DIR &>/dev/null
# 检查命令是否成功执行,并验证参数支持情况
if [ $? -ne 0 ]; then
LOG_ERROR "abrt-dump-oops命令执行失败或参数不支持"
exit 255
fi
# 检查目录是否创建成功
LOG_INFO "检查问题目录是否在$TEST_DIR下创建"
ls $TEST_DIR | grep -q oops
CHECK_RESULT $? 0 0 "问题目录未在$TEST_DIR下创建"
# 清理测试目录,恢复环境
LOG_INFO "清理测试目录$TEST_DIR"
rm -rf $TEST_DIR
# 如果脚本开始时安装了包,则在结束时卸载它们以恢复环境状态。
if [ "$INSTALLED" = true ]; then
LOG_INFO "卸载abrt-addon-xorg和abrt-dump-xorg包以恢复环境状态"
dnf remove -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "卸载abrt-addon-xorg和abrt-dump-xorg包失败"
fi
LOG_INFO "测试完成:测试指定目录创建问题目录参数成功结束"
}
main "$@"

View File

@@ -1,66 +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-03
# @License : Mulan PSL v2
# @Desc : 测试输出崩溃数据到标准输出参数
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试:测试输出崩溃数据到标准输出参数"
# 检查软件包是否在yum源中
LOG_INFO "检查yum源中是否存在abrt-addon-xorg和abrt-dump-xorg软件包"
dnf list available abrt-addon-xorg abrt-dump-xorg >/dev/null 2>&1
if [ $? -ne 0 ]; then
LOG_ERROR "yum源中不存在abrt-addon-xorg或abrt-dump-xorg软件包"
exit 255
fi
# 检查是否已安装软件包
LOG_INFO "检查是否已安装abrt-addon-xorg和abrt-dump-xorg软件包"
rpm -q abrt-addon-xorg abrt-dump-xorg >/dev/null 2>&1
installed=$?
if [ $installed -ne 0 ]; then
LOG_INFO "未安装软件包,将进行安装"
dnf install -y abrt-addon-xorg abrt-dump-xorg >/dev/null 2>&1
CHECK_RESULT $? 0 0 "安装abrt-addon-xorg和abrt-dump-xorg失败"
else
LOG_INFO "软件包已安装"
fi
# 测试输出崩溃数据到标准输出参数
LOG_INFO "测试abrt-dump-xorg命令的输出崩溃数据到标准输出参数"
abrt-dump-xorg --help | grep -q "\-\-stdout"
CHECK_RESULT $? 0 0 "abrt-dump-xorg不支持--stdout参数"
abrt-dump-xorg --stdout >/dev/null 2>&1
CHECK_RESULT $? 0 0 "执行abrt-dump-xorg --stdout失败"
# 清理环境
if [ $installed -ne 0 ]; then
LOG_INFO "卸载安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-xorg >/dev/null 2>&1
CHECK_RESULT $? 0 0 "卸载abrt-addon-xorg和abrt-dump-xorg失败"
else
LOG_INFO "保持软件包安装状态"
fi
LOG_INFO "测试完成"
}
main "$@"

View File

@@ -1,61 +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-03
# @License : Mulan PSL v2
# @Desc : 测试 syslog 日志记录参数
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试 syslog 日志记录参数"
# 检查是否已安装 abrt-addon-xorg 和 abrt-dump-xorg
LOG_INFO "检查是否已安装 abrt-addon-xorg 和 abrt-dump-xorg"
if rpm -q abrt-addon-xorg abrt-dump-xorg > /dev/null; then
LOG_INFO "abrt-addon-xorg 和 abrt-dump-xorg 已安装"
installed=true
else
LOG_INFO "abrt-addon-xorg 和 abrt-dump-xorg 未安装"
installed=false
fi
# 检查 yum 源中是否有软件包
LOG_INFO "检查 yum 源中是否有 abrt-addon-xorg 和 abrt-dump-xorg"
if ! dnf list available abrt-addon-xorg abrt-dump-xorg > /dev/null 2>&1; then
LOG_ERROR "yum 源中未找到 abrt-addon-xorg 或 abrt-dump-xorg"
exit 255
fi
# 如果未安装,则安装软件包
if [ "$installed" = false ]; then
LOG_INFO "安装 abrt-addon-xorg 和 abrt-dump-xorg"
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装失败"
fi
# 测试 syslog 日志记录参数
LOG_INFO "测试 syslog 日志记录参数"
abrt-dump-oops -s /var/log/messages
CHECK_RESULT $? 0 0 "syslog日志记录参数测试失败"
#清理环境
if [ "$installed" = false ]; then
LOG_INFO "卸载之前安装的软件包"
dnf remove -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "卸载失败"
}
main "$@"

View File

@@ -1,77 +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-03
# @License : Mulan PSL v2
# @Desc : 测试使用配置文件中的 DumpLocation 参数创建问题目录
# ############################################
source "$OET_PATH/libs/locallibs/common_lib.sh"
function run_test() {
LOG_INFO "开始测试:测试使用配置文件中的 DumpLocation 参数创建问题目录"
# 检查是否已安装 abrt-addon-xorg 和 abrt-dump-xorg
LOG_INFO "检查是否已安装 abrt-addon-xorg 和 abrt-dump-xorg"
if rpm -q abrt-addon-xorg abrt-dump-xorg >/dev/null 2>&1; then
LOG_INFO "abrt-addon-xorg 和 abrt-dump-xorg 已安装"
installed=true
else
LOG_INFO "abrt-addon-xorg 和 abrt-dump-xorg 未安装"
installed=false
fi
# 检查 yum 源中是否有 abrt-addon-xorg 和 abrt-dump-xorg
LOG_INFO "检查 yum 源中是否有 abrt-addon-xorg 和 abrt-dump-xorg"
if ! dnf list available abrt-addon-xorg abrt-dump-xorg >/dev/null 2>&1; then
LOG_ERROR "yum 源中未找到 abrt-addon-xorg 或 abrt-dump-xorg"
exit 255
fi
# 如果未安装,则安装软件包
if [ "$installed" = false ]; then
LOG_INFO "安装 abrt-addon-xorg 和 abrt-dump-xorg"
dnf install -y abrt-addon-xorg abrt-dump-xorg
CHECK_RESULT $? 0 0 "安装软件包失败"
fi
# 测试 DumpLocation 参数创建问题目录
LOG_INFO "测试 DumpLocation 参数创建问题目录"
mkdir -p /tmp/abrt_test
echo "DumpLocation = /tmp/abrt_test" > /etc/abrt/abrt.conf
LOG_INFO "触发 XOrg crash dump"
systemctl restart abrtd
CHECK_RESULT $? 0 0 "重启 abrtd 服务失败"
LOG_INFO "验证问题目录是否创建"
ls /tmp/abrt_test
CHECK_RESULT $? 0 0 "问题目录未创建"
#清理环境
LOG_INFO "清理测试环境"
rm -rf /tmp/abrt_test
sed -i "/DumpLocation = \/tmp\/abrt_test/d" /etc/abrt/abrt.conf
# 如果脚本开始时未安装软件包,则在结束时卸载
if [ "$installed" = false ]; then
LOG_INFO "卸载软件包 ab rt-addon- xorg and a b rt- dump- xorg "
dnf remove -y ab rt- add on- x org a b rt -du mp -x org
C HECK _ RES UL T $? 0 \ “卸载软包失败”
fi
L OG _ IN FO “测试完成”
}
main "$@"

Some files were not shown because too many files have changed in this diff Show More