diff --git a/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_001.yaml b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_001.yaml new file mode 100644 index 0000000000000000000000000000000000000000..35e37da405580206eb34d16b1478272f0b93bab8 --- /dev/null +++ b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_001.yaml @@ -0,0 +1,24 @@ +作者: xufei +优先级: P1 +支持架构: noarch +执行方式: 自动 +测试类型: 功能测试 +通用标签: local +用例描述: 测试 atlas-corei2 基本安装功能 +修改人: xufei + +前置条件: +- 可访问软件仓库 +- 具有root权限 +- 安装atlas-corei2软件包 + +测试步骤: +- 检查包详细信息 +- 查找ATLAS库文件 +- 清理环境 + +期望结果: +- 成功安装atlas-corei2 +- 成功获取包信息 +- 成功找到库文件 +- 所有命令返回码为0 \ No newline at end of file diff --git a/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_002.yaml b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_002.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4c618f653df545f8c840f56eaf534316fcc118c1 --- /dev/null +++ b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_002.yaml @@ -0,0 +1,25 @@ +作者: xufei +优先级: P1 +支持架构: noarch +执行方式: 自动 +测试类型: 功能测试 +通用标签: local +用例描述: 测试 atlas-corei2库文件 功能 +修改人: xufei + +前置条件: +- 可访问软件仓库 +- 已安装atlas-corei2 +- 具有root权限 + +测试步骤: +- 列出ATLAS库文件 +- 查找libatlas库文件 +- 检查库链接配置 +- 清理环境 + +期望结果: +- 成功列出库文件 +- 成功找到libatlas库 +- 成功检查库链接 +- 所有命令返回码为0 \ No newline at end of file diff --git a/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_003.yaml b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_003.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d5ff8b181958caa0b8aec214dac08d8ecbd7eada --- /dev/null +++ b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_003.yaml @@ -0,0 +1,30 @@ +作者: xufei +优先级: P1 +支持架构: noarch +执行方式: 自动 +测试类型: 功能测试 +通用标签: local +用例描述: 测试 atlas-corei2 性能特性 +修改人: xufei + +前置条件: +- 可访问软件仓库 +- 已安装atlas-corei2 +- 具有root权限 +- 支持/proc/cpuinfo访问 + +测试步骤: +- 检查ATLAS版本信息 +- 检查BLAS库文件 +- 检查LAPACK库文件 +- 检查系统架构 +- 检查CPU优化标志 +- 清理环境 + +期望结果: +- 成功检查版本信息 +- 成功找到BLAS库 +- 成功找到LAPACK库 +- 成功获取系统架构 +- 成功获取CPU信息 +- 所有命令返回码为0 \ No newline at end of file diff --git a/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_004.yaml b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_004.yaml new file mode 100644 index 0000000000000000000000000000000000000000..96712eb7acd11a16569eec03b66cbfc24129284d --- /dev/null +++ b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_004.yaml @@ -0,0 +1,30 @@ +作者: xufei +优先级: P1 +支持架构: noarch +执行方式: 自动 +测试类型: 功能测试 +通用标签: local +用例描述: 测试atlas-corei2与其他包集成 +修改人: xufei + +前置条件: +- 可访问软件仓库 +- 已安装atlas-corei2和atlas-devel +- 具有root权限 +- 支持pkg-config工具 + +测试步骤: +- 检查主包和开发包版本 +- 验证版本一致性 +- 查找头文件 +- 检查pkg-config模块 +- 获取pkg-config版本 +- 清理环境 + +期望结果: +- 成功获取版本信息 +- 主包和开发包版本匹配 +- 成功找到头文件 +- 成功找到pkg-config模块 +- 成功获取pkg-config版本 +- 所有命令返回码为0 \ No newline at end of file diff --git a/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_005.yaml b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_005.yaml new file mode 100644 index 0000000000000000000000000000000000000000..61fac99c709c7f6163224eb3bc258f9be7fee1ef --- /dev/null +++ b/docs/system_base/atlas-corei2/tc_atlas-corei2_fun_005.yaml @@ -0,0 +1,27 @@ +作者: xufei +优先级: P1 +支持架构: noarch +执行方式: 自动 +测试类型: 功能测试 +通用标签: local +用例描述: 测试 atlas-corei2 文件完整性 +修改人: xufei + +前置条件: +- 可访问软件仓库 +- 安装atlas-corei2 +- 具有root权限 + +测试步骤: +- 验证包文件完整性 +- 统计包文件数量 +- 检查文件大小信息 +- 检查包依赖关系 +- 清理环境 + +期望结果: +- 包完整性验证通过 +- 包文件数量大于0 +- 成功获取文件大小 +- 成功查看依赖关系 +- 所有命令返回码为0 \ No newline at end of file diff --git a/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_001.py b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_001.py new file mode 100644 index 0000000000000000000000000000000000000000..c7eb54ae1503a33b0347849ba899ca76b6f8f753 --- /dev/null +++ b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_001.py @@ -0,0 +1,43 @@ +# -*- encoding: utf-8 -*- + +""" +@File: tc_atlas-corei2_fun_001.py +@Time: 2026/03/04 13:53:53 +@Author: xufei +@Version: 1.0 +@Contact: xufei@inspur.com +@License: Mulan PSL v2 +@Modify: xufei +""" + +from common.basetest import LocalTest + + +class Test(LocalTest): + """ + See tc_atlas-corei2_fun_001.yaml for details + + :avocado: tags=P1,noarch,local,atlas-corei2 + """ + PARAM_DIC = {"pkg_name": "atlas-corei2"} + + def setUp(self): + super().setUp(self.PARAM_DIC) + + def test(self): + self.log.info("Start to run test.") + + code1,result1=self.cmd('rpm -qi atlas-corei2 | head -5') + if code1 == 0: + self.log.info(f"Package info: {result1.strip()}") + + code2,result2=self.cmd('find /usr/lib* -name "*atlas*" 2>/dev/null | head -3') + if code2 == 0: + self.log.info(f"Found ATLAS files: {result2.strip()}") + + self.log.info("End to run test.") + + def tearDown(self): + super().tearDown(self.PARAM_DIC) + + diff --git a/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_002.py b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_002.py new file mode 100644 index 0000000000000000000000000000000000000000..5e2e8f91aa0ff76f6badf314782f4e429e602a44 --- /dev/null +++ b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_002.py @@ -0,0 +1,47 @@ +# -*- encoding: utf-8 -*- + +""" +@File: tc_atlas-corei2_fun_002.py +@Time: 2026/03/04 14:23:53 +@Author: xufei +@Version: 1.0 +@Contact: xufei@inspur.com +@License: Mulan PSL v2 +@Modify: xufei +""" + +from common.basetest import LocalTest + + +class Test(LocalTest): + """ + See tc_atlas-corei2_fun_002.yaml for details + + :avocado: tags=P1,noarch,local,atlas-corei2 + """ + PARAM_DIC = {"pkg_name": "atlas-corei2"} + + def setUp(self): + super().setUp(self.PARAM_DIC) + + def test(self): + self.log.info("Start to run test.") + + code1,result1=self.cmd('ls -la /usr/lib*/atlas*.so* 2>/dev/null | head -5') + if code1 == 0: + self.log.info(f"Library files: {result1.strip()}") + + code2,result2=self.cmd('find /usr/lib* -name "libatlas*.so" 2>/dev/null | head -3') + if code2 == 0: + self.log.info(f"Library files: {result2.strip()}") + + code3,result3=self.cmd('ldconfig -p | grep atlas | head -3') + if code3 == 0: + self.log.info(f"Linked libraries: {result3.strip()}") + + self.log.info("End to run test.") + + def tearDown(self): + super().tearDown(self.PARAM_DIC) + + diff --git a/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_003.py b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_003.py new file mode 100644 index 0000000000000000000000000000000000000000..1bbc6cc6b7c94caa89efc63826a4febb1967c7bc --- /dev/null +++ b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_003.py @@ -0,0 +1,60 @@ +# -*- encoding: utf-8 -*- + +""" +@File: tc_atlas-corei2_fun_003.py +@Time: 2026/03/04 14:53:53 +@Author: xufei +@Version: 1.0 +@Contact: xufei@inspur.com +@License: Mulan PSL v2 +@Modify: xufei +""" + +from common.basetest import LocalTest + + +class Test(LocalTest): + """ + See tc_atlas-corei2_fun_003.yaml for details + + :avocado: tags=P1,noarch,local,atlas-corei2 + """ + PARAM_DIC = {"pkg_name": "atlas-corei2"} + + def setUp(self): + super().setUp(self.PARAM_DIC) + + def test(self): + self.log.info("Start to run test.") + + # 妫鏌TLAS鐗堟湰淇℃伅 + code1,result1=self.cmd('strings /usr/lib*/libatlas.so 2>/dev/null | grep -i version | head -2') + if code1 == 0: + self.log.info(f"ATLAS version info: {result1.strip()}") + + # 妫鏌LAS搴 + code2,result2=self.cmd('ls -la /usr/lib*/libblas*.so* 2>/dev/null | head -3') + if code2 == 0: + self.log.info(f"BLAS libraries: {result2.strip()}") + + # 妫鏌APACK搴 + code3,result3=self.cmd('ls -la /usr/lib*/liblapack*.so* 2>/dev/null | head -3') + if code3 == 0: + self.log.info(f"LAPACK libraries: {result3.strip()}") + + # 妫鏌PU鏋舵瀯浼樺寲 + code4,result4=self.cmd('uname -m') + if code4 == 0: + arch = result4.strip() + self.log.info(f"System architecture: {arch}") + + code5,result5=self.cmd('grep -i flags /proc/cpuinfo | head -1') + if code5 == 0: + self.log.info(f"CPU flags: {result5.strip()[:50]}") + + self.log.info("End to run test.") + + def tearDown(self): + super().tearDown(self.PARAM_DIC) + + diff --git a/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_004.py b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_004.py new file mode 100644 index 0000000000000000000000000000000000000000..7063b277a1713835f8bf8d0b03800718a4c0dbe4 --- /dev/null +++ b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_004.py @@ -0,0 +1,57 @@ +# -*- encoding: utf-8 -*- + +""" +@File: tc_atlas-corei2_fun_004.py +@Time: 2026/03/04 15:23:53 +@Author: xufei +@Version: 1.0 +@Contact: xufei@inspur.com +@License: Mulan PSL v2 +@Modify: xufei +""" + +from common.basetest import LocalTest + + +class Test(LocalTest): + """ + See tc_atlas-corei2_fun_004.yaml for details + + :avocado: tags=P1,noarch,local,atlas-corei2 + """ + PARAM_DIC = {"pkg_name": "atlas-corei2 atlas-devel"} + + def setUp(self): + super().setUp(self.PARAM_DIC) + + def test(self): + self.log.info("Start to run test.") + + # 妫鏌ヤ富鍖呭拰寮鍙戝寘鐗堟湰 + code1,result1=self.cmd('rpm -q atlas-corei2 atlas-devel --queryformat="%{NAME}: %{VERSION}\\n"') + if code1 == 0: + self.log.info(f"Package versions: {result1.strip()}") + versions = result1.strip().split('\n') + if len(versions) == 2 and versions[0].split(': ')[1] == versions[1].split(': ')[1]: + self.log.info("Main and devel package versions match") + + # 妫鏌ュご鏂囦欢 + code2,result2=self.cmd('find /usr/include -name "*atlas*" 2>/dev/null | head -3') + if code2 == 0: + self.log.info(f"Header files: {result2.strip()}") + + # 妫鏌kg-config + code3,result3=self.cmd('pkg-config --exists atlas && echo "found"') + if "found" in result3: + self.log.info("pkg-config module found") + + code4,result4=self.cmd('pkg-config --modversion atlas 2>/dev/null') + if code4 == 0: + self.log.info(f"pkg-config version: {result4.strip()}") + + self.log.info("End to run test.") + + def tearDown(self): + super().tearDown(self.PARAM_DIC) + + diff --git a/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_005.py b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_005.py new file mode 100644 index 0000000000000000000000000000000000000000..87e4181cebc8009cbdb80217b06a54f42baf2c96 --- /dev/null +++ b/tests/system_base/atlas-corei2/tc_atlas-corei2_fun_005.py @@ -0,0 +1,57 @@ +# -*- encoding: utf-8 -*- + +""" +@File: tc_atlas-corei2_fun_005.py +@Time: 2026/03/04 15:53:53 +@Author: xufei +@Version: 1.0 +@Contact: xufei@inspur.com +@License: Mulan PSL v2 +@Modify: xufei +""" + +from common.basetest import LocalTest + + +class Test(LocalTest): + """ + See tc_atlas-corei2_fun_005.yaml for details + + :avocado: tags=P1,noarch,local,atlas-corei2 + """ + PARAM_DIC = {"pkg_name": "atlas-corei2"} + + def setUp(self): + super().setUp(self.PARAM_DIC) + + def test(self): + self.log.info("Start to run test.") + + # 妫鏌ュ寘鏂囦欢瀹屾暣鎬 + code1,result1=self.cmd('rpm -V atlas-corei2 2>/dev/null') + if code1 == 0: + self.log.info("Package verification passed") + + # 缁熻鍖呮枃浠舵暟閲 + code2,result2=self.cmd('rpm -ql atlas-corei2 | wc -l') + if code2 == 0: + file_count = int(result2.strip()) + self.assertGreater(file_count, 0, "Package contains no files") + self.log.info(f"Package contains {file_count} files") + + # 妫鏌ユ枃浠跺ぇ灏 + code3,result3=self.cmd('rpm -qil atlas-corei2 | grep -E "^Size:" | head -2') + if code3 == 0: + self.log.info(f"Package size info: {result3.strip()}") + + # 妫鏌ヤ緷璧栧叧绯 + code4,result4=self.cmd('rpm -qR atlas-corei2 2>/dev/null | head -3') + if code4 == 0: + self.log.info(f"Dependencies: {result4.strip()}") + + self.log.info("End to run test.") + + def tearDown(self): + super().tearDown(self.PARAM_DIC) + +