From bebb3b0d7f4c678b4a8758e22e008d09c8d46b9d Mon Sep 17 00:00:00 2001 From: Jian Zhao Date: Wed, 6 May 2026 16:22:57 +0800 Subject: [PATCH 1/4] feat(base): add --status mode to parse_result_json.py Add --status flag to show PASS/FAIL cases grouped by subsystem, with failure details, pass rate, and top 10 slowest cases. Original metric statistics mode remains the default behavior. Usage: ./parse_result_json.py loop-001.json --status [--show-pass] Signed-off-by: Jian Zhao --- base/parse_result_json.py | 175 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 167 insertions(+), 8 deletions(-) diff --git a/base/parse_result_json.py b/base/parse_result_json.py index 8f99bb5..f935841 100755 --- a/base/parse_result_json.py +++ b/base/parse_result_json.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- """ 解析loop-001.json或者base.json文件,统计测试case和指标信息 +支持 --status 模式:按子系统归类显示成功/失败的 Case 详情 """ import json @@ -10,6 +11,16 @@ from collections import defaultdict from typing import Dict, List, Tuple +# L0 子系统显示名映射 +L0_DISPLAY = { + "io": "存储", + "mm": "内存", + "memory": "内存", + "net": "网络", + "sched": "调度", +} + + def parse_json_file(file_path: str) -> Dict: """读取并解析JSON文件""" with open(file_path, 'r', encoding='utf-8') as f: @@ -171,22 +182,170 @@ def print_summary(l0_stats: Dict, prefix_stats: Dict, case_durations: List[Tuple print("=" * 80) +def get_l0_display(case_name: str, case_data: Dict) -> str: + """获取 case 的子系统显示名""" + # 优先从 result 的 L0 字段获取 + result = case_data.get('result', {}) + for item_name, item_data in result.items(): + if isinstance(item_data, dict): + l0 = item_data.get('L0', '') + if l0: + return L0_DISPLAY.get(l0, l0) + + # 从 case 名称推断 + if "fio" in case_name: + return "存储" + elif any(x in case_name for x in ["iperf", "netperf", "qperf"]): + return "网络" + elif any(x in case_name for x in ["hackbench", "lat_ctx", "lat_pipe", "sysbench-tl", + "libmicro-bs", "libmicro-fork", "libmicro-pthread"]): + return "调度" + elif any(x in case_name for x in ["stream", "mlc", "lmbench", "libmicro-B", + "libmicro-malloc", "libmicro-mem", "libmicro-mmap", + "libmicro-str", "libmicro-unmap", "sysbench-bn", "unixbench"]): + return "内存" + return "未知" + + +def analyze_status(data: Dict): + """按子系统归类统计成功/失败的 Case""" + subsys_cases = defaultdict(lambda: {"pass": [], "fail": []}) + total_pass = 0 + total_fail = 0 + + for case_name, case_data in data.items(): + status = case_data.get("status", "UNKNOWN") + duration = case_data.get("duration", 0) + subsys = get_l0_display(case_name, case_data) + metric_count = len(case_data.get("result", {})) + + entry = { + "name": case_name, + "duration": duration, + "metrics": metric_count, + } + + if status == "PASS": + subsys_cases[subsys]["pass"].append(entry) + total_pass += 1 + else: + subsys_cases[subsys]["fail"].append(entry) + total_fail += 1 + + return subsys_cases, total_pass, total_fail + + +def print_status_summary(subsys_cases: Dict, total_pass: int, total_fail: int, + show_pass: bool = False): + """打印成功/失败 Case 统计""" + total = total_pass + total_fail + + print(f"总 Case 数: {total}") + print(f" PASS: {total_pass}") + print(f" FAIL: {total_fail}") + if total > 0: + print(f" 通过率: {total_pass/total*100:.1f}%") + print() + + # 各子系统概览 + print("各子系统统计:") + print("-" * 80) + for subsys in sorted(subsys_cases.keys()): + cases = subsys_cases[subsys] + pass_count = len(cases["pass"]) + fail_count = len(cases["fail"]) + total_sub = pass_count + fail_count + total_duration = sum(c["duration"] for c in cases["pass"] + cases["fail"]) + print(f" {subsys:6s}: 总={total_sub:4d}, PASS={pass_count:4d}, FAIL={fail_count:4d}, " + f"耗时={total_duration:.0f}s ({total_duration/60:.1f}min)") + print() + + # 失败 Case 详情 + if total_fail > 0: + print("=" * 80) + print(f"失败 Case 详情 ({total_fail}个):") + print("=" * 80) + print() + + for subsys in sorted(subsys_cases.keys()): + fail_cases = subsys_cases[subsys]["fail"] + if not fail_cases: + continue + print(f"{subsys}子系统 (FAIL={len(fail_cases)}):") + print("-" * 80) + + # 按工具前缀分组 + tool_groups = defaultdict(list) + for c in sorted(fail_cases, key=lambda x: x["name"]): + prefix = extract_case_prefix(c["name"]) + tool_groups[prefix].append(c) + + for prefix in sorted(tool_groups.keys()): + cases_in_group = tool_groups[prefix] + print(f" [{prefix}] ({len(cases_in_group)}个):") + for c in cases_in_group: + print(f" FAIL {c['name']:60s} ({c['duration']:.3f}s)") + print() + + # 成功 Case 详情(可选) + if show_pass: + print("=" * 80) + print(f"成功 Case 详情 ({total_pass}个):") + print("=" * 80) + print() + + for subsys in sorted(subsys_cases.keys()): + pass_cases = subsys_cases[subsys]["pass"] + if not pass_cases: + continue + print(f"{subsys}子系统 (PASS={len(pass_cases)}):") + print("-" * 80) + + for c in sorted(pass_cases, key=lambda x: x["name"]): + print(f" PASS {c['name']:60s} ({c['duration']:.3f}s, 指标={c['metrics']})") + print() + + # Top 10 耗时 + print("=" * 80) + print("Top 10 耗时最长的 Case:") + print("=" * 80) + all_cases = [] + for subsys, cases in subsys_cases.items(): + for c in cases["pass"]: + all_cases.append({**c, "subsys": subsys, "status": "PASS"}) + for c in cases["fail"]: + all_cases.append({**c, "subsys": subsys, "status": "FAIL"}) + + all_cases.sort(key=lambda x: x["duration"], reverse=True) + for i, c in enumerate(all_cases[:10], 1): + print(f" {i:2d}. {c['name']:55s} | {c['subsys']:4s} | {c['status']} | {c['duration']:.1f}s") + print() + + total_duration = sum(c["duration"] for c in all_cases) + print(f"总耗时: {total_duration:.0f}s ({total_duration/3600:.1f}h)") + + def main(): parser = argparse.ArgumentParser(description='解析JSON结果文件,统计测试case和指标信息') parser.add_argument('json_file', help='JSON文件路径') parser.add_argument('--top', type=int, default=10, help='显示top N耗时最长的case(默认10,设为0可禁用)') parser.add_argument('--asc', action='store_true', help='Top N耗时Case按升序排列(耗时最短的在前),默认是降序') - + parser.add_argument('--status', action='store_true', help='按子系统归类显示成功/失败 Case 详情') + parser.add_argument('--show-pass', action='store_true', help='--status 模式下也显示所有 PASS 的 case 详情') + args = parser.parse_args() - + # 解析JSON文件 data = parse_json_file(args.json_file) - - # 分析数据 - l0_stats, prefix_stats, case_durations, total_duration = analyze_cases(data) - - # 打印结果 - print_summary(l0_stats, prefix_stats, case_durations, total_duration, args.top, reverse=not args.asc) + + if args.status: + # 状态分析模式 + subsys_cases, total_pass, total_fail = analyze_status(data) + print_status_summary(subsys_cases, total_pass, total_fail, show_pass=args.show_pass) + else: + # 原有模式:指标统计 + l0_stats, prefix_stats, case_durations, total_duration = analyze_cases(data) + print_summary(l0_stats, prefix_stats, case_durations, total_duration, args.top, reverse=not args.asc) if __name__ == '__main__': -- Gitee From 04ee9609f7c6f94e7e7de85b9d3d114b005055b3 Mon Sep 17 00:00:00 2001 From: Jian Zhao Date: Wed, 6 May 2026 17:18:57 +0800 Subject: [PATCH 2/4] fix(libmicro): rename CSV column batch-size to batch_size for valid Python syntax The column name 'batch-size' in libmicro-args-sched.csv generated Python code with 'batch-size=\"10\"' as a keyword argument, which is invalid syntax. Renamed to 'batch_size' and updated libmicro.py to accept it as a formal parameter. Regenerated all sched .py scripts. Signed-off-by: Jian Zhao --- testcase/libmicro/libmicro-args-sched.csv | 2 +- testcase/libmicro/libmicro.py | 16 ++++++++++------ .../tperf-libmicro-bs10-pr1-sa10-tnfork-th8.py | 8 ++++---- ...ibmicro-bs10-pr1-sa10-tnpthread_create-th8.py | 8 ++++---- .../tperf-libmicro-bs10-pr16-sa10-tnfork-th2.py | 8 ++++---- ...bmicro-bs10-pr16-sa10-tnpthread_create-th2.py | 8 ++++---- .../tperf-libmicro-bs10-pr2-sa10-tnfork-th4.py | 8 ++++---- ...ibmicro-bs10-pr2-sa10-tnpthread_create-th4.py | 8 ++++---- .../tperf-libmicro-bs10-pr4-sa10-tnfork-th2.py | 8 ++++---- .../tperf-libmicro-bs10-pr4-sa10-tnfork-th8.py | 8 ++++---- ...ibmicro-bs10-pr4-sa10-tnpthread_create-th2.py | 8 ++++---- ...ibmicro-bs10-pr4-sa10-tnpthread_create-th8.py | 8 ++++---- .../tperf-libmicro-bs10-pr8-sa10-tnfork-th4.py | 8 ++++---- ...ibmicro-bs10-pr8-sa10-tnpthread_create-th4.py | 8 ++++---- .../tperf-libmicro-bs5-pr1-sa10-tnfork-th8.py | 8 ++++---- ...libmicro-bs5-pr1-sa10-tnpthread_create-th8.py | 8 ++++---- .../tperf-libmicro-bs5-pr10-sa10-tnfork-th8.py | 8 ++++---- ...ibmicro-bs5-pr10-sa10-tnpthread_create-th8.py | 8 ++++---- .../tperf-libmicro-bs5-pr13-sa10-tnfork-th8.py | 8 ++++---- ...ibmicro-bs5-pr13-sa10-tnpthread_create-th8.py | 8 ++++---- .../tperf-libmicro-bs5-pr14-sa10-tnfork-th4.py | 8 ++++---- ...ibmicro-bs5-pr14-sa10-tnpthread_create-th4.py | 8 ++++---- .../tperf-libmicro-bs5-pr16-sa10-tnfork-th2.py | 8 ++++---- .../tperf-libmicro-bs5-pr16-sa10-tnfork-th8.py | 8 ++++---- ...ibmicro-bs5-pr16-sa10-tnpthread_create-th2.py | 8 ++++---- ...ibmicro-bs5-pr16-sa10-tnpthread_create-th8.py | 8 ++++---- .../tperf-libmicro-bs5-pr2-sa10-tnfork-th4.py | 8 ++++---- ...libmicro-bs5-pr2-sa10-tnpthread_create-th4.py | 8 ++++---- .../tperf-libmicro-bs5-pr20-sa10-tnfork-th4.py | 8 ++++---- ...ibmicro-bs5-pr20-sa10-tnpthread_create-th4.py | 8 ++++---- .../tperf-libmicro-bs5-pr26-sa10-tnfork-th4.py | 8 ++++---- ...ibmicro-bs5-pr26-sa10-tnpthread_create-th4.py | 8 ++++---- .../tperf-libmicro-bs5-pr32-sa10-tnfork-th4.py | 8 ++++---- ...ibmicro-bs5-pr32-sa10-tnpthread_create-th4.py | 8 ++++---- .../tperf-libmicro-bs5-pr4-sa10-tnfork-th2.py | 8 ++++---- .../tperf-libmicro-bs5-pr4-sa10-tnfork-th8.py | 8 ++++---- ...libmicro-bs5-pr4-sa10-tnpthread_create-th2.py | 8 ++++---- ...libmicro-bs5-pr4-sa10-tnpthread_create-th8.py | 8 ++++---- .../tperf-libmicro-bs5-pr7-sa10-tnfork-th8.py | 8 ++++---- ...libmicro-bs5-pr7-sa10-tnpthread_create-th8.py | 8 ++++---- .../tperf-libmicro-bs5-pr8-sa10-tnfork-th4.py | 8 ++++---- ...libmicro-bs5-pr8-sa10-tnpthread_create-th4.py | 8 ++++---- 42 files changed, 171 insertions(+), 167 deletions(-) diff --git a/testcase/libmicro/libmicro-args-sched.csv b/testcase/libmicro/libmicro-args-sched.csv index 3943130..5bf36c9 100644 --- a/testcase/libmicro/libmicro-args-sched.csv +++ b/testcase/libmicro/libmicro-args-sched.csv @@ -1,4 +1,4 @@ -工具名称,子系统,权重,模板,test_name,threads,processes,batch-size,samples +工具名称,子系统,权重,模板,test_name,threads,processes,batch_size,samples libmicro,sched,0.013705,huoyan,fork,2,4,5,10 libmicro,sched,0.013705,huoyan,fork,2,4,10,10 libmicro,sched,0.013705,huoyan,fork,4,2,5,10 diff --git a/testcase/libmicro/libmicro.py b/testcase/libmicro/libmicro.py index c174203..f383da4 100644 --- a/testcase/libmicro/libmicro.py +++ b/testcase/libmicro/libmicro.py @@ -99,6 +99,8 @@ class PerfLibmicro(TSTPerf): test_name: str = "", processes: str = "", threads: str = "", + batch_size: str = "", + samples: str = "", # 内存类参数 tool_name: str = "", bench_name: str = "", @@ -111,14 +113,16 @@ class PerfLibmicro(TSTPerf): r: str = "", w: str = "", f: str = "", - # 接收带 '-' 的 CSV 列名(如 batch-size, samples) + # 兼容旧版带连字符的 CSV 列名 **kwargs, ): super().__init__() - # CSV 列名映射:batch-size → -B, samples → -C - batch_size = kwargs.get("batch-size", "") - samples_count = kwargs.get("samples", "") + # 兼容:如果通过 kwargs 传入了 batch-size/samples(旧格式),也能工作 + if not batch_size: + batch_size = kwargs.get("batch-size", "") + if not samples: + samples = kwargs.get("samples", "") if bench_name: # 内存类模式:从 CSV 参数动态拼接 test_opt @@ -130,8 +134,8 @@ class PerfLibmicro(TSTPerf): test_opt = f"-P {processes} -T {threads}" if batch_size: test_opt += f" -B {batch_size}" - if samples_count: - test_opt += f" -C {samples_count}" + if samples: + test_opt += f" -C {samples}" tool_path = f"tools/libmicro.install/build/{test_name}" label = "L0:调度" diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr1-sa10-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-bs10-pr1-sa10-tnfork-th8.py index 93c77a5..ec140dc 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr1-sa10-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr1-sa10-tnfork-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: d7b51bfa484206e6 + @用例ID: e6ee805e5cbc6a3d @用例名称: tperf-libmicro-bs10-pr1-sa10-tnfork-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=1,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=1,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="8", processes="1", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=1,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=1,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr1-sa10-tnpthread_create-th8.py b/testcase/libmicro/tperf-libmicro-bs10-pr1-sa10-tnpthread_create-th8.py index ecb5c76..a22e6f1 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr1-sa10-tnpthread_create-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr1-sa10-tnpthread_create-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: e6d10c979f0e4b40 + @用例ID: 9ba65e1360a0def1 @用例名称: tperf-libmicro-bs10-pr1-sa10-tnpthread_create-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=1,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=1,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="8", processes="1", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=1,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=1,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr16-sa10-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-bs10-pr16-sa10-tnfork-th2.py index 1ced832..b6b0e8f 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr16-sa10-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr16-sa10-tnfork-th2.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 8234aac68ebbaf75 + @用例ID: 8f9763ee278c616f @用例名称: tperf-libmicro-bs10-pr16-sa10-tnfork-th2 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=2,processes=16,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=2,processes=16,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="2", processes="16", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=2,processes=16,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=2,processes=16,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr16-sa10-tnpthread_create-th2.py b/testcase/libmicro/tperf-libmicro-bs10-pr16-sa10-tnpthread_create-th2.py index 952bd7c..f96c3ef 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr16-sa10-tnpthread_create-th2.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr16-sa10-tnpthread_create-th2.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 5d9498b29b3e204c + @用例ID: 0eee31637189681d @用例名称: tperf-libmicro-bs10-pr16-sa10-tnpthread_create-th2 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=2,processes=16,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=2,processes=16,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="2", processes="16", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=2,processes=16,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=2,processes=16,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr2-sa10-tnfork-th4.py b/testcase/libmicro/tperf-libmicro-bs10-pr2-sa10-tnfork-th4.py index 99f4ba9..21b4ef0 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr2-sa10-tnfork-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr2-sa10-tnfork-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 09dece55161903fc + @用例ID: 835d3b9761c7c7e0 @用例名称: tperf-libmicro-bs10-pr2-sa10-tnfork-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=2,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=2,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="4", processes="2", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=2,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=2,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr2-sa10-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-bs10-pr2-sa10-tnpthread_create-th4.py index 082a86e..9551a4c 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr2-sa10-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr2-sa10-tnpthread_create-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 866997fb82a1f8f9 + @用例ID: c07fec4c59191d77 @用例名称: tperf-libmicro-bs10-pr2-sa10-tnpthread_create-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=2,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=2,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="4", processes="2", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=2,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=2,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnfork-th2.py index 1a2a52e..1722b5d 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnfork-th2.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 2887fae1700b626b + @用例ID: 733d480bb3611938 @用例名称: tperf-libmicro-bs10-pr4-sa10-tnfork-th2 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=2,processes=4,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=2,processes=4,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="2", processes="4", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=2,processes=4,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=2,processes=4,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnfork-th8.py index a68f6d4..75e8279 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnfork-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: a14351628acf3c6e + @用例ID: 6de0b3f6cd45808b @用例名称: tperf-libmicro-bs10-pr4-sa10-tnfork-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=4,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=4,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="8", processes="4", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=4,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=4,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th2.py b/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th2.py index 7b251a5..515a013 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th2.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th2.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 61aec2479916982f + @用例ID: 7a286d56730625a1 @用例名称: tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th2 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=2,processes=4,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=2,processes=4,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="2", processes="4", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=2,processes=4,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=2,processes=4,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th8.py b/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th8.py index 452b051..cb5df6e 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 12959e0c553f13c4 + @用例ID: d84b29ec152ead04 @用例名称: tperf-libmicro-bs10-pr4-sa10-tnpthread_create-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=4,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=4,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="8", processes="4", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=4,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=4,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr8-sa10-tnfork-th4.py b/testcase/libmicro/tperf-libmicro-bs10-pr8-sa10-tnfork-th4.py index 42a2b73..b59043c 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr8-sa10-tnfork-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr8-sa10-tnfork-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 7d122ce11b772944 + @用例ID: 5b5b3e10e32649ad @用例名称: tperf-libmicro-bs10-pr8-sa10-tnfork-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=8,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=8,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="4", processes="8", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=8,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=8,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs10-pr8-sa10-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-bs10-pr8-sa10-tnpthread_create-th4.py index 58e4b6f..665ea89 100755 --- a/testcase/libmicro/tperf-libmicro-bs10-pr8-sa10-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs10-pr8-sa10-tnpthread_create-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 8a87b7aab6a2c69b + @用例ID: a1aefa229cd01b37 @用例名称: tperf-libmicro-bs10-pr8-sa10-tnpthread_create-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=8,batch-size=10,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=8,batch_size=10,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="4", processes="8", - batch-size="10", + batch_size="10", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=8,batch-size=10,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=8,batch_size=10,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr1-sa10-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr1-sa10-tnfork-th8.py index c20a8f9..659242f 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr1-sa10-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr1-sa10-tnfork-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 4eefd3e51b0e0697 + @用例ID: 1140ade01f741d7f @用例名称: tperf-libmicro-bs5-pr1-sa10-tnfork-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=1,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=1,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="8", processes="1", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=1,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=1,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr1-sa10-tnpthread_create-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr1-sa10-tnpthread_create-th8.py index 9f24df1..3ba97ac 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr1-sa10-tnpthread_create-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr1-sa10-tnpthread_create-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 7df6b8fc2ede3403 + @用例ID: d9c7dfdbaadf920e @用例名称: tperf-libmicro-bs5-pr1-sa10-tnpthread_create-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=1,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=1,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="8", processes="1", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=1,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=1,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr10-sa10-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr10-sa10-tnfork-th8.py index 2bba4b1..b17333f 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr10-sa10-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr10-sa10-tnfork-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: e46a7f5918c72843 + @用例ID: 69b5701806b0ba67 @用例名称: tperf-libmicro-bs5-pr10-sa10-tnfork-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=10,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=10,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="8", processes="10", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=10,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=10,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr10-sa10-tnpthread_create-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr10-sa10-tnpthread_create-th8.py index 85705d4..3fef084 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr10-sa10-tnpthread_create-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr10-sa10-tnpthread_create-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: cdb9f916ce2e216c + @用例ID: d22ecdfd4e640362 @用例名称: tperf-libmicro-bs5-pr10-sa10-tnpthread_create-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=10,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=10,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="8", processes="10", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=10,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=10,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr13-sa10-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr13-sa10-tnfork-th8.py index 29031d2..f35d33c 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr13-sa10-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr13-sa10-tnfork-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: c4c29a70c0744967 + @用例ID: 179dae7cb081341a @用例名称: tperf-libmicro-bs5-pr13-sa10-tnfork-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=13,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=13,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="8", processes="13", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=13,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=13,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr13-sa10-tnpthread_create-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr13-sa10-tnpthread_create-th8.py index 9dd9c66..73fc97e 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr13-sa10-tnpthread_create-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr13-sa10-tnpthread_create-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 2973c1c93d108187 + @用例ID: b7a991074a08ec16 @用例名称: tperf-libmicro-bs5-pr13-sa10-tnpthread_create-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=13,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=13,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="8", processes="13", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=13,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=13,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr14-sa10-tnfork-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr14-sa10-tnfork-th4.py index 8fc2758..bf3582f 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr14-sa10-tnfork-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr14-sa10-tnfork-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: aeb3b051785995e0 + @用例ID: a34f6bba5c83b845 @用例名称: tperf-libmicro-bs5-pr14-sa10-tnfork-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=14,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=14,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="4", processes="14", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=14,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=14,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr14-sa10-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr14-sa10-tnpthread_create-th4.py index a2968a9..6480620 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr14-sa10-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr14-sa10-tnpthread_create-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 94ba75855d9e7645 + @用例ID: dfda2f6b7c6385f6 @用例名称: tperf-libmicro-bs5-pr14-sa10-tnpthread_create-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=14,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=14,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="4", processes="14", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=14,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=14,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnfork-th2.py index 830c1b5..6f0ed5c 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnfork-th2.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 0cd91a355d3bf9d9 + @用例ID: eeb2582848066b30 @用例名称: tperf-libmicro-bs5-pr16-sa10-tnfork-th2 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=2,processes=16,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=2,processes=16,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="2", processes="16", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=2,processes=16,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=2,processes=16,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnfork-th8.py index 50d2c59..1e6de54 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnfork-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 4aa74d0e44d7faff + @用例ID: b058e949ca5d96eb @用例名称: tperf-libmicro-bs5-pr16-sa10-tnfork-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=16,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=16,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="8", processes="16", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=16,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=16,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th2.py b/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th2.py index 73f4f97..bd4415f 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th2.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th2.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 5ee0e542d1bd4bc0 + @用例ID: c8e328fc15c1752b @用例名称: tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th2 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=2,processes=16,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=2,processes=16,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="2", processes="16", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=2,processes=16,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=2,processes=16,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th8.py index c45ef5c..eecc01d 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: fe957d24163a63e3 + @用例ID: cac18c218e16b1e3 @用例名称: tperf-libmicro-bs5-pr16-sa10-tnpthread_create-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=16,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=16,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="8", processes="16", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=16,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=16,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr2-sa10-tnfork-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr2-sa10-tnfork-th4.py index b3b3405..b909532 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr2-sa10-tnfork-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr2-sa10-tnfork-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 78e051285fe2bd67 + @用例ID: a87b665d57b33ba3 @用例名称: tperf-libmicro-bs5-pr2-sa10-tnfork-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=2,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=2,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="4", processes="2", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=2,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=2,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr2-sa10-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr2-sa10-tnpthread_create-th4.py index 17b9811..75e616e 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr2-sa10-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr2-sa10-tnpthread_create-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: a9e5fb8d69fb94f6 + @用例ID: b2f79402032e8d4a @用例名称: tperf-libmicro-bs5-pr2-sa10-tnpthread_create-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=2,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=2,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="4", processes="2", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=2,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=2,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr20-sa10-tnfork-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr20-sa10-tnfork-th4.py index d3d27e3..19cee15 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr20-sa10-tnfork-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr20-sa10-tnfork-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 719bc811a52c33c7 + @用例ID: 6b51447dd45dd9c8 @用例名称: tperf-libmicro-bs5-pr20-sa10-tnfork-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=20,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=20,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="4", processes="20", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=20,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=20,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr20-sa10-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr20-sa10-tnpthread_create-th4.py index 87d433d..e1bc537 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr20-sa10-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr20-sa10-tnpthread_create-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: dceef7c36762c1cd + @用例ID: 15293afbbe66f6b5 @用例名称: tperf-libmicro-bs5-pr20-sa10-tnpthread_create-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=20,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=20,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="4", processes="20", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=20,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=20,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr26-sa10-tnfork-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr26-sa10-tnfork-th4.py index b9923d1..d407438 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr26-sa10-tnfork-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr26-sa10-tnfork-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: dc5d5913da8956a8 + @用例ID: eee9edee87a93a98 @用例名称: tperf-libmicro-bs5-pr26-sa10-tnfork-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=26,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=26,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="4", processes="26", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=26,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=26,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr26-sa10-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr26-sa10-tnpthread_create-th4.py index 3290331..38d867a 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr26-sa10-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr26-sa10-tnpthread_create-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 5cf0fedbf1bdfbcc + @用例ID: b73d46c361308ab3 @用例名称: tperf-libmicro-bs5-pr26-sa10-tnpthread_create-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=26,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=26,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="4", processes="26", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=26,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=26,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr32-sa10-tnfork-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr32-sa10-tnfork-th4.py index 68d4a0c..1c48082 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr32-sa10-tnfork-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr32-sa10-tnfork-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 2a2f26634cc7937b + @用例ID: 2525f53f786f3ad8 @用例名称: tperf-libmicro-bs5-pr32-sa10-tnfork-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=32,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=32,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="4", processes="32", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=32,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=32,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr32-sa10-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr32-sa10-tnpthread_create-th4.py index 20ae3f8..ab63d83 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr32-sa10-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr32-sa10-tnpthread_create-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 6ddfb98add756662 + @用例ID: 204dc057aaf6e7d1 @用例名称: tperf-libmicro-bs5-pr32-sa10-tnpthread_create-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=32,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=32,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="4", processes="32", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=32,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=32,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnfork-th2.py index b9a0d59..e4b11a7 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnfork-th2.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 125504ca30814846 + @用例ID: c6f50790854c275c @用例名称: tperf-libmicro-bs5-pr4-sa10-tnfork-th2 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=2,processes=4,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=2,processes=4,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="2", processes="4", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=2,processes=4,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=2,processes=4,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnfork-th8.py index ce1baf2..618c812 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnfork-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 767373c055a392f2 + @用例ID: 2a6421fdbb469d28 @用例名称: tperf-libmicro-bs5-pr4-sa10-tnfork-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=4,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=4,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="8", processes="4", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=4,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=4,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th2.py b/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th2.py index 2de4dcc..e5d2ff1 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th2.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th2.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: fe3e9a2a67c6bfdc + @用例ID: 40ac65d83494f206 @用例名称: tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th2 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=2,processes=4,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=2,processes=4,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="2", processes="4", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=2,processes=4,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=2,processes=4,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th8.py index dba9ff2..fb3d670 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 14b3fcd7965dacbd + @用例ID: 345d20e1d168f081 @用例名称: tperf-libmicro-bs5-pr4-sa10-tnpthread_create-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=4,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=4,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="8", processes="4", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=4,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=4,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr7-sa10-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr7-sa10-tnfork-th8.py index ccfc236..461fd65 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr7-sa10-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr7-sa10-tnfork-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: d75384b7c3cb8ceb + @用例ID: 9aa323be217f96fe @用例名称: tperf-libmicro-bs5-pr7-sa10-tnfork-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=7,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=8,processes=7,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="8", processes="7", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=7,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=8,processes=7,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr7-sa10-tnpthread_create-th8.py b/testcase/libmicro/tperf-libmicro-bs5-pr7-sa10-tnpthread_create-th8.py index e2199da..c508fa1 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr7-sa10-tnpthread_create-th8.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr7-sa10-tnpthread_create-th8.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: fc5a8f726a8980b3 + @用例ID: 89c113feb9b91203 @用例名称: tperf-libmicro-bs5-pr7-sa10-tnpthread_create-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=7,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=8,processes=7,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="8", processes="7", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=7,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=8,processes=7,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr8-sa10-tnfork-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr8-sa10-tnfork-th4.py index 52fccc0..bd988ac 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr8-sa10-tnfork-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr8-sa10-tnfork-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 78b60cd51776a33c + @用例ID: 2d4a7b33e9b3b2e9 @用例名称: tperf-libmicro-bs5-pr8-sa10-tnfork-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=8,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,threads=4,processes=8,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="fork", threads="4", processes="8", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=8,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=fork,threads=4,processes=8,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/libmicro/tperf-libmicro-bs5-pr8-sa10-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-bs5-pr8-sa10-tnpthread_create-th4.py index 1b65ed4..1d4528a 100755 --- a/testcase/libmicro/tperf-libmicro-bs5-pr8-sa10-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-bs5-pr8-sa10-tnpthread_create-th4.py @@ -18,7 +18,7 @@ from testcase.libmicro.libmicro import PerfLibmicro # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 2d3a7f4af1ba4a58 + @用例ID: 9a5f58df81d3df99 @用例名称: tperf-libmicro-bs5-pr8-sa10-tnpthread_create-th4 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=8,batch-size=5,samples=10 + @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,threads=4,processes=8,batch_size=5,samples=10 """ def tc_setup(self, *args): @@ -38,14 +38,14 @@ class PythonTestCase(MyTestCase): test_name="pthread_create", threads="4", processes="8", - batch-size="5", + batch_size="5", samples="10", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=8,batch-size=5,samples=10 + # @测试步骤: 使用libmicro工具测试性能,参数:test_name=pthread_create,threads=4,processes=8,batch_size=5,samples=10 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, -- Gitee From d4b0e0173cbfd18f87af249f7598f011d309bd40 Mon Sep 17 00:00:00 2001 From: Jian Zhao Date: Wed, 6 May 2026 19:14:31 +0800 Subject: [PATCH 3/4] feat: add run-tool.py for running cases by benchmark tool and subsystem Executes cases sequentially via tsuite with progress and summary output. Usage: ./run-tool.py hackbench --subsys sched ./run-tool.py libmicro --subsys mm ./run-tool.py --list ./run-tool.py fio --template huoyan --dry-run Signed-off-by: Jian Zhao --- run-tool.py | 260 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 260 insertions(+) create mode 100755 run-tool.py diff --git a/run-tool.py b/run-tool.py new file mode 100755 index 0000000..61126c0 --- /dev/null +++ b/run-tool.py @@ -0,0 +1,260 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +按 benchmark 工具和子系统维度批量执行测试用例 + +用法: + # 跑 hackbench 所有 case + ./run-tool.py hackbench + + # 只跑 hackbench 的 sched 子系统 + ./run-tool.py hackbench --subsys sched + + # 只跑 libmicro 的 mm 子系统 + ./run-tool.py libmicro --subsys mm + + # 只跑 sysbench 的 sched 子系统 + ./run-tool.py sysbench --subsys sched + + # 跑 fio 所有 case(指定模板过滤) + ./run-tool.py fio --template huoyan + + # 列出可用的工具和子系统(不执行) + ./run-tool.py --list + + # dry-run 模式(只显示会跑哪些 case,不执行) + ./run-tool.py hackbench --subsys sched --dry-run +""" + +import argparse +import csv +import os +import subprocess +import sys +import time + + +g_top_dir = os.path.dirname(os.path.abspath(__file__)) +g_testcase_dir = os.path.join(g_top_dir, "testcase") +g_tsuite = os.path.join(g_top_dir, "tsuite") + +# parse-csv2case.py 的 strip 字符 +g_strip_char = "=-_#," + + +def gen_case_name(tool_name, params): + """与 parse-csv2case.py 中的 gen_case_name 保持一致""" + result_str = f"tperf-{tool_name}" + stripped_params = { + k.strip().strip(g_strip_char): v.strip() + for k, v in params.items() + } + for arg in sorted(stripped_params.keys()): + value = stripped_params[arg].strip(g_strip_char) + arg_s = arg.strip(g_strip_char) + if "_" in arg_s: + _arg = arg_s.split("_") + result_str += f"-{_arg[0].strip(g_strip_char)[:1]}{_arg[1].strip(g_strip_char)[:1]}" + elif "-" in arg_s: + _arg = arg_s.split("-") + result_str += f"-{_arg[0].strip(g_strip_char)[:1]}{_arg[1].strip(g_strip_char)[:1]}" + else: + result_str += f"-{arg_s[:2]}" + result_str += value + return result_str + + +def find_args_csvs(tool_name): + """查找工具目录下所有 args CSV 文件""" + tool_dir = os.path.join(g_testcase_dir, tool_name) + if not os.path.isdir(tool_dir): + return [] + csvs = [] + for f in sorted(os.listdir(tool_dir)): + if f.startswith(f"{tool_name}-args") and f.endswith(".csv"): + csvs.append(os.path.join(tool_dir, f)) + return csvs + + +def parse_cases(tool_name, subsys_filter=None, template_filter=None): + """解析 CSV,返回符合条件的 case 列表""" + cases = [] + csvs = find_args_csvs(tool_name) + if not csvs: + print(f"错误: 未找到 {tool_name} 的 args CSV 文件", file=sys.stderr) + return cases + + for csv_file in csvs: + with open(csv_file, "r", encoding="utf-8") as f: + reader = csv.DictReader(f) + for row in reader: + t_name = row.get("工具名称", "").strip() + subsys = row.get("子系统", "").strip() + template = row.get("模板", "").strip() + + # 过滤 + if subsys_filter and subsys != subsys_filter: + continue + if template_filter and template != template_filter: + continue + + # 提取参数 + params = { + k.strip(): v.strip() + for k, v in row.items() + if k.strip() not in ["工具名称", "子系统", "权重", "模板"] + } + + case_name = gen_case_name(t_name, params) + case_file = os.path.join(g_testcase_dir, tool_name, f"{case_name}.py") + + cases.append({ + "name": case_name, + "file": case_file, + "subsys": subsys, + "exists": os.path.isfile(case_file), + }) + return cases + + +def list_tools(): + """列出所有可用的工具和子系统""" + print("可用的 benchmark 工具和子系统:") + print("=" * 60) + + for name in sorted(os.listdir(g_testcase_dir)): + tool_dir = os.path.join(g_testcase_dir, name) + if not os.path.isdir(tool_dir): + continue + csvs = find_args_csvs(name) + if not csvs: + continue + + subsys_set = set() + case_count = 0 + for csv_file in csvs: + with open(csv_file, "r", encoding="utf-8") as f: + reader = csv.DictReader(f) + for row in reader: + subsys = row.get("子系统", "").strip() + if subsys: + subsys_set.add(subsys) + case_count += 1 + + subsys_str = ", ".join(sorted(subsys_set)) + print(f" {name:12s} : {case_count:4d} cases, 子系统=[{subsys_str}]") + + +def run_cases(cases, dry_run=False): + """逐个执行 case""" + total = len(cases) + pass_count = 0 + fail_count = 0 + skip_count = 0 + + time_start = time.time() + + for i, case in enumerate(cases, 1): + case_name = case["name"] + case_file = case["file"] + + if not case["exists"]: + print(f"{i:4d}/{total} {case_name:60s} SKIP (脚本不存在)") + skip_count += 1 + continue + + if dry_run: + print(f"{i:4d}/{total} {case_name:60s} [dry-run]") + continue + + # 执行 + rel_path = os.path.relpath(case_file, g_top_dir) + cmd = [g_tsuite, "run", rel_path] + t0 = time.time() + result = subprocess.run(cmd, cwd=g_top_dir, capture_output=True, text=True) + duration = time.time() - t0 + + if result.returncode == 0: + status = "PASS" + pass_count += 1 + else: + status = "FAIL" + fail_count += 1 + + print(f"{i:4d}/{total} {case_name:60s} {status} ({duration:.1f}s)") + + total_time = time.time() - time_start + + # 汇总 + print() + print("=" * 80) + if dry_run: + print(f"[dry-run] 共 {total} 个 case 将被执行, {skip_count} 个缺少脚本") + else: + print(f"总计: {total} 个 case") + print(f" PASS: {pass_count}") + print(f" FAIL: {fail_count}") + print(f" SKIP: {skip_count}") + hours = int(total_time // 3600) + mins = int((total_time % 3600) // 60) + secs = int(total_time % 60) + print(f" 耗时: {hours}h {mins}m {secs}s") + print("=" * 80) + + return fail_count + + +def main(): + parser = argparse.ArgumentParser( + description="按 benchmark 工具和子系统维度批量执行测试用例", + formatter_class=argparse.RawDescriptionHelpFormatter, + epilog=""" +示例: + %(prog)s hackbench # 跑 hackbench 全部 + %(prog)s hackbench --subsys sched # 只跑 hackbench 调度 + %(prog)s libmicro --subsys mm # 只跑 libmicro 内存 + %(prog)s sysbench --subsys sched # 只跑 sysbench 调度 + %(prog)s fio --template huoyan # 跑 fio 的 huoyan 模板 + %(prog)s --list # 列出所有工具和子系统 + %(prog)s hackbench --dry-run # 只列出不执行 +""") + parser.add_argument("tool", nargs="?", help="benchmark 工具名 (如 hackbench, libmicro, sysbench, fio)") + parser.add_argument("--subsys", type=str, default=None, + help="按子系统过滤 (如 sched, mm, io, net)") + parser.add_argument("--template", type=str, default=None, + help="按模板名过滤 (如 huoyan)") + parser.add_argument("--dry-run", action="store_true", + help="只显示会跑哪些 case,不实际执行") + parser.add_argument("--list", action="store_true", + help="列出所有可用的工具和子系统") + + args = parser.parse_args() + + if args.list: + list_tools() + return + + if not args.tool: + parser.error("请指定 benchmark 工具名,或使用 --list 查看可用工具") + + # 解析 case 列表 + cases = parse_cases(args.tool, subsys_filter=args.subsys, template_filter=args.template) + + if not cases: + print(f"未找到符合条件的 case (tool={args.tool}, subsys={args.subsys}, template={args.template})") + sys.exit(1) + + # 输出信息 + subsys_info = f", 子系统={args.subsys}" if args.subsys else "" + template_info = f", 模板={args.template}" if args.template else "" + print(f"工具: {args.tool}{subsys_info}{template_info}") + print(f"共 {len(cases)} 个 case") + print("-" * 80) + + # 执行 + fail_count = run_cases(cases, dry_run=args.dry_run) + sys.exit(1 if fail_count > 0 else 0) + + +if __name__ == "__main__": + main() -- Gitee From a83cd318fb159a6e0076830cb4856ea914e9a664 Mon Sep 17 00:00:00 2001 From: Jian Zhao Date: Wed, 6 May 2026 19:17:55 +0800 Subject: [PATCH 4/4] fix(sysbench): rename CSV columns to valid Python identifiers threads/thread_locks/thread_yields in sysbench-args-sched.csv. Regenerated all sched .py scripts to fix SyntaxError caused by 'thread-locks' being used as a Python keyword argument. Signed-off-by: Jian Zhao --- testcase/sysbench/sysbench-args-sched.csv | 2 +- testcase/sysbench/tperf-sysbench-tl32-ty1000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl32-ty2000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl32-ty3000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl32-ty4000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl32-ty5000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl32-ty6000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl384-ty1000-th104.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl384-ty2000-th104.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl384-ty3000-th104.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl384-ty4000-th104.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty1000-th55.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty1000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty1000-th80.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty2000-th55.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty2000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty2000-th80.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty3000-th55.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty3000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty3000-th80.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty4000-th55.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty4000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty4000-th80.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty5000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty5000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty6000-th32.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl4-ty6000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl512-ty1000-th129.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl512-ty2000-th129.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl512-ty3000-th129.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl512-ty4000-th129.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl8-ty1000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl8-ty2000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl8-ty3000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl8-ty4000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl8-ty5000-th8.py | 10 +++++----- testcase/sysbench/tperf-sysbench-tl8-ty6000-th8.py | 10 +++++----- 41 files changed, 201 insertions(+), 201 deletions(-) diff --git a/testcase/sysbench/sysbench-args-sched.csv b/testcase/sysbench/sysbench-args-sched.csv index 576519a..7d36ffd 100644 --- a/testcase/sysbench/sysbench-args-sched.csv +++ b/testcase/sysbench/sysbench-args-sched.csv @@ -1,4 +1,4 @@ -工具名称,子系统,权重,模板,--threads=,--thread-locks=,--thread-yields= +工具名称,子系统,权重,模板,threads,thread_locks,thread_yields sysbench,sched,0.013705,huoyan,8,4,1000 sysbench,sched,0.013705,huoyan,8,8,1000 sysbench,sched,0.013705,huoyan,8,4,2000 diff --git a/testcase/sysbench/tperf-sysbench-tl32-ty1000-th32.py b/testcase/sysbench/tperf-sysbench-tl32-ty1000-th32.py index 71e7cd8..2d82bd6 100755 --- a/testcase/sysbench/tperf-sysbench-tl32-ty1000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl32-ty1000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 62702306a1b522d7 + @用例ID: 6988d98f7dc2aedb @用例名称: tperf-sysbench-tl32-ty1000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=32,thread-yields=1000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=32,thread_yields=1000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="32", - thread-yields="1000", + thread_locks="32", + thread_yields="1000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=32,thread-yields=1000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=32,thread_yields=1000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl32-ty2000-th32.py b/testcase/sysbench/tperf-sysbench-tl32-ty2000-th32.py index c642f65..660a7e9 100755 --- a/testcase/sysbench/tperf-sysbench-tl32-ty2000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl32-ty2000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: aec09a940d702622 + @用例ID: 4c755db92dc4ad1f @用例名称: tperf-sysbench-tl32-ty2000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=32,thread-yields=2000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=32,thread_yields=2000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="32", - thread-yields="2000", + thread_locks="32", + thread_yields="2000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=32,thread-yields=2000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=32,thread_yields=2000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl32-ty3000-th32.py b/testcase/sysbench/tperf-sysbench-tl32-ty3000-th32.py index b424279..acb1551 100755 --- a/testcase/sysbench/tperf-sysbench-tl32-ty3000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl32-ty3000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: a69878e2564a4141 + @用例ID: 72901b6eb14b98da @用例名称: tperf-sysbench-tl32-ty3000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=32,thread-yields=3000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=32,thread_yields=3000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="32", - thread-yields="3000", + thread_locks="32", + thread_yields="3000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=32,thread-yields=3000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=32,thread_yields=3000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl32-ty4000-th32.py b/testcase/sysbench/tperf-sysbench-tl32-ty4000-th32.py index b01f9ea..f34a3a4 100755 --- a/testcase/sysbench/tperf-sysbench-tl32-ty4000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl32-ty4000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 8cfe52c57c869481 + @用例ID: 02d0dcdfb2420844 @用例名称: tperf-sysbench-tl32-ty4000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=32,thread-yields=4000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=32,thread_yields=4000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="32", - thread-yields="4000", + thread_locks="32", + thread_yields="4000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=32,thread-yields=4000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=32,thread_yields=4000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl32-ty5000-th32.py b/testcase/sysbench/tperf-sysbench-tl32-ty5000-th32.py index 885e816..2874977 100755 --- a/testcase/sysbench/tperf-sysbench-tl32-ty5000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl32-ty5000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 72ede942f541c0db + @用例ID: 86deb44d032460e9 @用例名称: tperf-sysbench-tl32-ty5000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=32,thread-yields=5000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=32,thread_yields=5000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="32", - thread-yields="5000", + thread_locks="32", + thread_yields="5000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=32,thread-yields=5000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=32,thread_yields=5000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl32-ty6000-th32.py b/testcase/sysbench/tperf-sysbench-tl32-ty6000-th32.py index 4a4f5b8..7acbac3 100755 --- a/testcase/sysbench/tperf-sysbench-tl32-ty6000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl32-ty6000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 12b597453569c2bf + @用例ID: 677382b179dca0ea @用例名称: tperf-sysbench-tl32-ty6000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=32,thread-yields=6000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=32,thread_yields=6000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="32", - thread-yields="6000", + thread_locks="32", + thread_yields="6000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=32,thread-yields=6000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=32,thread_yields=6000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl384-ty1000-th104.py b/testcase/sysbench/tperf-sysbench-tl384-ty1000-th104.py index 682d31c..2c8f523 100755 --- a/testcase/sysbench/tperf-sysbench-tl384-ty1000-th104.py +++ b/testcase/sysbench/tperf-sysbench-tl384-ty1000-th104.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: ae922fba367c5a68 + @用例ID: 57ce2dadc9c631e4 @用例名称: tperf-sysbench-tl384-ty1000-th104 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=104,thread-locks=384,thread-yields=1000 + @用例描述: 使用sysbench测试sched性能,参数:threads=104,thread_locks=384,thread_yields=1000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="104", - thread-locks="384", - thread-yields="1000", + thread_locks="384", + thread_yields="1000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=104,thread-locks=384,thread-yields=1000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=104,thread_locks=384,thread_yields=1000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl384-ty2000-th104.py b/testcase/sysbench/tperf-sysbench-tl384-ty2000-th104.py index a153129..8159a84 100755 --- a/testcase/sysbench/tperf-sysbench-tl384-ty2000-th104.py +++ b/testcase/sysbench/tperf-sysbench-tl384-ty2000-th104.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 771843a3ed79bd86 + @用例ID: 7f447d6f5d1c898a @用例名称: tperf-sysbench-tl384-ty2000-th104 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=104,thread-locks=384,thread-yields=2000 + @用例描述: 使用sysbench测试sched性能,参数:threads=104,thread_locks=384,thread_yields=2000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="104", - thread-locks="384", - thread-yields="2000", + thread_locks="384", + thread_yields="2000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=104,thread-locks=384,thread-yields=2000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=104,thread_locks=384,thread_yields=2000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl384-ty3000-th104.py b/testcase/sysbench/tperf-sysbench-tl384-ty3000-th104.py index eb88abd..84a3aca 100755 --- a/testcase/sysbench/tperf-sysbench-tl384-ty3000-th104.py +++ b/testcase/sysbench/tperf-sysbench-tl384-ty3000-th104.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 673aa156c55b1069 + @用例ID: cb52ede89027768a @用例名称: tperf-sysbench-tl384-ty3000-th104 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=104,thread-locks=384,thread-yields=3000 + @用例描述: 使用sysbench测试sched性能,参数:threads=104,thread_locks=384,thread_yields=3000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="104", - thread-locks="384", - thread-yields="3000", + thread_locks="384", + thread_yields="3000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=104,thread-locks=384,thread-yields=3000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=104,thread_locks=384,thread_yields=3000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl384-ty4000-th104.py b/testcase/sysbench/tperf-sysbench-tl384-ty4000-th104.py index 1efb12b..80d5951 100755 --- a/testcase/sysbench/tperf-sysbench-tl384-ty4000-th104.py +++ b/testcase/sysbench/tperf-sysbench-tl384-ty4000-th104.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 42c1556be6c0f0aa + @用例ID: 9c01ee8a56732ae4 @用例名称: tperf-sysbench-tl384-ty4000-th104 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=104,thread-locks=384,thread-yields=4000 + @用例描述: 使用sysbench测试sched性能,参数:threads=104,thread_locks=384,thread_yields=4000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="104", - thread-locks="384", - thread-yields="4000", + thread_locks="384", + thread_yields="4000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=104,thread-locks=384,thread-yields=4000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=104,thread_locks=384,thread_yields=4000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py index 959c3f1..9852a38 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: e7bef0224270be52 + @用例ID: bcf7cffdb5b6cdca @用例名称: tperf-sysbench-tl4-ty1000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=4,thread-yields=1000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=1000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="4", - thread-yields="1000", + thread_locks="4", + thread_yields="1000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=4,thread-yields=1000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=4,thread_yields=1000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th55.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th55.py index 940ee93..fbf46d6 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th55.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th55.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 00e121520e84cfd5 + @用例ID: b71a5ffdd4eafa38 @用例名称: tperf-sysbench-tl4-ty1000-th55 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=55,thread-locks=4,thread-yields=1000 + @用例描述: 使用sysbench测试sched性能,参数:threads=55,thread_locks=4,thread_yields=1000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="55", - thread-locks="4", - thread-yields="1000", + thread_locks="4", + thread_yields="1000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=55,thread-locks=4,thread-yields=1000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=55,thread_locks=4,thread_yields=1000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th8.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th8.py index 752e292..ab4fbc6 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: cb384b37d3258602 + @用例ID: f0a53fb37a19c9a3 @用例名称: tperf-sysbench-tl4-ty1000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=4,thread-yields=1000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=4,thread_yields=1000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="4", - thread-yields="1000", + thread_locks="4", + thread_yields="1000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=4,thread-yields=1000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=4,thread_yields=1000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th80.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th80.py index 798e69e..4e48684 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th80.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th80.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 5817cc56c57a106f + @用例ID: a5fae5f3df28d090 @用例名称: tperf-sysbench-tl4-ty1000-th80 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=80,thread-locks=4,thread-yields=1000 + @用例描述: 使用sysbench测试sched性能,参数:threads=80,thread_locks=4,thread_yields=1000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="80", - thread-locks="4", - thread-yields="1000", + thread_locks="4", + thread_yields="1000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=80,thread-locks=4,thread-yields=1000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=80,thread_locks=4,thread_yields=1000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py index ace017d..121728b 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 7c9f4c6c2dde505d + @用例ID: e537b3aabff032a0 @用例名称: tperf-sysbench-tl4-ty2000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=4,thread-yields=2000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=2000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="4", - thread-yields="2000", + thread_locks="4", + thread_yields="2000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=4,thread-yields=2000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=4,thread_yields=2000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th55.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th55.py index 8882f43..2fde7ae 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th55.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th55.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 74f70de09ea27ec8 + @用例ID: 671b34d3ceee41ba @用例名称: tperf-sysbench-tl4-ty2000-th55 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=55,thread-locks=4,thread-yields=2000 + @用例描述: 使用sysbench测试sched性能,参数:threads=55,thread_locks=4,thread_yields=2000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="55", - thread-locks="4", - thread-yields="2000", + thread_locks="4", + thread_yields="2000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=55,thread-locks=4,thread-yields=2000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=55,thread_locks=4,thread_yields=2000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th8.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th8.py index a38d5c3..ab11212 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 33395e8482242fa4 + @用例ID: 8d1d402b34077b55 @用例名称: tperf-sysbench-tl4-ty2000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=4,thread-yields=2000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=4,thread_yields=2000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="4", - thread-yields="2000", + thread_locks="4", + thread_yields="2000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=4,thread-yields=2000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=4,thread_yields=2000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th80.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th80.py index cc29933..383ccb6 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th80.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th80.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 6d57fe027acb7376 + @用例ID: 2fa7981d8f1f3432 @用例名称: tperf-sysbench-tl4-ty2000-th80 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=80,thread-locks=4,thread-yields=2000 + @用例描述: 使用sysbench测试sched性能,参数:threads=80,thread_locks=4,thread_yields=2000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="80", - thread-locks="4", - thread-yields="2000", + thread_locks="4", + thread_yields="2000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=80,thread-locks=4,thread-yields=2000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=80,thread_locks=4,thread_yields=2000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py index b2ac702..89c522e 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: ea1921f09ccf395a + @用例ID: 8f05e0ba96f349d6 @用例名称: tperf-sysbench-tl4-ty3000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=4,thread-yields=3000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=3000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="4", - thread-yields="3000", + thread_locks="4", + thread_yields="3000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=4,thread-yields=3000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=4,thread_yields=3000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th55.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th55.py index 98464bc..6d607cf 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th55.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th55.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: b6c24b24809df55d + @用例ID: 31cf1616cb14de95 @用例名称: tperf-sysbench-tl4-ty3000-th55 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=55,thread-locks=4,thread-yields=3000 + @用例描述: 使用sysbench测试sched性能,参数:threads=55,thread_locks=4,thread_yields=3000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="55", - thread-locks="4", - thread-yields="3000", + thread_locks="4", + thread_yields="3000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=55,thread-locks=4,thread-yields=3000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=55,thread_locks=4,thread_yields=3000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th8.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th8.py index 1e07578..7ab65e6 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: af268a4c239b9dd5 + @用例ID: 86548486191996ed @用例名称: tperf-sysbench-tl4-ty3000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=4,thread-yields=3000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=4,thread_yields=3000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="4", - thread-yields="3000", + thread_locks="4", + thread_yields="3000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=4,thread-yields=3000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=4,thread_yields=3000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th80.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th80.py index 2340d23..3482d2b 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th80.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th80.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 7760341aaf7a4e24 + @用例ID: 298defd7da118614 @用例名称: tperf-sysbench-tl4-ty3000-th80 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=80,thread-locks=4,thread-yields=3000 + @用例描述: 使用sysbench测试sched性能,参数:threads=80,thread_locks=4,thread_yields=3000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="80", - thread-locks="4", - thread-yields="3000", + thread_locks="4", + thread_yields="3000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=80,thread-locks=4,thread-yields=3000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=80,thread_locks=4,thread_yields=3000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py index 10401ab..3cd55c0 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 482c01fe5cf8d968 + @用例ID: 610b0221aa7c3642 @用例名称: tperf-sysbench-tl4-ty4000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=4,thread-yields=4000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=4000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="4", - thread-yields="4000", + thread_locks="4", + thread_yields="4000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=4,thread-yields=4000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=4,thread_yields=4000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th55.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th55.py index e218751..5c97ce0 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th55.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th55.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 94757ad529388874 + @用例ID: fdbed9d363f28ae5 @用例名称: tperf-sysbench-tl4-ty4000-th55 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=55,thread-locks=4,thread-yields=4000 + @用例描述: 使用sysbench测试sched性能,参数:threads=55,thread_locks=4,thread_yields=4000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="55", - thread-locks="4", - thread-yields="4000", + thread_locks="4", + thread_yields="4000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=55,thread-locks=4,thread-yields=4000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=55,thread_locks=4,thread_yields=4000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th8.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th8.py index 6c95d52..7faf714 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: afbfd6fe53ea40dd + @用例ID: 2c9d6923f197d1c9 @用例名称: tperf-sysbench-tl4-ty4000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=4,thread-yields=4000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=4,thread_yields=4000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="4", - thread-yields="4000", + thread_locks="4", + thread_yields="4000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=4,thread-yields=4000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=4,thread_yields=4000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th80.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th80.py index 0f9dedc..b60623a 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th80.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th80.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 61ea0d37796dfe0f + @用例ID: c0f67aa9ae0d9e3c @用例名称: tperf-sysbench-tl4-ty4000-th80 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=80,thread-locks=4,thread-yields=4000 + @用例描述: 使用sysbench测试sched性能,参数:threads=80,thread_locks=4,thread_yields=4000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="80", - thread-locks="4", - thread-yields="4000", + thread_locks="4", + thread_yields="4000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=80,thread-locks=4,thread-yields=4000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=80,thread_locks=4,thread_yields=4000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty5000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty5000-th32.py index a5e2729..900dc6b 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty5000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty5000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: db34f897c3a511b7 + @用例ID: 281814bb541325b9 @用例名称: tperf-sysbench-tl4-ty5000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=4,thread-yields=5000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=5000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="4", - thread-yields="5000", + thread_locks="4", + thread_yields="5000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=4,thread-yields=5000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=4,thread_yields=5000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty5000-th8.py b/testcase/sysbench/tperf-sysbench-tl4-ty5000-th8.py index 64a7f4e..18f6347 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty5000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty5000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 40777db520aa95f9 + @用例ID: dbd4d185c41cba14 @用例名称: tperf-sysbench-tl4-ty5000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=4,thread-yields=5000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=4,thread_yields=5000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="4", - thread-yields="5000", + thread_locks="4", + thread_yields="5000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=4,thread-yields=5000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=4,thread_yields=5000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty6000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty6000-th32.py index fddc4cc..796955b 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty6000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty6000-th32.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: c43844fe4e1bc351 + @用例ID: eebb152c89a87fca @用例名称: tperf-sysbench-tl4-ty6000-th32 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread-locks=4,thread-yields=6000 + @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=6000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="32", - thread-locks="4", - thread-yields="6000", + thread_locks="4", + thread_yields="6000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread-locks=4,thread-yields=6000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=32,thread_locks=4,thread_yields=6000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty6000-th8.py b/testcase/sysbench/tperf-sysbench-tl4-ty6000-th8.py index beef791..8ed9a87 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty6000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty6000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: f2af88564bda418e + @用例ID: f48d85e338ac4135 @用例名称: tperf-sysbench-tl4-ty6000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=4,thread-yields=6000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=4,thread_yields=6000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="4", - thread-yields="6000", + thread_locks="4", + thread_yields="6000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=4,thread-yields=6000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=4,thread_yields=6000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th129.py b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th129.py index 5905420..662e8a2 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th129.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th129.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: d76542093492fee9 + @用例ID: 3c780e5ce631ca68 @用例名称: tperf-sysbench-tl512-ty1000-th129 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=129,thread-locks=512,thread-yields=1000 + @用例描述: 使用sysbench测试sched性能,参数:threads=129,thread_locks=512,thread_yields=1000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="129", - thread-locks="512", - thread-yields="1000", + thread_locks="512", + thread_yields="1000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=129,thread-locks=512,thread-yields=1000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=129,thread_locks=512,thread_yields=1000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th129.py b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th129.py index af5accf..dc3f7df 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th129.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th129.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 03cbcd2edca8ae68 + @用例ID: 76f930788b55fa82 @用例名称: tperf-sysbench-tl512-ty2000-th129 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=129,thread-locks=512,thread-yields=2000 + @用例描述: 使用sysbench测试sched性能,参数:threads=129,thread_locks=512,thread_yields=2000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="129", - thread-locks="512", - thread-yields="2000", + thread_locks="512", + thread_yields="2000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=129,thread-locks=512,thread-yields=2000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=129,thread_locks=512,thread_yields=2000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th129.py b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th129.py index 3ed9b1c..503f756 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th129.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th129.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: e47b77c62a734c37 + @用例ID: 60d3d626e016e3bc @用例名称: tperf-sysbench-tl512-ty3000-th129 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=129,thread-locks=512,thread-yields=3000 + @用例描述: 使用sysbench测试sched性能,参数:threads=129,thread_locks=512,thread_yields=3000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="129", - thread-locks="512", - thread-yields="3000", + thread_locks="512", + thread_yields="3000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=129,thread-locks=512,thread-yields=3000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=129,thread_locks=512,thread_yields=3000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th129.py b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th129.py index 1785d08..2099cf6 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th129.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th129.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: d154568764c310bb + @用例ID: 9286909ec04ad86c @用例名称: tperf-sysbench-tl512-ty4000-th129 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=129,thread-locks=512,thread-yields=4000 + @用例描述: 使用sysbench测试sched性能,参数:threads=129,thread_locks=512,thread_yields=4000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="129", - thread-locks="512", - thread-yields="4000", + thread_locks="512", + thread_yields="4000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=129,thread-locks=512,thread-yields=4000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=129,thread_locks=512,thread_yields=4000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl8-ty1000-th8.py b/testcase/sysbench/tperf-sysbench-tl8-ty1000-th8.py index c5c675d..59842f2 100755 --- a/testcase/sysbench/tperf-sysbench-tl8-ty1000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl8-ty1000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 1ef753e8601da0dc + @用例ID: cd74f96486ba357c @用例名称: tperf-sysbench-tl8-ty1000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=8,thread-yields=1000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=8,thread_yields=1000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="8", - thread-yields="1000", + thread_locks="8", + thread_yields="1000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=8,thread-yields=1000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=8,thread_yields=1000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl8-ty2000-th8.py b/testcase/sysbench/tperf-sysbench-tl8-ty2000-th8.py index 3b1ce80..93f7092 100755 --- a/testcase/sysbench/tperf-sysbench-tl8-ty2000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl8-ty2000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: ad39b412979f9d8a + @用例ID: 48ca140f7e835e9b @用例名称: tperf-sysbench-tl8-ty2000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=8,thread-yields=2000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=8,thread_yields=2000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="8", - thread-yields="2000", + thread_locks="8", + thread_yields="2000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=8,thread-yields=2000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=8,thread_yields=2000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl8-ty3000-th8.py b/testcase/sysbench/tperf-sysbench-tl8-ty3000-th8.py index 2876521..6c4f4dd 100755 --- a/testcase/sysbench/tperf-sysbench-tl8-ty3000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl8-ty3000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: 73b19671c7278a37 + @用例ID: cfa7d7003e9cb4c2 @用例名称: tperf-sysbench-tl8-ty3000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=8,thread-yields=3000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=8,thread_yields=3000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="8", - thread-yields="3000", + thread_locks="8", + thread_yields="3000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=8,thread-yields=3000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=8,thread_yields=3000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl8-ty4000-th8.py b/testcase/sysbench/tperf-sysbench-tl8-ty4000-th8.py index 38a2f62..59aff31 100755 --- a/testcase/sysbench/tperf-sysbench-tl8-ty4000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl8-ty4000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: d3a5e6a5c95f86ce + @用例ID: 4b0c7c88397ef439 @用例名称: tperf-sysbench-tl8-ty4000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=8,thread-yields=4000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=8,thread_yields=4000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="8", - thread-yields="4000", + thread_locks="8", + thread_yields="4000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=8,thread-yields=4000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=8,thread_yields=4000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl8-ty5000-th8.py b/testcase/sysbench/tperf-sysbench-tl8-ty5000-th8.py index 7ff7373..5015fe2 100755 --- a/testcase/sysbench/tperf-sysbench-tl8-ty5000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl8-ty5000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: fc67ee910c278fa9 + @用例ID: f798c59810bb2043 @用例名称: tperf-sysbench-tl8-ty5000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=8,thread-yields=5000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=8,thread_yields=5000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="8", - thread-yields="5000", + thread_locks="8", + thread_yields="5000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=8,thread-yields=5000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=8,thread_yields=5000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, diff --git a/testcase/sysbench/tperf-sysbench-tl8-ty6000-th8.py b/testcase/sysbench/tperf-sysbench-tl8-ty6000-th8.py index e4976c5..30a438b 100755 --- a/testcase/sysbench/tperf-sysbench-tl8-ty6000-th8.py +++ b/testcase/sysbench/tperf-sysbench-tl8-ty6000-th8.py @@ -18,7 +18,7 @@ from testcase.sysbench.sysbench import PerfSysbench # noqa: E402 class PythonTestCase(MyTestCase): """ - @用例ID: a8163e135ec9ddff + @用例ID: 3d16832128df4185 @用例名称: tperf-sysbench-tl8-ty6000-th8 @用例级别: 3 @用例标签: @@ -26,7 +26,7 @@ class PythonTestCase(MyTestCase): @用例类型: 性能测试 @自动化: 1 @超时时间: 0 - @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread-locks=8,thread-yields=6000 + @用例描述: 使用sysbench测试sched性能,参数:threads=8,thread_locks=8,thread_yields=6000 """ def tc_setup(self, *args): @@ -36,14 +36,14 @@ class PythonTestCase(MyTestCase): self.perf_tool = PerfSysbench( tc_name=self.tc_name, threads="8", - thread-locks="8", - thread-yields="6000", + thread_locks="8", + thread_yields="6000", ) def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread-locks=8,thread-yields=6000 + # @测试步骤: 使用sysbench工具测试性能,参数:threads=8,thread_locks=8,thread_yields=6000 # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, -- Gitee