From dd446e0c73a8a21b5cd353f8fa635fe662e21965 Mon Sep 17 00:00:00 2001 From: deshengwu Date: Fri, 3 Apr 2026 17:40:23 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=B8=8D=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=88=86=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- tperf.py | 52 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/tperf.py b/tperf.py index 340ae42..793e8ad 100755 --- a/tperf.py +++ b/tperf.py @@ -60,6 +60,9 @@ def parse_args(): args_parser.add_argument( "-p", "--parse", help="解析性能测试结果", default=None, required=False ) + args_parser.add_argument( + "-s", "--score", help="计算性能评分", action="store_true", default=False + ) return args_parser.parse_args() @@ -233,7 +236,7 @@ def get_node_env_info(config: dict): return env_info -def run_tperf(template: collections.OrderedDict, runner_id: str): +def run_tperf(template: collections.OrderedDict, runner_id: str, score: bool = False): tsuite = os.path.join(tperf_top_dir, "tsuite") wrapper_script = f"/tmp/tperf.wrapper.{runner_id}.sh" @@ -256,7 +259,7 @@ def run_tperf(template: collections.OrderedDict, runner_id: str): for tc_name in template: tc_index += 1 # 如果用例所有指标项的权重都是0,就忽略该用例,节约测试时间 - if all(x.get("权重", 0) == 0 for x in template[tc_name].values()): + if score and all(x.get("权重", 0) == 0 for x in template[tc_name].values()): warn(f"{tc_name} all item weight 0, ignore testcase") continue cmd = f"{wrapper_script} '{tsuite}' run {tc_name}" @@ -349,24 +352,27 @@ def parse_result_files( def parse_data(args: argparse.Namespace) -> dict: - base = get_base(args) template = None if args.template: template = get_template(args) result_dict = parse_result_files(result_dir=args.parse, template=template) report_id = os.path.basename(os.path.abspath(args.parse)) - result_json = os.path.join(args.parse, f"parse-report-{report_id}.json") - if os.path.exists(result_json): - warn(f"the result json {result_json} existed, remove it") - os.remove(result_json) - report(data=result_dict, base=base, format="json", output=result_json) - msg(f"parse report saved to {result_json}") - result_excel = os.path.join(args.parse, f"parse-report-{report_id}.xlsx") - if os.path.exists(result_excel): - warn(f"the result excel {result_excel} existed, remove it") - os.remove(result_excel) - report(data=result_dict, base=base, format="excel", output=result_excel) - msg(f"parse report saved to {result_excel}") + if args.score: + base = get_base(args) + result_json = os.path.join(args.parse, f"parse-report-{report_id}.json") + if os.path.exists(result_json): + warn(f"the result json {result_json} existed, remove it") + os.remove(result_json) + report(data=result_dict, base=base, format="json", output=result_json) + msg(f"parse report saved to {result_json}") + result_excel = os.path.join(args.parse, f"parse-report-{report_id}.xlsx") + if os.path.exists(result_excel): + warn(f"the result excel {result_excel} existed, remove it") + os.remove(result_excel) + report(data=result_dict, base=base, format="excel", output=result_excel) + msg(f"parse report saved to {result_excel}") + else: + msg("跳过评分计算,如需计算评分请添加 --score 参数") return args.parse @@ -608,7 +614,8 @@ def main(): msg(f"runner_id: {runner_id}") config = get_config(args) template = get_template(args) - base = get_base(args) + if args.score: + base = get_base(args) env_node_prepare(config=config, runner_id=runner_id) # 将测试结果保存到文件 @@ -639,7 +646,9 @@ def main(): indent=4, ensure_ascii=False, ) - result_dict[loop] = run_tperf(template=template, runner_id=runner_id) + result_dict[loop] = run_tperf( + template=template, runner_id=runner_id, score=args.score + ) dbg(result_dict[loop]) shutil.move(src=data_dir, dst=os.path.join(loop_dir, "perf")) shutil.move(src=case_log_dir, dst=os.path.join(loop_dir, "testcase")) @@ -656,10 +665,11 @@ def main(): ) dbg(json.dumps(result_dict, indent=4, ensure_ascii=False)) - result_json = os.path.join(result_dir, f"report-{runner_id}.json") - report(data=result_dict, base=base, format="json", output=result_json) - result_excel = os.path.join(result_dir, f"report-{runner_id}.xlsx") - report(data=result_dict, base=base, format="excel", output=result_excel) + if args.score: + result_json = os.path.join(result_dir, f"report-{runner_id}.json") + report(data=result_dict, base=base, format="json", output=result_json) + result_excel = os.path.join(result_dir, f"report-{runner_id}.xlsx") + report(data=result_dict, base=base, format="excel", output=result_excel) env_node_cleanup(config=config, runner_id=runner_id) except Exception as e: -- Gitee From ec05d919d02fca92cb0f669cbd6db3b530bf4212 Mon Sep 17 00:00:00 2001 From: deshengwu Date: Tue, 7 Apr 2026 00:31:22 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=8D=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=88=86=E5=80=BC=EF=BC=8C=E5=8F=AA=E6=9C=89=E4=BC=A0?= =?UTF-8?q?=E5=85=A5--score=E5=8F=82=E6=95=B0=E6=89=8D=E7=AE=97=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- tperf.py | 206 ++++++++++++++++++++++++++----------------------------- 1 file changed, 96 insertions(+), 110 deletions(-) diff --git a/tperf.py b/tperf.py index 793e8ad..bf4ea6d 100755 --- a/tperf.py +++ b/tperf.py @@ -25,7 +25,7 @@ from common.lib.common import command_check # noqa: E402 g_debug = 0 -def dbg(msg: str, level=1): +def dbg(msg: object, level=1): if g_debug >= level: print(msg, file=sys.stderr, flush=True) @@ -51,18 +51,10 @@ def parse_args(): args_parser.add_argument("-c", "--config", help="环境配置文件", required=False) args_parser.add_argument("-t", "--template", help="性能用例集模板", required=False) args_parser.add_argument("-b", "--base", help="基准性能", required=False) - args_parser.add_argument( - "-l", "--loop", help="测试轮次", default=1, type=int, required=False - ) - args_parser.add_argument( - "-d", "--debug", help="打印调试日志", action="count", default=0, required=False - ) - args_parser.add_argument( - "-p", "--parse", help="解析性能测试结果", default=None, required=False - ) - args_parser.add_argument( - "-s", "--score", help="计算性能评分", action="store_true", default=False - ) + args_parser.add_argument("-l", "--loop", help="测试轮次", default=1, type=int, required=False) + args_parser.add_argument("-d", "--debug", help="打印调试日志", action="count", default=0, required=False) + args_parser.add_argument("-p", "--parse", help="解析性能测试结果", default=None, required=False) + args_parser.add_argument("-s", "--score", help="计算性能评分", action="store_true", default=False) return args_parser.parse_args() @@ -77,10 +69,7 @@ def get_config(args: argparse.Namespace) -> dict: raise FileNotFoundError(f"配置文件{config_file}不存在") config = configparser.ConfigParser() config.read(config_file) - config_dict = { - section: collections.OrderedDict(config.items(section)) - for section in config.sections() - } + config_dict = {section: collections.OrderedDict(config.items(section)) for section in config.sections()} return config_dict @@ -104,10 +93,7 @@ def get_template(args: argparse.Namespace) -> collections.OrderedDict: row_index += 1 row = [item.strip() for item in row] if title_flag: - if ( - len(row) >= len(template_title_list) - and list(row)[:6] == template_title_list - ): + if len(row) >= len(template_title_list) and list(row)[:6] == template_title_list: title_flag = False title_list = row dbg(f"title_list:{title_list}") @@ -129,13 +115,9 @@ def get_template(args: argparse.Namespace) -> collections.OrderedDict: else: perf_item = row[1].strip() if len(perf_item) == 0: - raise ValueError( - f"row:{row_index} 性能用例{perf_case}性能指标名不能为空" - ) + raise ValueError(f"row:{row_index} 性能用例{perf_case}性能指标名不能为空") if perf_item in result_dict[perf_case]: - raise Exception( - f"row:{row_index} 性能用例{perf_case}性能指标{perf_item}重复" - ) + raise Exception(f"row:{row_index} 性能用例{perf_case}性能指标{perf_item}重复") result_dict[perf_case][perf_item] = collections.OrderedDict() for k, v in zip(title_list[2:], row[2:]): k = str(k).strip() @@ -149,9 +131,7 @@ def get_template(args: argparse.Namespace) -> collections.OrderedDict: warn(f"{perf_case} 指标 {perf_item} 权重 {v} 太小,设置为0") v = 0 if v > 100: - warn( - f"{perf_case} 指标 {perf_item} 权重 {v} 太大,设置为最大值100" - ) + warn(f"{perf_case} 指标 {perf_item} 权重 {v} 太大,设置为最大值100") v = 100 result_dict[perf_case][perf_item][k] = float(v) else: @@ -203,9 +183,7 @@ def env_node_cleanup(config: dict, runner_id: str): def get_env_info(): env_info = {} - env_info["time"] = ( - datetime.datetime.now().astimezone().isoformat(timespec="seconds") - ) + env_info["time"] = datetime.datetime.now().astimezone().isoformat(timespec="seconds") env_info["os"] = platform.system() env_info["arch"] = platform.machine() env_info["uname-a"] = command_check("uname -a")[0].strip() @@ -267,9 +245,7 @@ def run_tperf(template: collections.OrderedDict, runner_id: str, score: bool = F index_str = f"{tc_index}/{nr_tc}" prt(f"{index_str:7} {tc_name:50} ", end="") time_start = time.time() - outs, errs, code, pid = command_check( - cmd=cmd, check_code=False, check_errs=False - ) + outs, errs, code, pid = command_check(cmd=cmd, check_code=False, check_errs=False) dbg( f"run command: {cmd}, code: {code}, pid: {pid}, outs: {outs}, errs: {errs}", level=2, @@ -310,18 +286,14 @@ def run_tperf(template: collections.OrderedDict, runner_id: str, score: bool = F item_data["L1"] = template[tc_name][item].get("L1", "") item_data["L2"] = template[tc_name][item].get("L2", "") item_data["weight"] = weight - prt( - f" - {item:61} {item_data['value']} {item_data['unit']} L0:{item_data['L0']} weight:{weight}" - ) + prt(f" - {item:61} {item_data['value']} {item_data['unit']} L0:{item_data['L0']} weight:{weight}") msg(f"PASS: {pass_count}, FAIL: {fail_count}") if fail_count > 0: - raise RuntimeError(f"there are {fail_count} failed testcases") + err(f"there are {fail_count} failed testcases") return result_dict -def parse_result_files( - result_dir: str, template: collections.OrderedDict = None -) -> dict: +def parse_result_files(result_dir: str, template: collections.OrderedDict = None) -> dict: if not os.path.isdir(result_dir): raise NotADirectoryError(f"结果目录{result_dir}不存在") result_dict = collections.OrderedDict() @@ -344,35 +316,42 @@ def parse_result_files( if item not in template[tc]: continue loop_data[tc]["result"][item]["L0"] = template[tc][item]["L0"] - loop_data[tc]["result"][item]["weight"] = template[tc][item][ - "权重" - ] + loop_data[tc]["result"][item]["weight"] = template[tc][item]["权重"] result_dict[loop] = loop_data return result_dict def parse_data(args: argparse.Namespace) -> dict: + base = get_base(args) template = None if args.template: template = get_template(args) result_dict = parse_result_files(result_dir=args.parse, template=template) report_id = os.path.basename(os.path.abspath(args.parse)) - if args.score: - base = get_base(args) - result_json = os.path.join(args.parse, f"parse-report-{report_id}.json") - if os.path.exists(result_json): - warn(f"the result json {result_json} existed, remove it") - os.remove(result_json) - report(data=result_dict, base=base, format="json", output=result_json) - msg(f"parse report saved to {result_json}") - result_excel = os.path.join(args.parse, f"parse-report-{report_id}.xlsx") - if os.path.exists(result_excel): - warn(f"the result excel {result_excel} existed, remove it") - os.remove(result_excel) - report(data=result_dict, base=base, format="excel", output=result_excel) - msg(f"parse report saved to {result_excel}") - else: - msg("跳过评分计算,如需计算评分请添加 --score 参数") + result_json = os.path.join(args.parse, f"parse-report-{report_id}.json") + if os.path.exists(result_json): + warn(f"the result json {result_json} existed, remove it") + os.remove(result_json) + report( + data=result_dict, + base=base, + format="json", + output=result_json, + score=args.score, + ) + msg(f"parse report saved to {result_json}") + result_excel = os.path.join(args.parse, f"parse-report-{report_id}.xlsx") + if os.path.exists(result_excel): + warn(f"the result excel {result_excel} existed, remove it") + os.remove(result_excel) + report( + data=result_dict, + base=base, + format="excel", + output=result_excel, + score=args.score, + ) + msg(f"parse report saved to {result_excel}") return args.parse @@ -467,17 +446,13 @@ def summary_result(data: dict, base: dict) -> dict: } for L0 in result_dict["dim"]: dbg(f"try get score for {L0}") - result_dict["dim"][L0]["score"] = int( - safe_weighted_geometric_mean(result_dict["dim"][L0]["data"]) * 10000 - ) + result_dict["dim"][L0]["score"] = int(safe_weighted_geometric_mean(result_dict["dim"][L0]["data"]) * 10000) msg(f"{L0} score: {result_dict['dim'][L0]['score']}") - result_dict["score"] = sum( - result_dict["dim"][L0]["score"] for L0 in result_dict["dim"] - ) + result_dict["score"] = sum(result_dict["dim"][L0]["score"] for L0 in result_dict["dim"]) return result_dict -def report_excel(data: dict, base: dict, output: str): +def report_excel(data: dict, base: dict, output: str, score: bool = True): from openpyxl import Workbook # pyright: ignore[reportMissingModuleSource] book = Workbook() @@ -511,14 +486,28 @@ def report_excel(data: dict, base: dict, output: str): summary_title.append("平均值") summary_title.append("极差/平均值") - sheet_summary.append(summary_title) - for dim in data[loop_list[0]]["score"]["dim"]: - summary_row = [dim] + if score: + sheet_summary.append(summary_title) + for dim in data[loop_list[0]]["score"]["dim"]: + summary_row = [dim] + score_list = [] + for loop in loop_list: + s = data[loop]["score"]["dim"][dim]["score"] + summary_row.append(s) + score_list.append(s) + max_value = max(score_list) + min_value = min(score_list) + avg_value = sum(score_list) / len(score_list) + range_value = max_value - min_value + range_avg_value = range_value / avg_value if avg_value != 0 else 0 + summary_row += [max_value, min_value, avg_value, range_avg_value] + sheet_summary.append(summary_row) + summary_row = ["总分"] score_list = [] for loop in loop_list: - score = data[loop]["score"]["dim"][dim]["score"] - summary_row.append(score) - score_list.append(score) + s = data[loop]["score"]["score"] + summary_row.append(s) + score_list.append(s) max_value = max(score_list) min_value = min(score_list) avg_value = sum(score_list) / len(score_list) @@ -526,19 +515,8 @@ def report_excel(data: dict, base: dict, output: str): range_avg_value = range_value / avg_value if avg_value != 0 else 0 summary_row += [max_value, min_value, avg_value, range_avg_value] sheet_summary.append(summary_row) - summary_row = ["总分"] - score_list = [] - for loop in loop_list: - score = data[loop]["score"]["score"] - summary_row.append(score) - score_list.append(score) - max_value = max(score_list) - min_value = min(score_list) - avg_value = sum(score_list) / len(score_list) - range_value = max_value - min_value - range_avg_value = range_value / avg_value if avg_value != 0 else 0 - summary_row += [max_value, min_value, avg_value, range_avg_value] - sheet_summary.append(summary_row) + else: + sheet_summary.append(["未计算评分,如需评分请使用 --score 参数"]) sheet_data.append(data_title) for tc_name in sorted(data[loop_list[0]]["data"].keys()): @@ -555,7 +533,10 @@ def report_excel(data: dict, base: dict, output: str): item_data.get("type", ""), item_data.get("unit", ""), ] - row_data.append(base[tc_name]["result"][item]["value"]) + if base: + row_data.append(base[tc_name]["result"][item]["value"]) + else: + row_data.append(0) data_list = [] for loop in loop_list: value = data[loop]["data"][tc_name]["result"][item].get("value", "") @@ -579,19 +560,18 @@ def report_excel(data: dict, base: dict, output: str): book.save(output) -def report(data: dict, base: dict, format: str, output: str): +def report(data: dict, base: dict, format: str, output: str, score: bool = True): data_dict = collections.OrderedDict() for loop in sorted(list(data.keys())): - summary = summary_result(data=data[loop], base=base) - data_dict[loop] = { - "data": data[loop], - "score": summary, - } + loop_entry = {"data": data[loop]} + if score: + loop_entry["score"] = summary_result(data=data[loop], base=base) + data_dict[loop] = loop_entry if format == "json": with open(output, "w") as f: json.dump(data_dict, f, indent=4, ensure_ascii=False) elif format == "excel": - report_excel(data=data_dict, base=base, output=output) + report_excel(data=data_dict, base=base, output=output, score=score) else: raise TypeError(f"unknown report format {format}") @@ -614,6 +594,7 @@ def main(): msg(f"runner_id: {runner_id}") config = get_config(args) template = get_template(args) + base = None if args.score: base = get_base(args) env_node_prepare(config=config, runner_id=runner_id) @@ -646,9 +627,7 @@ def main(): indent=4, ensure_ascii=False, ) - result_dict[loop] = run_tperf( - template=template, runner_id=runner_id, score=args.score - ) + result_dict[loop] = run_tperf(template=template, runner_id=runner_id, score=args.score) dbg(result_dict[loop]) shutil.move(src=data_dir, dst=os.path.join(loop_dir, "perf")) shutil.move(src=case_log_dir, dst=os.path.join(loop_dir, "testcase")) @@ -660,16 +639,25 @@ def main(): loop_hour = int(time_loop_cost / 3600) loop_min = int((time_loop_cost % 3600) / 60) loop_sec = int(time_loop_cost % 60) - msg( - f"loop {loop} cost {loop_hour} hours {loop_min} minutes {loop_sec} seconds, dir: {loop_dir}" - ) + msg(f"loop {loop} cost {loop_hour} hours {loop_min} minutes {loop_sec} seconds, dir: {loop_dir}") dbg(json.dumps(result_dict, indent=4, ensure_ascii=False)) - if args.score: - result_json = os.path.join(result_dir, f"report-{runner_id}.json") - report(data=result_dict, base=base, format="json", output=result_json) - result_excel = os.path.join(result_dir, f"report-{runner_id}.xlsx") - report(data=result_dict, base=base, format="excel", output=result_excel) + result_json = os.path.join(result_dir, f"report-{runner_id}.json") + report( + data=result_dict, + base=base, + format="json", + output=result_json, + score=args.score, + ) + result_excel = os.path.join(result_dir, f"report-{runner_id}.xlsx") + report( + data=result_dict, + base=base, + format="excel", + output=result_excel, + score=args.score, + ) env_node_cleanup(config=config, runner_id=runner_id) except Exception as e: @@ -681,9 +669,7 @@ def main(): cost_min = int((time_cost % 3600) / 60) cost_sec = int(time_cost % 60) if args.parse: - msg( - f"parse result cost {cost_houe} hours {cost_min} minutes {cost_sec} seconds, result dir: {result_dir}" - ) + msg(f"parse result cost {cost_houe} hours {cost_min} minutes {cost_sec} seconds, result dir: {result_dir}") else: msg( f"{runner_id} run {args.loop} loops cost {cost_houe} hours {cost_min} minutes {cost_sec} seconds, " -- Gitee From 46c7bac5e026f28c7e363d43a2eda90ccca3e4c4 Mon Sep 17 00:00:00 2001 From: deshengwu Date: Tue, 7 Apr 2026 10:12:59 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- testcase/parse-csv2case.py | 188 ++++++++++++++++++++++++++++++------- 1 file changed, 153 insertions(+), 35 deletions(-) diff --git a/testcase/parse-csv2case.py b/testcase/parse-csv2case.py index 3623f1a..287b043 100755 --- a/testcase/parse-csv2case.py +++ b/testcase/parse-csv2case.py @@ -190,7 +190,7 @@ def gen_case_name(case_info: dict) -> str: def parse_args_csv(args_file: str) -> dict: """解析csv文件,返回工具参数配置列表 - csv文件格式前3列固定,遇到【工具名称,子系统,权重】认为是具体工具参数配置的开始,示例如下: + csv文件格式前3列固定,遇到【工具名称,子系统,权重,模板】认为是具体工具参数配置的开始,示例如下: 工具名称,子系统,权重,--ioengine=,--direct=,--iodepth=,--rw=,--numjobs=,filesystem,--rwmixread=,--bs_read=,--bs_write= fio,io,0.002588,sync,0,1,read,1,ext4,,4K, fio,io,0.003551,sync,0,1,read,1,ext4,,16K, @@ -207,6 +207,7 @@ def parse_args_csv(args_file: str) -> dict: "用例ID": "<用例ID>", "子系统": "<子系统>", "权重": "<权重>", + "模板": "<模板>", "参数": { "<参数名1>": "<参数值1>", "<参数名2>": "<参数值2>", @@ -221,6 +222,7 @@ def parse_args_csv(args_file: str) -> dict: "用例ID": "<用例ID>", "子系统": "<子系统>", "权重": "<权重>", + "模板": "<模板>", "参数": { "<参数名1>": "<参数值1>", "<参数名2>": "<参数值2>", @@ -246,10 +248,11 @@ def parse_args_csv(args_file: str) -> dict: "工具名称": tool_name, "子系统": row["子系统"].strip(), "权重": float(row.get("权重", "0").strip()), + "模板": row["模板"].strip(), "参数": { k.strip().strip(g_strip_char): v.strip() for k, v in row.items() - if k.strip() not in ["工具名称", "子系统", "权重"] + if k.strip() not in ["工具名称", "子系统", "权重", "模板"] }, } case_name = gen_case_name(args_dict) @@ -266,7 +269,32 @@ def parse_args_csv(args_file: str) -> dict: return result_dict -def parse_tune_config(tune_file: str) -> dict: +def parse_tool_args_csv(tool_name: str) -> dict: + """遍历testcase//-args*.csv文件 + 逐个解析工具参数配置csv文件,返回工具参数配置字典 + Args: + tool_name (str): 工具名称 + Returns: + dict: 工具参数配置字典 + """ + result_dict = {} + tool_dir_path = os.path.join(g_tperf_top_dir, "testcase", tool_name) + for file in os.listdir(tool_dir_path): + if not file.startswith(f"{tool_name}-args"): + continue + if not file.endswith(".csv"): + continue + args_file = os.path.join(tool_dir_path, file) + args_dict = parse_args_csv(args_file=args_file) + # 检查是否有重名的用例 + for case_name, case_info in args_dict.items(): + if case_name in result_dict: + raise ValueError(f"{tool_name}:{args_file} 用例名称重复: {case_name}") + result_dict[case_name] = case_info + return result_dict + + +def parse_tune_csv(tune_file: str) -> dict: """解析调优信息文件,返回调优信息字典 文件内容示例: # 性能用例稳定性参数配置 @@ -337,6 +365,31 @@ def parse_tune_config(tune_file: str) -> dict: return result_dict +def parse_tool_tune_csv(tool_name: str) -> dict: + """遍历testcase//-tune*.csv文件 + 逐个解析工具调优信息csv文件,返回工具调优信息字典 + Args: + tool_name (str): 工具名称 + Returns: + dict: 工具调优信息字典 + """ + result_dict = {} + tool_dir_path = os.path.join(g_tperf_top_dir, "testcase", tool_name) + for file in os.listdir(tool_dir_path): + if not file.startswith(f"{tool_name}-tune"): + continue + if not file.endswith(".csv"): + continue + tune_file = os.path.join(tool_dir_path, file) + tune_dict = parse_tune_csv(tune_file=tune_file) + # 检查是否有重名的用例 + for case_name, case_info in tune_dict.items(): + if case_name in result_dict: + raise ValueError(f"{tool_name}:{tune_file} 用例名称重复: {case_name}") + result_dict[case_name] = case_info + return result_dict + + def get_tool_class(tool_name: str) -> str: """获取工具类 Args: @@ -445,6 +498,7 @@ def gen_case_script(tool_name: str, case_args: dict, tune_config: dict) -> int: class_args_str = class_args_str.rstrip() script_content = f'''#!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -568,55 +622,119 @@ def gen_tool_case(tool_name: str): logger.error(f"{tool_name}: tool directory {tool_dir_path} not found") return 0 - args_file = os.path.join(tool_dir_path, f"{tool_name}-args.csv") - if not os.path.isfile(args_file): - logger.error(f"{tool_name}: args file {args_file} not found") - return 0 - args_dict = parse_args_csv(args_file=args_file) + args_dict = parse_tool_args_csv(tool_name=tool_name) + if not args_dict: + logger.warning(f"{tool_name}: no case args found") + return {}, {}, 0 - tune_file = os.path.join(tool_dir_path, f"{tool_name}-tune.csv") - if os.path.exists(tune_file): - tune_dict = parse_tune_config(tune_file=tune_file) - else: - tune_dict = {} - logger.warning(f"{tool_name}: tune file {tune_file} not found") + tune_dict = parse_tool_tune_csv(tool_name=tool_name) logger.info( f"{tool_name}: get {len(args_dict)} case args and {len(tune_dict)} tune config" ) - return gen_case_script( + case_count = gen_case_script( tool_name=tool_name, case_args=args_dict, tune_config=tune_dict ) + return args_dict, tune_dict, case_count + + +def gen_template(case_data_dict: dict): + """生成模板文件 + Args: + case_data_dict (dict): 用例数据字典 + Returns: + None: 无返回值 + """ + # 先将用例数据按模板分类 + case_data_by_template = { + "<模板名称>": { + "<工具名称>": { + "<用例名称>": { + "工具名称": "<工具名称>", + "用例名称": "<用例名称>", + "用例ID": "<用例ID>", + "子系统": "<子系统>", + "权重": "<权重>", + "模板": "<模板>", + "参数": { + "<参数名1>": "<参数值1>", + "<参数名2>": "<参数值2>", + }, + }, + } + } + } + for tool_name, case_data in case_data_dict.items(): + for case_name, case_info in case_data["args_dict"].items(): + template = case_info["模板"] + if not template: + logger.warning(f"{tool_name}:{case_name} no template found") + continue + if template not in case_data_by_template: + case_data_by_template[template] = {} + if tool_name not in case_data_by_template[template]: + case_data_by_template[template][tool_name] = {} + case_data_by_template[template][tool_name][case_name] = case_info + # 遍历模板,重新生成模板文件 + template_count = 0 + for template, tool_data in case_data_by_template.items(): + template_case_count = 0 + # 如果模板文件已经存在,则将原内容备份并打印出来 + template_file = os.path.join(g_tperf_top_dir, "templates", f"{template}.csv") + if os.path.exists(template_file): + os.rename(template_file, f"{template_file}.bak") + logger.info(f"backup {template_file} to {template_file}.bak") + logger.info(f"original content: {template_file}.bak") + with open(f"{template_file}.bak", "r") as f: + logger.info(f.read()) + # 重新生成模板文件 + with open(template_file, "w") as f: + f.write("本文件由parse-csv2case.py自动生成,请勿手动修改\n") + f.write( + "表格的【用例名、性能指标名、L0、L1、L2、权重】标题是固定的,不能修改,,,,,\n" + ) + f.write("用例名:对应testcase目录下各用例文件的【@用例名称:】字段,,,,,\n") + f.write("性能指标名:用例测试输出的性能数据,名称由测试代码填入,,,,,\n") + f.write("L0/L1/L2:各指标所属维度,需要按维度统计结果时填写,,,,,\n") + f.write( + "权重:除以同维度指标权重和得到最终权重,用于计算加权几何平均数,0和空不做统计,,,,,\n" + ) + f.write("用例名,性能指标名,L0,L1,L2,权重\n") + for tool_name, case_data in tool_data.items(): + for case_name, case_info in case_data.items(): + f.write( + f"{case_name},,{case_info['子系统']},,,{case_info['权重']}\n" + ) + template_case_count += 1 + logger.info(f"template {template} has {template_case_count} cases") + template_count += 1 + logger.info(f"total {template_count} templates generated") def main(): args = parse_args() print(args) + case_data_dict = {} result_count = 0 - if args.all: - for tool_name in os.listdir(os.path.join(g_tperf_top_dir, "testcase")): - tool_dir_path = os.path.join(g_tperf_top_dir, "testcase", tool_name) - if not os.path.isdir(tool_dir_path): - continue - result_count += gen_tool_case(tool_name=tool_name) - elif args.tool: - result_count += gen_tool_case(tool_name=args.tool) - elif args.args_file: - args_dict = parse_args_csv(args.args_file) - tool_name = list(args_dict.values())[0]["工具名称"] - logger.info(f"{tool_name}: get {len(args_dict)} case args") - if args.tune_file: - tune_dict = parse_tune_config(args.tune_file) - logger.info(f"{tool_name}: get {len(tune_dict)} tune config") - else: - tune_dict = {} - result_count += gen_case_script( - tool_name=tool_name, case_args=args_dict, tune_config=tune_dict - ) + # 遍历所有工具目录,生成用例脚本 + for tool_name in os.listdir(os.path.join(g_tperf_top_dir, "testcase")): + tool_dir_path = os.path.join(g_tperf_top_dir, "testcase", tool_name) + if not os.path.isdir(tool_dir_path): + continue + args_dict, tune_dict, case_count = gen_tool_case(tool_name=tool_name) + case_data_dict[tool_name] = { + "args_dict": args_dict, + "tune_dict": tune_dict, + "case_count": case_count, + } + result_count += case_count logger.info(f"total {result_count} case scripts generated") + # 生成模板文件 + gen_template(case_data_dict=case_data_dict) + if __name__ == "__main__": main() -- Gitee From 1eaba559eeb4deae780de165259ef3eb985c58fd Mon Sep 17 00:00:00 2001 From: deshengwu Date: Tue, 7 Apr 2026 10:27:17 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E7=94=9F=E6=88=90=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- .gitignore | 2 +- ...ckbench-da100-fd1-gr16-ippipe-lo500000-moprocess.py | 3 ++- ...ackbench-da100-fd1-gr16-ippipe-lo500000-mothread.py | 3 ++- ...bench-da100-fd1-gr16-ipsocket-lo500000-moprocess.py | 3 ++- ...kbench-da100-fd1-gr16-ipsocket-lo500000-mothread.py | 3 ++- ...ckbench-da100-fd1-gr22-ippipe-lo500000-moprocess.py | 3 ++- ...ackbench-da100-fd1-gr22-ippipe-lo500000-mothread.py | 3 ++- ...bench-da100-fd1-gr22-ipsocket-lo500000-moprocess.py | 3 ++- ...kbench-da100-fd1-gr22-ipsocket-lo500000-mothread.py | 3 ++- ...ackbench-da100-fd1-gr3-ippipe-lo500000-moprocess.py | 3 ++- ...hackbench-da100-fd1-gr3-ippipe-lo500000-mothread.py | 3 ++- ...kbench-da100-fd1-gr3-ipsocket-lo500000-moprocess.py | 3 ++- ...ckbench-da100-fd1-gr3-ipsocket-lo500000-mothread.py | 3 ++- ...ckbench-da100-fd1-gr30-ippipe-lo500000-moprocess.py | 3 ++- ...ackbench-da100-fd1-gr30-ippipe-lo500000-mothread.py | 3 ++- ...bench-da100-fd1-gr30-ipsocket-lo500000-moprocess.py | 3 ++- ...kbench-da100-fd1-gr30-ipsocket-lo500000-mothread.py | 3 ++- ...ckbench-da100-fd1-gr36-ippipe-lo500000-moprocess.py | 3 ++- ...ackbench-da100-fd1-gr36-ippipe-lo500000-mothread.py | 3 ++- ...bench-da100-fd1-gr36-ipsocket-lo500000-moprocess.py | 3 ++- ...kbench-da100-fd1-gr36-ipsocket-lo500000-mothread.py | 3 ++- ...ckbench-da100-fd1-gr43-ippipe-lo500000-moprocess.py | 3 ++- ...ackbench-da100-fd1-gr43-ippipe-lo500000-mothread.py | 3 ++- ...bench-da100-fd1-gr43-ipsocket-lo500000-moprocess.py | 3 ++- ...kbench-da100-fd1-gr43-ipsocket-lo500000-mothread.py | 3 ++- ...ckbench-da100-fd1-gr49-ippipe-lo500000-moprocess.py | 3 ++- ...ackbench-da100-fd1-gr49-ippipe-lo500000-mothread.py | 3 ++- ...bench-da100-fd1-gr49-ipsocket-lo500000-moprocess.py | 3 ++- ...kbench-da100-fd1-gr49-ipsocket-lo500000-mothread.py | 3 ++- ...ckbench-da100-fd1-gr56-ippipe-lo500000-moprocess.py | 3 ++- ...ackbench-da100-fd1-gr56-ippipe-lo500000-mothread.py | 3 ++- ...bench-da100-fd1-gr56-ipsocket-lo500000-moprocess.py | 3 ++- ...kbench-da100-fd1-gr56-ipsocket-lo500000-mothread.py | 3 ++- ...ckbench-da100-fd1-gr63-ippipe-lo500000-moprocess.py | 3 ++- ...ackbench-da100-fd1-gr63-ippipe-lo500000-mothread.py | 3 ++- ...bench-da100-fd1-gr63-ipsocket-lo500000-moprocess.py | 3 ++- ...kbench-da100-fd1-gr63-ipsocket-lo500000-mothread.py | 3 ++- ...ackbench-da100-fd1-gr9-ippipe-lo500000-moprocess.py | 3 ++- ...hackbench-da100-fd1-gr9-ippipe-lo500000-mothread.py | 3 ++- ...kbench-da100-fd1-gr9-ipsocket-lo500000-moprocess.py | 3 ++- ...ckbench-da100-fd1-gr9-ipsocket-lo500000-mothread.py | 3 ++- ...-B10-I200-T-bnmemcpy_10m-f-g-l-r-s10m-tnmemcpy-w.py | 9 +++++---- ...-B10-I200-T-bnmemset_10m-f-g-l-r-s10m-tnmemset-w.py | 9 +++++---- ...ro-B100-I10-T-bnmemcpy_1m-f-g-l-r-s1m-tnmemcpy-w.py | 9 +++++---- ...B100-I100-T-bnmalloc_1k-f-g10-l-r-s1k-tnmalloc-w.py | 9 +++++---- ...o-B100-I100-T-bnstrchr_10-f-g-l-r-s10-tnstrchr-w.py | 9 +++++---- ...o-B100-I100-T-bnstrcpy_10-f-g-l-r-s10-tnstrcpy-w.py | 9 +++++---- ...o-B100-I100-T-bnstrlen_1k-f-g-l-r-s1k-tnstrlen-w.py | 9 +++++---- ...0-I1000-T-bnmemcpy_100k-f-g-l-r-s100k-tnmemcpy-w.py | 9 +++++---- ...0-I1000-T-bnmemset_100k-f-g-l-r-s100k-tnmemset-w.py | 9 +++++---- ...0-I1000-T-bnmmap_t128k-ftmp-g-l128k-r-s-tnmmap-w.py | 9 +++++---- ...0-I1000-T-bnmmap_u128k-fvar-g-l128k-r-s-tnmmap-w.py | 9 +++++---- ...T-bnmprot_wz128k-fzero-g-l128k-r-s-tnmprotect-w1.py | 9 +++++---- ...00-T-bnunmap_wt128k-ftmp-g-l128k-r-s-tnmunmap-w1.py | 9 +++++---- ...00-T2-bnmallocT2_100k-f-g10-l-r-s100k-tnmalloc-w.py | 9 +++++---- ...o-B100-I200-T-bnstrcmp_1k-f-g-l-r-s1k-tnstrcmp-w.py | 9 +++++---- ...o-B100-I200-T-bnstrcpy_1k-f-g-l-r-s1k-tnstrcpy-w.py | 9 +++++---- ...200-T-bnunmap_a128k-fanon-g-l128k-r-s-tnmunmap-w.py | 9 +++++---- ...I2000-T-bnmalloc_100k-f-g10-l-r-s100k-tnmalloc-w.py | 9 +++++---- ...100-I2000-T-bnmalloc_1m-f-g10-l-r-s1m-tnmalloc-w.py | 9 +++++---- ...-B100-I2000-T-bnmemset_1m-f-g-l-r-s1m-tnmemset-w.py | 9 +++++---- ...2000-T-bnmmap_rz128k-fzero-g-l128k-r1-s-tnmmap-w.py | 9 +++++---- ...-I2000-T-bnmmap_z128k-fzero-g-l128k-r-s-tnmmap-w.py | 9 +++++---- ...0-T-bnunmap_ra128k-fanon-g-l128k-r1-s-tnmunmap-w.py | 9 +++++---- ...0-T-bnunmap_rz128k-fzero-g-l128k-r1-s-tnmunmap-w.py | 9 +++++---- ...0000-T-bnmmap_ra128k-fanon-g-l128k-r1-s-tnmmap-w.py | 9 +++++---- ...20000-T-bnmmap_rt128k-ftmp-g-l128k-r1-s-tnmmap-w.py | 9 +++++---- ...20000-T-bnmmap_ru128k-fvar-g-l128k-r1-s-tnmmap-w.py | 9 +++++---- ...00-T-bnunmap_rt128k-ftmp-g-l128k-r1-s-tnmunmap-w.py | 9 +++++---- ...00-T-bnunmap_ru128k-fvar-g-l128k-r1-s-tnmunmap-w.py | 9 +++++---- ...-B100-I50-T-bnmalloc_10-f-g10-l-r-s10-tnmalloc-w.py | 9 +++++---- ...100-I50-T-bnmalloc_100-f-g10-l-r-s100-tnmalloc-w.py | 9 +++++---- ...100-I50-T-bnmalloc_10k-f-g10-l-r-s10k-tnmalloc-w.py | 9 +++++---- ...o-B100-I500-T-bnmemcpy_1k-f-g-l-r-s1k-tnmemcpy-w.py | 9 +++++---- ...I500-T-bnunmap_t128k-ftmp-g-l128k-r-s-tnmunmap-w.py | 9 +++++---- ...I500-T-bnunmap_u128k-fvar-g-l128k-r-s-tnmunmap-w.py | 9 +++++---- ...500-T-bnunmap_z128k-fzero-g-l128k-r-s-tnmunmap-w.py | 9 +++++---- ...0000-T-bnmmap_wa128k-fanon-g-l128k-r-s-tnmmap-w1.py | 9 +++++---- ...50000-T-bnmmap_wt128k-ftmp-g-l128k-r-s-tnmmap-w1.py | 9 +++++---- ...0000-T-bnmmap_wz128k-fzero-g-l128k-r-s-tnmmap-w1.py | 9 +++++---- ...00000-T-bnmmap_wu128k-fvar-g-l128k-r-s-tnmmap-w1.py | 9 +++++---- ...00-T-bnunmap_wu128k-fvar-g-l128k-r-s-tnmunmap-w1.py | 9 +++++---- ...B100-I800-T-bnmemcpy_10k-f-g-l-r-s10k-tnmemcpy-w.py | 9 +++++---- ...B100-I800-T-bnmemset_10k-f-g-l-r-s10k-tnmemset-w.py | 9 +++++---- ...0-T-bnunmap_wz128k-fzero-g-l128k-r-s-tnmunmap-w1.py | 9 +++++---- ...o-B1000-I10-T-bnmemcpy_10-f-g-l-r-s10-tnmemcpy-w.py | 9 +++++---- ...o-B1000-I10-T-bnstrcmp_10-f-g-l-r-s10-tnstrcmp-w.py | 9 +++++---- ...ro-B1000-I5-T-bnstrchr_1k-f-g-l-r-s1k-tnstrchr-w.py | 9 +++++---- ...ro-B1000-I5-T-bnstrlen_10-f-g-l-r-s10-tnstrlen-w.py | 9 +++++---- .../tperf-libmicro-co10-it5-pr1-sy1-tnfork-th18.py | 3 ++- .../tperf-libmicro-co10-it5-pr1-sy1-tnfork-th59.py | 3 ++- ...-libmicro-co10-it5-pr1-sy1-tnpthread_create-th19.py | 3 ++- ...f-libmicro-co10-it5-pr1-sy1-tnpthread_create-th6.py | 3 ++- ...-libmicro-co10-it5-pr11-sy1-tnpthread_create-th4.py | 3 ++- .../tperf-libmicro-co10-it5-pr111-sy1-tnfork-th1.py | 3 ++- ...-libmicro-co10-it5-pr15-sy1-tnpthread_create-th4.py | 3 ++- .../tperf-libmicro-co10-it5-pr16-sy1-tnfork-th2.py | 3 ++- .../tperf-libmicro-co10-it5-pr17-sy1-tnfork-th5.py | 3 ++- ...-libmicro-co10-it5-pr18-sy1-tnpthread_create-th4.py | 3 ++- ...-libmicro-co10-it5-pr19-sy1-tnpthread_create-th1.py | 3 ++- .../tperf-libmicro-co10-it5-pr2-sy1-tnfork-th29.py | 3 ++- ...-libmicro-co10-it5-pr2-sy1-tnpthread_create-th16.py | 3 ++- ...f-libmicro-co10-it5-pr2-sy1-tnpthread_create-th3.py | 3 ++- ...-libmicro-co10-it5-pr21-sy1-tnpthread_create-th4.py | 3 ++- .../tperf-libmicro-co10-it5-pr24-sy1-tnfork-th3.py | 3 ++- ...-libmicro-co10-it5-pr24-sy1-tnpthread_create-th4.py | 3 ++- ...-libmicro-co10-it5-pr28-sy1-tnpthread_create-th4.py | 3 ++- .../tperf-libmicro-co10-it5-pr3-sy1-tnfork-th2.py | 3 ++- ...-libmicro-co10-it5-pr3-sy1-tnpthread_create-th15.py | 3 ++- ...-libmicro-co10-it5-pr31-sy1-tnpthread_create-th4.py | 3 ++- .../tperf-libmicro-co10-it5-pr37-sy1-tnfork-th3.py | 3 ++- .../tperf-libmicro-co10-it5-pr4-sy1-tnfork-th31.py | 3 ++- .../tperf-libmicro-co10-it5-pr4-sy1-tnfork-th8.py | 3 ++- ...-libmicro-co10-it5-pr4-sy1-tnpthread_create-th18.py | 3 ++- .../tperf-libmicro-co10-it5-pr49-sy1-tnfork-th2.py | 3 ++- .../tperf-libmicro-co10-it5-pr5-sy1-tnfork-th9.py | 3 ++- ...-libmicro-co10-it5-pr5-sy1-tnpthread_create-th17.py | 3 ++- ...-libmicro-co10-it5-pr59-sy1-tnpthread_create-th1.py | 3 ++- .../tperf-libmicro-co10-it5-pr6-sy1-tnfork-th1.py | 3 ++- .../tperf-libmicro-co10-it5-pr6-sy1-tnfork-th12.py | 3 ++- .../tperf-libmicro-co10-it5-pr6-sy1-tnfork-th3.py | 3 ++- ...-libmicro-co10-it5-pr6-sy1-tnpthread_create-th16.py | 3 ++- .../tperf-libmicro-co10-it5-pr62-sy1-tnfork-th2.py | 3 ++- .../tperf-libmicro-co10-it5-pr7-sy1-tnfork-th14.py | 3 ++- ...-libmicro-co10-it5-pr7-sy1-tnpthread_create-th16.py | 3 ++- ...-libmicro-co10-it5-pr8-sy1-tnpthread_create-th16.py | 3 ++- ...f-libmicro-co10-it5-pr8-sy1-tnpthread_create-th4.py | 3 ++- .../tperf-libmicro-co10-it5-pr85-sy1-tnfork-th1.py | 3 ++- .../tperf-libmicro-co10-it5-pr9-sy1-tnfork-th5.py | 3 ++- ...ch-P1-bnbw_mem-bcopy-ex-fi-mobcopy-se-si4096m-st.py | 9 +++++---- ...ch-P1-bnbw_mem-bzero-ex-fi-mobzero-se-si4096m-st.py | 9 +++++---- ...-lmbench-P1-bnbw_mem-cp-ex-fi-mocp-se-si4096m-st.py | 9 +++++---- ...mbench-P1-bnbw_mem-fcp-ex-fi-mofcp-se-si4096m-st.py | 9 +++++---- ...mbench-P1-bnbw_mem-fwr-ex-fi-mofwr-se-si4096m-st.py | 9 +++++---- ...copy-aligned-exconflict-fi-mobcopy-se-si2048m-st.py | 9 +++++---- ...libc-bcopy-unaligned-ex-fi-mobcopy-se-si2048m-st.py | 9 +++++---- ...bench-P1-bnbw_mem-read-ex-fi-mofrd-se-si4096m-st.py | 9 +++++---- ...rolled-bcopy-unaligned-ex-fi-mofcp-se-si2048m-st.py | 9 +++++---- ...partial-bcopy-unaligned-ex-fi-mocp-se-si2048m-st.py | 9 +++++---- ...ench-P1-bnbw_mem-write-ex-fi-mofwr-se-si4096m-st.py | 7 ++++--- .../tperf-lmbench-P1-bnbw_pipe-ex-fi-mo-se-si-st.py | 7 ++++--- ...at_mem_rd-prefetch-off-ext-fi-mo-se-si256-st2000.py | 3 ++- ...nlat_mem_rd-prefetch-on-ex-fi-mo-se-si256-st2000.py | 3 ++- ...-bnlat_mmap-ex-fitmpfile-mo-sedd4096m-si4096m-st.py | 9 +++++---- ...1-bnlat_pagefault-ex-fitmpfile-mo-sedd128m-si-st.py | 9 +++++---- ...lmbench-P1-bnlat_proc-exec-ex-fi-moexec-se-si-st.py | 9 +++++---- ...lmbench-P1-bnlat_proc-fork-ex-fi-mofork-se-si-st.py | 7 ++++--- ...bench-P1-bnlat_proc-shell-ex-fi-moshell-se-si-st.py | 9 +++++---- .../lmbench/tperf-lmbench-np12-pa102-sk8-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa105-sk64-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa109-sk1024-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa109-sk512-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa120-sk64-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa122-sk1024-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa122-sk512-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa17-sk1024-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa18-sk512-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa19-sk64-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa20-sk8-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa30-sk1024-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa30-sk512-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa34-sk64-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa37-sk8-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa43-sk1024-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa43-sk512-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa48-sk64-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa5-sk1024-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa53-sk8-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa57-sk1024-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa57-sk512-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa6-sk512-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa6-sk64-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa63-sk64-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa65-sk8-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa70-sk1024-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa70-sk512-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa75-sk64-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa77-sk8-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa8-sk8-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa80-sk64-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa80-sk8-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa83-sk1024-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa83-sk512-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa86-sk8-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa91-sk64-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa95-sk8-sulat_ctx.py | 5 +++-- .../tperf-lmbench-np12-pa96-sk1024-sulat_ctx.py | 5 +++-- .../lmbench/tperf-lmbench-np12-pa96-sk512-sulat_ctx.py | 5 +++-- testcase/mlc/tperf-mlc-tmbandwidth_matrix.py | 3 ++- testcase/mlc/tperf-mlc-tmidle_latency.py | 3 ++- testcase/mlc/tperf-mlc-tmlatency_matrix.py | 3 ++- testcase/mlc/tperf-mlc-tmloaded_latency.py | 3 ++- testcase/mlc/tperf-mlc-tmpeak_injection_bandwidth.py | 3 ++- testcase/parse-csv2case.py | 10 ++-------- testcase/stream/tperf-stream-ON1-bnsingle.py | 3 ++- testcase/stream/tperf-stream-ON16-bnthread-16.py | 3 ++- testcase/stream/tperf-stream-ON32-bnthread-32.py | 3 ++- testcase/stream/tperf-stream-ON4-bnthread-4.py | 3 ++- testcase/stream/tperf-stream-ON8-bnthread-8.py | 3 ++- testcase/stream/tperf-stream-ONmax-bnmax.py | 3 ++- ...-size-10g-rndwr-marnd-mb128k-mowrite-mt10G-mt-mt.py | 3 ++- ...-size-10g-seqwr-maseq-mb128k-mowrite-mt10G-mt-mt.py | 3 ++- ...-16k-size-1g-seqrd-maseq-mb16k-moread-mt1G-mt-mt.py | 3 ++- ...-1g-size-10g-rndrd-marnd-mb1G-moread-mt10G-mt-mt.py | 3 ++- ...1g-size-10g-rndwr-marnd-mb1G-mowrite-mt10G-mt-mt.py | 3 ++- ...ck-1k-size-1g-seqrd-maseq-mb1k-moread-mt1G-mt-mt.py | 3 ++- ...-size-10g-rndwr-marnd-mb256k-mowrite-mt10G-mt-mt.py | 3 ++- ...ck-2k-size-1g-seqrd-maseq-mb2k-moread-mt1G-mt-mt.py | 3 ++- ...-32k-size-1g-rndrd-marnd-mb32k-moread-mt1G-mt-mt.py | 3 ++- ...32k-size-1g-rndwr-marnd-mb32k-mowrite-mt1G-mt-mt.py | 3 ++- ...-32k-size-1g-seqrd-maseq-mb32k-moread-mt1G-mt-mt.py | 3 ++- ...32k-size-1g-seqwr-maseq-mb32k-mowrite-mt1G-mt-mt.py | 3 ++- ...ck-4k-size-1g-seqrd-maseq-mb4k-moread-mt1G-mt-mt.py | 3 ++- ...-size-10g-rndwr-marnd-mb512k-mowrite-mt10G-mt-mt.py | 3 ++- ...-size-10g-seqwr-maseq-mb512k-mowrite-mt10G-mt-mt.py | 3 ++- ...4k-size-10g-rndrd-marnd-mb64k-moread-mt10G-mt-mt.py | 3 ++- ...k-size-10g-rndwr-marnd-mb32k-mowrite-mt10G-mt-mt.py | 3 ++- .../tperf-sysbench-bnthread-1-ma-mb-mo-mt-mt1-mt300.py | 3 ++- ...rf-sysbench-bnthread-max-ma-mb-mo-mt-mtmax-mt300.py | 3 ++- testcase/sysbench/tperf-sysbench-tl256-ty1000-th85.py | 3 ++- testcase/sysbench/tperf-sysbench-tl256-ty1000-th96.py | 3 ++- testcase/sysbench/tperf-sysbench-tl256-ty2000-th85.py | 3 ++- testcase/sysbench/tperf-sysbench-tl256-ty2000-th96.py | 3 ++- testcase/sysbench/tperf-sysbench-tl256-ty3000-th85.py | 3 ++- testcase/sysbench/tperf-sysbench-tl256-ty3000-th96.py | 3 ++- testcase/sysbench/tperf-sysbench-tl256-ty4000-th85.py | 3 ++- testcase/sysbench/tperf-sysbench-tl256-ty4000-th96.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty1000-th19.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty1000-th45.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty1000-th59.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty1000-th6.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty1000-th72.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty2000-th19.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty2000-th45.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty2000-th59.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty2000-th6.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty2000-th72.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty3000-th19.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty3000-th45.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty3000-th59.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty3000-th6.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty3000-th72.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty4000-th19.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty4000-th45.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty4000-th59.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty4000-th6.py | 3 ++- testcase/sysbench/tperf-sysbench-tl4-ty4000-th72.py | 3 ++- testcase/sysbench/tperf-sysbench-tl512-ty1000-th111.py | 3 ++- testcase/sysbench/tperf-sysbench-tl512-ty1000-th124.py | 3 ++- testcase/sysbench/tperf-sysbench-tl512-ty2000-th111.py | 3 ++- testcase/sysbench/tperf-sysbench-tl512-ty2000-th124.py | 3 ++- testcase/sysbench/tperf-sysbench-tl512-ty3000-th111.py | 3 ++- testcase/sysbench/tperf-sysbench-tl512-ty3000-th124.py | 3 ++- testcase/sysbench/tperf-sysbench-tl512-ty4000-th111.py | 3 ++- testcase/sysbench/tperf-sysbench-tl512-ty4000-th124.py | 3 ++- testcase/unixbench/tperf-unixbench-c1-teshell16.py | 3 ++- testcase/unixbench/tperf-unixbench-c1-tespawn.py | 3 ++- 261 files changed, 753 insertions(+), 500 deletions(-) diff --git a/.gitignore b/.gitignore index e5c5c07..440fe99 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,4 @@ compile_commands.json /tools/*.install.fail/ /.vscode/ /*.xlsx - +*.csv.bak diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-moprocess.py index c34d3e8..e216877 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=16,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-mothread.py index af26a38..fc54353 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=16,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-moprocess.py index 7b925cb..68c3add 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=16,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-mothread.py index ee62431..131cd8e 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr16-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=16,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-moprocess.py index ba7ae0c..2a803a8 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=22,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-mothread.py index e5e5802..e9e5ef4 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=22,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-moprocess.py index 222372f..e26de61 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=22,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-mothread.py index 5199955..5bde764 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr22-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=22,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-moprocess.py index c78f138..fc4c36e 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=3,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-mothread.py index b05d1f4..15fdbe1 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=3,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-moprocess.py index 6b9bd67..5eb96e3 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=3,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-mothread.py index 847938d..67bca3f 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr3-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=3,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-moprocess.py index 68f32e0..15c310f 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=30,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-mothread.py index ac4a7fb..3b16ec4 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=30,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-moprocess.py index 771ebc3..01ce859 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=30,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-mothread.py index c0528d4..7b133a2 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr30-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=30,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-moprocess.py index 3eadc85..00347f0 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=36,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-mothread.py index 960ae2b..dec90b0 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=36,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-moprocess.py index 450973d..a16ef41 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=36,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-mothread.py index 3688c03..b0205ad 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr36-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=36,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-moprocess.py index 7ee6e04..798c218 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=43,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-mothread.py index 9d9e6f6..142f96a 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=43,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-moprocess.py index 7f707cb..31f7b51 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=43,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-mothread.py index 7c37ce3..da85e1e 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr43-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=43,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-moprocess.py index 4f5201a..c9f85e6 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=49,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-mothread.py index 4a8d72d..29ab2f7 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=49,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-moprocess.py index 7368f08..337fb7d 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=49,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-mothread.py index 88dd2f9..a23756c 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr49-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=49,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-moprocess.py index 033f5e4..cc10fe8 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=56,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-mothread.py index b71fbf0..3852f59 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=56,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-moprocess.py index 188ae3e..dda1f93 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=56,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-mothread.py index 684590c..0b6075f 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr56-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=56,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-moprocess.py index 0e87d41..c0c145b 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=63,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-mothread.py index e76b700..61e1116 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=63,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-moprocess.py index 5e304ed..0290728 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=63,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-mothread.py index 9d708f1..3f4081f 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr63-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=63,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-moprocess.py index 0efc82c..0d9d1de 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=9,datasize=100,loops=500000,mode=process,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-mothread.py index 3b66911..0a610d9 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ippipe-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=9,datasize=100,loops=500000,mode=thread,ipc=pipe diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-moprocess.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-moprocess.py index d87e689..e0b2dbc 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-moprocess.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-moprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=9,datasize=100,loops=500000,mode=process,ipc=socket diff --git a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-mothread.py b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-mothread.py index 82619b4..c2dad7e 100755 --- a/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-mothread.py +++ b/testcase/hackbench/tperf-hackbench-da100-fd1-gr9-ipsocket-lo500000-mothread.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用hackbench测试sched性能,参数:fds=1,groups=9,datasize=100,loops=500000,mode=thread,ipc=socket diff --git a/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemcpy_10m-f-g-l-r-s10m-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemcpy_10m-f-g-l-r-s10m-tnmemcpy-w.py index d1a87e1..f3f8236 100755 --- a/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemcpy_10m-f-g-l-r-s10m-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemcpy_10m-f-g-l-r-s10m-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_10m,s=10m,l=,g=,T=,I=200,B=10,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_10m,s=10m,l=,g=,T=,I=200,B=10,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemset_10m-f-g-l-r-s10m-tnmemset-w.py b/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemset_10m-f-g-l-r-s10m-tnmemset-w.py index 0717f1c..cbf7570 100755 --- a/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemset_10m-f-g-l-r-s10m-tnmemset-w.py +++ b/testcase/libmicro/tperf-libmicro-B10-I200-T-bnmemset_10m-f-g-l-r-s10m-tnmemset-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memset,bench_name=memset_10m,s=10m,l=,g=,T=,I=200,B=10,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memset,bench_name=memset_10m,s=10m,l=,g=,T=,I=200,B=10,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I10-T-bnmemcpy_1m-f-g-l-r-s1m-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I10-T-bnmemcpy_1m-f-g-l-r-s1m-tnmemcpy-w.py index 401ef04..c0e8f35 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I10-T-bnmemcpy_1m-f-g-l-r-s1m-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I10-T-bnmemcpy_1m-f-g-l-r-s1m-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_1m,s=1m,l=,g=,T=,I=10,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_1m,s=1m,l=,g=,T=,I=10,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnmalloc_1k-f-g10-l-r-s1k-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnmalloc_1k-f-g10-l-r-s1k-tnmalloc-w.py index 54520aa..4b91fb1 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnmalloc_1k-f-g10-l-r-s1k-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnmalloc_1k-f-g10-l-r-s1k-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_1k,s=1k,l=,g=10,T=,I=100,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_1k,s=1k,l=,g=10,T=,I=100,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrchr_10-f-g-l-r-s10-tnstrchr-w.py b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrchr_10-f-g-l-r-s10-tnstrchr-w.py index 59e34a8..220410b 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrchr_10-f-g-l-r-s10-tnstrchr-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrchr_10-f-g-l-r-s10-tnstrchr-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strchr,bench_name=strchr_10,s=10,l=,g=,T=,I=100,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strchr,bench_name=strchr_10,s=10,l=,g=,T=,I=100,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrcpy_10-f-g-l-r-s10-tnstrcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrcpy_10-f-g-l-r-s10-tnstrcpy-w.py index 31c54b0..058dfbc 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrcpy_10-f-g-l-r-s10-tnstrcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrcpy_10-f-g-l-r-s10-tnstrcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strcpy,bench_name=strcpy_10,s=10,l=,g=,T=,I=100,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strcpy,bench_name=strcpy_10,s=10,l=,g=,T=,I=100,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrlen_1k-f-g-l-r-s1k-tnstrlen-w.py b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrlen_1k-f-g-l-r-s1k-tnstrlen-w.py index 2abe7f3..2d6c225 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrlen_1k-f-g-l-r-s1k-tnstrlen-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I100-T-bnstrlen_1k-f-g-l-r-s1k-tnstrlen-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strlen,bench_name=strlen_1k,s=1k,l=,g=,T=,I=100,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strlen,bench_name=strlen_1k,s=1k,l=,g=,T=,I=100,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemcpy_100k-f-g-l-r-s100k-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemcpy_100k-f-g-l-r-s100k-tnmemcpy-w.py index 4d04a09..99df690 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemcpy_100k-f-g-l-r-s100k-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemcpy_100k-f-g-l-r-s100k-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_100k,s=100k,l=,g=,T=,I=1000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_100k,s=100k,l=,g=,T=,I=1000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemset_100k-f-g-l-r-s100k-tnmemset-w.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemset_100k-f-g-l-r-s100k-tnmemset-w.py index a7e18e2..54d0865 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemset_100k-f-g-l-r-s100k-tnmemset-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmemset_100k-f-g-l-r-s100k-tnmemset-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memset,bench_name=memset_100k,s=100k,l=,g=,T=,I=1000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memset,bench_name=memset_100k,s=100k,l=,g=,T=,I=1000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_t128k-ftmp-g-l128k-r-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_t128k-ftmp-g-l128k-r-s-tnmmap-w.py index 041e123..214ba9f 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_t128k-ftmp-g-l128k-r-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_t128k-ftmp-g-l128k-r-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_t128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_t128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_u128k-fvar-g-l128k-r-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_u128k-fvar-g-l128k-r-s-tnmmap-w.py index 620a60f..eb3ea56 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_u128k-fvar-g-l128k-r-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmmap_u128k-fvar-g-l128k-r-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_u128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_u128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmprot_wz128k-fzero-g-l128k-r-s-tnmprotect-w1.py b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmprot_wz128k-fzero-g-l128k-r-s-tnmprotect-w1.py index 5a66ab3..94b7cab 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmprot_wz128k-fzero-g-l128k-r-s-tnmprotect-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I1000-T-bnmprot_wz128k-fzero-g-l128k-r-s-tnmprotect-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mprotect,bench_name=mprot_wz128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=1,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mprotect,bench_name=mprot_wz128k,s=,l=128k,g=,T=,I=1000,B=100,r=,w=1,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I10000-T-bnunmap_wt128k-ftmp-g-l128k-r-s-tnmunmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I10000-T-bnunmap_wt128k-ftmp-g-l128k-r-s-tnmunmap-w1.py index 322db92..fa80f6d 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I10000-T-bnunmap_wt128k-ftmp-g-l128k-r-s-tnmunmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I10000-T-bnunmap_wt128k-ftmp-g-l128k-r-s-tnmunmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_wt128k,s=,l=128k,g=,T=,I=10000,B=100,r=,w=1,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_wt128k,s=,l=128k,g=,T=,I=10000,B=100,r=,w=1,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I10000-T2-bnmallocT2_100k-f-g10-l-r-s100k-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I10000-T2-bnmallocT2_100k-f-g10-l-r-s100k-tnmalloc-w.py index eaad2b8..306b38f 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I10000-T2-bnmallocT2_100k-f-g10-l-r-s100k-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I10000-T2-bnmallocT2_100k-f-g10-l-r-s100k-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=mallocT2_100k,s=100k,l=,g=10,T=2,I=10000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=mallocT2_100k,s=100k,l=,g=10,T=2,I=10000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcmp_1k-f-g-l-r-s1k-tnstrcmp-w.py b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcmp_1k-f-g-l-r-s1k-tnstrcmp-w.py index d519077..c7e579c 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcmp_1k-f-g-l-r-s1k-tnstrcmp-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcmp_1k-f-g-l-r-s1k-tnstrcmp-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strcmp,bench_name=strcmp_1k,s=1k,l=,g=,T=,I=200,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strcmp,bench_name=strcmp_1k,s=1k,l=,g=,T=,I=200,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcpy_1k-f-g-l-r-s1k-tnstrcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcpy_1k-f-g-l-r-s1k-tnstrcpy-w.py index 29150e3..46d2697 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcpy_1k-f-g-l-r-s1k-tnstrcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnstrcpy_1k-f-g-l-r-s1k-tnstrcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strcpy,bench_name=strcpy_1k,s=1k,l=,g=,T=,I=200,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strcpy,bench_name=strcpy_1k,s=1k,l=,g=,T=,I=200,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnunmap_a128k-fanon-g-l128k-r-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnunmap_a128k-fanon-g-l128k-r-s-tnmunmap-w.py index 6015b6a..8fe32aa 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I200-T-bnunmap_a128k-fanon-g-l128k-r-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I200-T-bnunmap_a128k-fanon-g-l128k-r-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_a128k,s=,l=128k,g=,T=,I=200,B=100,r=,w=,f=anon @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_a128k,s=,l=128k,g=,T=,I=200,B=100,r=,w=,f=anon # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_100k-f-g10-l-r-s100k-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_100k-f-g10-l-r-s100k-tnmalloc-w.py index cb002e3..f9e21b4 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_100k-f-g10-l-r-s100k-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_100k-f-g10-l-r-s100k-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_100k,s=100k,l=,g=10,T=,I=2000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_100k,s=100k,l=,g=10,T=,I=2000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_1m-f-g10-l-r-s1m-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_1m-f-g10-l-r-s1m-tnmalloc-w.py index 61c2206..46dc913 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_1m-f-g10-l-r-s1m-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmalloc_1m-f-g10-l-r-s1m-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_1m,s=1m,l=,g=10,T=,I=2000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_1m,s=1m,l=,g=10,T=,I=2000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmemset_1m-f-g-l-r-s1m-tnmemset-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmemset_1m-f-g-l-r-s1m-tnmemset-w.py index c0b2442..3ed0495 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmemset_1m-f-g-l-r-s1m-tnmemset-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmemset_1m-f-g-l-r-s1m-tnmemset-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memset,bench_name=memset_1m,s=1m,l=,g=,T=,I=2000,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memset,bench_name=memset_1m,s=1m,l=,g=,T=,I=2000,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_rz128k-fzero-g-l128k-r1-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_rz128k-fzero-g-l128k-r1-s-tnmmap-w.py index 46b6cd1..6eed081 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_rz128k-fzero-g-l128k-r1-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_rz128k-fzero-g-l128k-r1-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_rz128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_rz128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_z128k-fzero-g-l128k-r-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_z128k-fzero-g-l128k-r-s-tnmmap-w.py index 3e9fbe0..f8ffad2 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_z128k-fzero-g-l128k-r-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnmmap_z128k-fzero-g-l128k-r-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_z128k,s=,l=128k,g=,T=,I=2000,B=100,r=,w=,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_z128k,s=,l=128k,g=,T=,I=2000,B=100,r=,w=,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_ra128k-fanon-g-l128k-r1-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_ra128k-fanon-g-l128k-r1-s-tnmunmap-w.py index dbee988..4798a8e 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_ra128k-fanon-g-l128k-r1-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_ra128k-fanon-g-l128k-r1-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_ra128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=anon @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_ra128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=anon # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_rz128k-fzero-g-l128k-r1-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_rz128k-fzero-g-l128k-r1-s-tnmunmap-w.py index 90bcddc..722aec0 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_rz128k-fzero-g-l128k-r1-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I2000-T-bnunmap_rz128k-fzero-g-l128k-r1-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_rz128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_rz128k,s=,l=128k,g=,T=,I=2000,B=100,r=1,w=,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ra128k-fanon-g-l128k-r1-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ra128k-fanon-g-l128k-r1-s-tnmmap-w.py index 9db2c23..9a0764c 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ra128k-fanon-g-l128k-r1-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ra128k-fanon-g-l128k-r1-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_ra128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=anon @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_ra128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=anon # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_rt128k-ftmp-g-l128k-r1-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_rt128k-ftmp-g-l128k-r1-s-tnmmap-w.py index b74fc0d..67051ef 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_rt128k-ftmp-g-l128k-r1-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_rt128k-ftmp-g-l128k-r1-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_rt128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_rt128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ru128k-fvar-g-l128k-r1-s-tnmmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ru128k-fvar-g-l128k-r1-s-tnmmap-w.py index cd259fb..d3dda87 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ru128k-fvar-g-l128k-r1-s-tnmmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I20000-T-bnmmap_ru128k-fvar-g-l128k-r1-s-tnmmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_ru128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_ru128k,s=,l=128k,g=,T=,I=20000,B=100,r=1,w=,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_rt128k-ftmp-g-l128k-r1-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_rt128k-ftmp-g-l128k-r1-s-tnmunmap-w.py index 505cd0c..4894766 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_rt128k-ftmp-g-l128k-r1-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_rt128k-ftmp-g-l128k-r1-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_rt128k,s=,l=128k,g=,T=,I=3000,B=100,r=1,w=,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_rt128k,s=,l=128k,g=,T=,I=3000,B=100,r=1,w=,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_ru128k-fvar-g-l128k-r1-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_ru128k-fvar-g-l128k-r1-s-tnmunmap-w.py index 71a9367..c2c247f 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_ru128k-fvar-g-l128k-r1-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I3000-T-bnunmap_ru128k-fvar-g-l128k-r1-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_ru128k,s=,l=128k,g=,T=,I=3000,B=100,r=1,w=,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_ru128k,s=,l=128k,g=,T=,I=3000,B=100,r=1,w=,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10-f-g10-l-r-s10-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10-f-g10-l-r-s10-tnmalloc-w.py index 0806f28..8f11823 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10-f-g10-l-r-s10-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10-f-g10-l-r-s10-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_10,s=10,l=,g=10,T=,I=50,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_10,s=10,l=,g=10,T=,I=50,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_100-f-g10-l-r-s100-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_100-f-g10-l-r-s100-tnmalloc-w.py index 32eb0f2..fc1570b 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_100-f-g10-l-r-s100-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_100-f-g10-l-r-s100-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_100,s=100,l=,g=10,T=,I=50,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_100,s=100,l=,g=10,T=,I=50,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10k-f-g10-l-r-s10k-tnmalloc-w.py b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10k-f-g10-l-r-s10k-tnmalloc-w.py index e186901..46e366d 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10k-f-g10-l-r-s10k-tnmalloc-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50-T-bnmalloc_10k-f-g10-l-r-s10k-tnmalloc-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=malloc,bench_name=malloc_10k,s=10k,l=,g=10,T=,I=50,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=malloc,bench_name=malloc_10k,s=10k,l=,g=10,T=,I=50,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnmemcpy_1k-f-g-l-r-s1k-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnmemcpy_1k-f-g-l-r-s1k-tnmemcpy-w.py index 85c308b..73e00a8 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnmemcpy_1k-f-g-l-r-s1k-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnmemcpy_1k-f-g-l-r-s1k-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_1k,s=1k,l=,g=,T=,I=500,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_1k,s=1k,l=,g=,T=,I=500,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_t128k-ftmp-g-l128k-r-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_t128k-ftmp-g-l128k-r-s-tnmunmap-w.py index 5d489f4..91c7e9d 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_t128k-ftmp-g-l128k-r-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_t128k-ftmp-g-l128k-r-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_t128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_t128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_u128k-fvar-g-l128k-r-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_u128k-fvar-g-l128k-r-s-tnmunmap-w.py index 0fc51bb..3b350ce 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_u128k-fvar-g-l128k-r-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_u128k-fvar-g-l128k-r-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_u128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_u128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_z128k-fzero-g-l128k-r-s-tnmunmap-w.py b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_z128k-fzero-g-l128k-r-s-tnmunmap-w.py index 22d0c26..a3c1cec 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_z128k-fzero-g-l128k-r-s-tnmunmap-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500-T-bnunmap_z128k-fzero-g-l128k-r-s-tnmunmap-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_z128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_z128k,s=,l=128k,g=,T=,I=500,B=100,r=,w=,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wa128k-fanon-g-l128k-r-s-tnmmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wa128k-fanon-g-l128k-r-s-tnmmap-w1.py index a589b5d..0bba882 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wa128k-fanon-g-l128k-r-s-tnmmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wa128k-fanon-g-l128k-r-s-tnmmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_wa128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=anon @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_wa128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=anon # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wt128k-ftmp-g-l128k-r-s-tnmmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wt128k-ftmp-g-l128k-r-s-tnmmap-w1.py index a01e442..ae1fc0b 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wt128k-ftmp-g-l128k-r-s-tnmmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wt128k-ftmp-g-l128k-r-s-tnmmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_wt128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=tmp @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_wt128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=tmp # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wz128k-fzero-g-l128k-r-s-tnmmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wz128k-fzero-g-l128k-r-s-tnmmap-w1.py index 1d4ff4a..65bbca3 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wz128k-fzero-g-l128k-r-s-tnmmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I50000-T-bnmmap_wz128k-fzero-g-l128k-r-s-tnmmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_wz128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_wz128k,s=,l=128k,g=,T=,I=50000,B=100,r=,w=1,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnmmap_wu128k-fvar-g-l128k-r-s-tnmmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnmmap_wu128k-fvar-g-l128k-r-s-tnmmap-w1.py index 075e9fd..2172d5a 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnmmap_wu128k-fvar-g-l128k-r-s-tnmmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnmmap_wu128k-fvar-g-l128k-r-s-tnmmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=mmap,bench_name=mmap_wu128k,s=,l=128k,g=,T=,I=500000,B=100,r=,w=1,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=mmap,bench_name=mmap_wu128k,s=,l=128k,g=,T=,I=500000,B=100,r=,w=1,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnunmap_wu128k-fvar-g-l128k-r-s-tnmunmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnunmap_wu128k-fvar-g-l128k-r-s-tnmunmap-w1.py index 090e48a..7903195 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnunmap_wu128k-fvar-g-l128k-r-s-tnmunmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I500000-T-bnunmap_wu128k-fvar-g-l128k-r-s-tnmunmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_wu128k,s=,l=128k,g=,T=,I=500000,B=100,r=,w=1,f=var @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_wu128k,s=,l=128k,g=,T=,I=500000,B=100,r=,w=1,f=var # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemcpy_10k-f-g-l-r-s10k-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemcpy_10k-f-g-l-r-s10k-tnmemcpy-w.py index 0eda458..992609e 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemcpy_10k-f-g-l-r-s10k-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemcpy_10k-f-g-l-r-s10k-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_10k,s=10k,l=,g=,T=,I=800,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_10k,s=10k,l=,g=,T=,I=800,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemset_10k-f-g-l-r-s10k-tnmemset-w.py b/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemset_10k-f-g-l-r-s10k-tnmemset-w.py index 579b12f..6e2e8db 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemset_10k-f-g-l-r-s10k-tnmemset-w.py +++ b/testcase/libmicro/tperf-libmicro-B100-I800-T-bnmemset_10k-f-g-l-r-s10k-tnmemset-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memset,bench_name=memset_10k,s=10k,l=,g=,T=,I=800,B=100,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memset,bench_name=memset_10k,s=10k,l=,g=,T=,I=800,B=100,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B100-I8000-T-bnunmap_wz128k-fzero-g-l128k-r-s-tnmunmap-w1.py b/testcase/libmicro/tperf-libmicro-B100-I8000-T-bnunmap_wz128k-fzero-g-l128k-r-s-tnmunmap-w1.py index e1ebfa3..a3eddf0 100755 --- a/testcase/libmicro/tperf-libmicro-B100-I8000-T-bnunmap_wz128k-fzero-g-l128k-r-s-tnmunmap-w1.py +++ b/testcase/libmicro/tperf-libmicro-B100-I8000-T-bnunmap_wz128k-fzero-g-l128k-r-s-tnmunmap-w1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=munmap,bench_name=unmap_wz128k,s=,l=128k,g=,T=,I=8000,B=100,r=,w=1,f=zero @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=munmap,bench_name=unmap_wz128k,s=,l=128k,g=,T=,I=8000,B=100,r=,w=1,f=zero # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnmemcpy_10-f-g-l-r-s10-tnmemcpy-w.py b/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnmemcpy_10-f-g-l-r-s10-tnmemcpy-w.py index 87b5594..26a638c 100755 --- a/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnmemcpy_10-f-g-l-r-s10-tnmemcpy-w.py +++ b/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnmemcpy_10-f-g-l-r-s10-tnmemcpy-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=memcpy,bench_name=memcpy_10,s=10,l=,g=,T=,I=10,B=1000,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=memcpy,bench_name=memcpy_10,s=10,l=,g=,T=,I=10,B=1000,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnstrcmp_10-f-g-l-r-s10-tnstrcmp-w.py b/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnstrcmp_10-f-g-l-r-s10-tnstrcmp-w.py index 03bc885..7235a27 100755 --- a/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnstrcmp_10-f-g-l-r-s10-tnstrcmp-w.py +++ b/testcase/libmicro/tperf-libmicro-B1000-I10-T-bnstrcmp_10-f-g-l-r-s10-tnstrcmp-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strcmp,bench_name=strcmp_10,s=10,l=,g=,T=,I=10,B=1000,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strcmp,bench_name=strcmp_10,s=10,l=,g=,T=,I=10,B=1000,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrchr_1k-f-g-l-r-s1k-tnstrchr-w.py b/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrchr_1k-f-g-l-r-s1k-tnstrchr-w.py index 785ad51..eef440d 100755 --- a/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrchr_1k-f-g-l-r-s1k-tnstrchr-w.py +++ b/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrchr_1k-f-g-l-r-s1k-tnstrchr-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strchr,bench_name=strchr_1k,s=1k,l=,g=,T=,I=5,B=1000,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strchr,bench_name=strchr_1k,s=1k,l=,g=,T=,I=5,B=1000,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrlen_10-f-g-l-r-s10-tnstrlen-w.py b/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrlen_10-f-g-l-r-s10-tnstrlen-w.py index 816e922..43b3b9e 100755 --- a/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrlen_10-f-g-l-r-s10-tnstrlen-w.py +++ b/testcase/libmicro/tperf-libmicro-B1000-I5-T-bnstrlen_10-f-g-l-r-s10-tnstrlen-w.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试mm性能,参数:tool_name=strlen,bench_name=strlen_10,s=10,l=,g=,T=,I=5,B=1000,r=,w=,f= @@ -53,9 +54,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用libmicro工具测试性能,参数:tool_name=strlen,bench_name=strlen_10,s=10,l=,g=,T=,I=5,B=1000,r=,w=,f= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th18.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th18.py index c382c81..108b437 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th18.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th18.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=1,threads=18,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th59.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th59.py index 738a7ac..a228b8e 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th59.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnfork-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=1,threads=59,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th19.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th19.py index 9f2349c..d2e4eeb 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th19.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=1,threads=19,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th6.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th6.py index d53a5f9..b611d58 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th6.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr1-sy1-tnpthread_create-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=1,threads=6,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr11-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr11-sy1-tnpthread_create-th4.py index ad0d917..de3dead 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr11-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr11-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=11,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr111-sy1-tnfork-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr111-sy1-tnfork-th1.py index debf826..0c68cb5 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr111-sy1-tnfork-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr111-sy1-tnfork-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=111,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr15-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr15-sy1-tnpthread_create-th4.py index dedfd79..97b8831 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr15-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr15-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=15,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr16-sy1-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr16-sy1-tnfork-th2.py index 0ca6f23..c96523e 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr16-sy1-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr16-sy1-tnfork-th2.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=16,threads=2,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr17-sy1-tnfork-th5.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr17-sy1-tnfork-th5.py index b10dd2e..4666a60 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr17-sy1-tnfork-th5.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr17-sy1-tnfork-th5.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=17,threads=5,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr18-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr18-sy1-tnpthread_create-th4.py index 6792538..9a2bf2d 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr18-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr18-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=18,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr19-sy1-tnpthread_create-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr19-sy1-tnpthread_create-th1.py index fddd5ba..ccdcd89 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr19-sy1-tnpthread_create-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr19-sy1-tnpthread_create-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=19,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnfork-th29.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnfork-th29.py index bc20d9c..43f7e62 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnfork-th29.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnfork-th29.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=2,threads=29,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th16.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th16.py index 0304e94..bc42b21 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th16.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=2,threads=16,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th3.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th3.py index 0d8e654..e4ccc37 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th3.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr2-sy1-tnpthread_create-th3.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=2,threads=3,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr21-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr21-sy1-tnpthread_create-th4.py index 86172f9..948bf36 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr21-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr21-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=21,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnfork-th3.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnfork-th3.py index 49c63f7..41d45d3 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnfork-th3.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnfork-th3.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=24,threads=3,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnpthread_create-th4.py index 35cc7f2..a955e35 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr24-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=24,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr28-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr28-sy1-tnpthread_create-th4.py index 126277b..39c7d84 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr28-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr28-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=28,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnfork-th2.py index 114d05f..325cada 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnfork-th2.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=3,threads=2,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnpthread_create-th15.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnpthread_create-th15.py index a21b128..df3fa18 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnpthread_create-th15.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr3-sy1-tnpthread_create-th15.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=3,threads=15,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr31-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr31-sy1-tnpthread_create-th4.py index 86f52b8..8c1aea6 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr31-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr31-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=31,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr37-sy1-tnfork-th3.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr37-sy1-tnfork-th3.py index 4632eef..0456140 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr37-sy1-tnfork-th3.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr37-sy1-tnfork-th3.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=37,threads=3,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th31.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th31.py index 4e42e7a..3f39f82 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th31.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th31.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=4,threads=31,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th8.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th8.py index 3b62a73..5cc1678 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th8.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnfork-th8.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=4,threads=8,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnpthread_create-th18.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnpthread_create-th18.py index a967817..ca3fe67 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnpthread_create-th18.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr4-sy1-tnpthread_create-th18.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=4,threads=18,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr49-sy1-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr49-sy1-tnfork-th2.py index 5cba6f1..8fa645f 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr49-sy1-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr49-sy1-tnfork-th2.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=49,threads=2,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnfork-th9.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnfork-th9.py index 3da69c0..0797569 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnfork-th9.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnfork-th9.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=5,threads=9,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnpthread_create-th17.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnpthread_create-th17.py index 17454cd..0758305 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnpthread_create-th17.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr5-sy1-tnpthread_create-th17.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=5,threads=17,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr59-sy1-tnpthread_create-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr59-sy1-tnpthread_create-th1.py index c50aed5..0fd0d79 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr59-sy1-tnpthread_create-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr59-sy1-tnpthread_create-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=59,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th1.py index e1020f5..5024e84 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=6,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th12.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th12.py index a9b4740..2e90028 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th12.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th12.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=6,threads=12,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th3.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th3.py index 05ac2d8..e6abd8f 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th3.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnfork-th3.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=6,threads=3,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnpthread_create-th16.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnpthread_create-th16.py index 31d1109..f87421c 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnpthread_create-th16.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr6-sy1-tnpthread_create-th16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=6,threads=16,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr62-sy1-tnfork-th2.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr62-sy1-tnfork-th2.py index d771753..427abef 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr62-sy1-tnfork-th2.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr62-sy1-tnfork-th2.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=62,threads=2,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnfork-th14.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnfork-th14.py index 9bcdd9b..b93cdae 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnfork-th14.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnfork-th14.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=7,threads=14,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnpthread_create-th16.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnpthread_create-th16.py index 2feb78c..8f35f09 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnpthread_create-th16.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr7-sy1-tnpthread_create-th16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=7,threads=16,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th16.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th16.py index b15b9b6..3f92c40 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th16.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=8,threads=16,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th4.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th4.py index 6ee2c98..70be58e 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th4.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr8-sy1-tnpthread_create-th4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=pthread_create,processes=8,threads=4,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr85-sy1-tnfork-th1.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr85-sy1-tnfork-th1.py index 776f32e..229b79d 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr85-sy1-tnfork-th1.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr85-sy1-tnfork-th1.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=85,threads=1,iterations=5,count=10,sync=1 diff --git a/testcase/libmicro/tperf-libmicro-co10-it5-pr9-sy1-tnfork-th5.py b/testcase/libmicro/tperf-libmicro-co10-it5-pr9-sy1-tnfork-th5.py index 346f2d3..62219ad 100755 --- a/testcase/libmicro/tperf-libmicro-co10-it5-pr9-sy1-tnfork-th5.py +++ b/testcase/libmicro/tperf-libmicro-co10-it5-pr9-sy1-tnfork-th5.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用libmicro测试sched性能,参数:test_name=fork,processes=9,threads=5,iterations=5,count=10,sync=1 diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bcopy-ex-fi-mobcopy-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bcopy-ex-fi-mobcopy-se-si4096m-st.py index 599554d..748c79c 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bcopy-ex-fi-mobcopy-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bcopy-ex-fi-mobcopy-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-bcopy,P=1,size=4096m,stride=,mode=bcopy,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-bcopy,P=1,size=4096m,stride=,mode=bcopy,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bzero-ex-fi-mobzero-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bzero-ex-fi-mobzero-se-si4096m-st.py index 5f32685..cfd53a7 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bzero-ex-fi-mobzero-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-bzero-ex-fi-mobzero-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-bzero,P=1,size=4096m,stride=,mode=bzero,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-bzero,P=1,size=4096m,stride=,mode=bzero,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-cp-ex-fi-mocp-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-cp-ex-fi-mocp-se-si4096m-st.py index 009ef60..59164f6 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-cp-ex-fi-mocp-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-cp-ex-fi-mocp-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-cp,P=1,size=4096m,stride=,mode=cp,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-cp,P=1,size=4096m,stride=,mode=cp,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fcp-ex-fi-mofcp-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fcp-ex-fi-mofcp-se-si4096m-st.py index 5ce0e2d..a9cc721 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fcp-ex-fi-mofcp-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fcp-ex-fi-mofcp-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-fcp,P=1,size=4096m,stride=,mode=fcp,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-fcp,P=1,size=4096m,stride=,mode=fcp,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fwr-ex-fi-mofwr-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fwr-ex-fi-mofwr-se-si4096m-st.py index e88b874..2f77581 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fwr-ex-fi-mofwr-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-fwr-ex-fi-mofwr-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-fwr,P=1,size=4096m,stride=,mode=fwr,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-fwr,P=1,size=4096m,stride=,mode=fwr,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-aligned-exconflict-fi-mobcopy-se-si2048m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-aligned-exconflict-fi-mobcopy-se-si2048m-st.py index 9def25e..25ae0f6 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-aligned-exconflict-fi-mobcopy-se-si2048m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-aligned-exconflict-fi-mobcopy-se-si2048m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-libc-bcopy-aligned,P=1,size=2048m,stride=,mode=bcopy,filepath=,extra=conflict,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-libc-bcopy-aligned,P=1,size=2048m,stride=,mode=bcopy,filepath=,extra=conflict,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-unaligned-ex-fi-mobcopy-se-si2048m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-unaligned-ex-fi-mobcopy-se-si2048m-st.py index df4fdd1..50d2dbb 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-unaligned-ex-fi-mobcopy-se-si2048m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-libc-bcopy-unaligned-ex-fi-mobcopy-se-si2048m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-libc-bcopy-unaligned,P=1,size=2048m,stride=,mode=bcopy,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-libc-bcopy-unaligned,P=1,size=2048m,stride=,mode=bcopy,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-read-ex-fi-mofrd-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-read-ex-fi-mofrd-se-si4096m-st.py index e301c52..a337b92 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-read-ex-fi-mofrd-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-read-ex-fi-mofrd-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-read,P=1,size=4096m,stride=,mode=frd,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-read,P=1,size=4096m,stride=,mode=frd,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-bcopy-unaligned-ex-fi-mofcp-se-si2048m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-bcopy-unaligned-ex-fi-mofcp-se-si2048m-st.py index 1ef1ab9..69a048d 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-bcopy-unaligned-ex-fi-mofcp-se-si2048m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-bcopy-unaligned-ex-fi-mofcp-se-si2048m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-unrolled-bcopy-unaligned,P=1,size=2048m,stride=,mode=fcp,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-unrolled-bcopy-unaligned,P=1,size=2048m,stride=,mode=fcp,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-partial-bcopy-unaligned-ex-fi-mocp-se-si2048m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-partial-bcopy-unaligned-ex-fi-mocp-se-si2048m-st.py index eaa76a4..04ebada 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-partial-bcopy-unaligned-ex-fi-mocp-se-si2048m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-unrolled-partial-bcopy-unaligned-ex-fi-mocp-se-si2048m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-unrolled-partial-bcopy-unaligned,P=1,size=2048m,stride=,mode=cp,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=bw_mem-unrolled-partial-bcopy-unaligned,P=1,size=2048m,stride=,mode=cp,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-write-ex-fi-mofwr-se-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-write-ex-fi-mofwr-se-si4096m-st.py index d34a7c0..581753a 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-write-ex-fi-mofwr-se-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_mem-write-ex-fi-mofwr-se-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_mem-write,P=1,size=4096m,stride=,mode=fwr,filepath=,extra=,setup= @@ -51,8 +52,8 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, - run_loop=1, - result_select_percent=100, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnbw_pipe-ex-fi-mo-se-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnbw_pipe-ex-fi-mo-se-si-st.py index 3a7b8cd..97bf80e 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnbw_pipe-ex-fi-mo-se-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnbw_pipe-ex-fi-mo-se-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=bw_pipe,P=1,size=,stride=,mode=,filepath=,extra=,setup= @@ -51,8 +52,8 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, - run_loop=1, - result_select_percent=100, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-off-ext-fi-mo-se-si256-st2000.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-off-ext-fi-mo-se-si256-st2000.py index 5b95581..f38810c 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-off-ext-fi-mo-se-si256-st2000.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-off-ext-fi-mo-se-si256-st2000.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_mem_rd-prefetch-off,P=1,size=256,stride=2000,mode=,filepath=,extra=t,setup= diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-on-ex-fi-mo-se-si256-st2000.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-on-ex-fi-mo-se-si256-st2000.py index ceed108..776692d 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-on-ex-fi-mo-se-si256-st2000.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_mem_rd-prefetch-on-ex-fi-mo-se-si256-st2000.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_mem_rd-prefetch-on,P=1,size=256,stride=2000,mode=,filepath=,extra=,setup= diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_mmap-ex-fitmpfile-mo-sedd4096m-si4096m-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_mmap-ex-fitmpfile-mo-sedd4096m-si4096m-st.py index 2b7feeb..1bd7dea 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_mmap-ex-fitmpfile-mo-sedd4096m-si4096m-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_mmap-ex-fitmpfile-mo-sedd4096m-si4096m-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_mmap,P=1,size=4096m,stride=,mode=,filepath=tmpfile,extra=,setup=dd4096m @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=lat_mmap,P=1,size=4096m,stride=,mode=,filepath=tmpfile,extra=,setup=dd4096m # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_pagefault-ex-fitmpfile-mo-sedd128m-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_pagefault-ex-fitmpfile-mo-sedd128m-si-st.py index 561fccb..b162fba 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_pagefault-ex-fitmpfile-mo-sedd128m-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_pagefault-ex-fitmpfile-mo-sedd128m-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_pagefault,P=1,size=,stride=,mode=,filepath=tmpfile,extra=,setup=dd128m @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=lat_pagefault,P=1,size=,stride=,mode=,filepath=tmpfile,extra=,setup=dd128m # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-exec-ex-fi-moexec-se-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-exec-ex-fi-moexec-se-si-st.py index 7fe3816..e3d530a 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-exec-ex-fi-moexec-se-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-exec-ex-fi-moexec-se-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_proc-exec,P=1,size=,stride=,mode=exec,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=lat_proc-exec,P=1,size=,stride=,mode=exec,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-fork-ex-fi-mofork-se-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-fork-ex-fi-mofork-se-si-st.py index 3c72c8b..00187aa 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-fork-ex-fi-mofork-se-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-fork-ex-fi-mofork-se-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_proc-fork,P=1,size=,stride=,mode=fork,filepath=,extra=,setup= @@ -51,8 +52,8 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=0, - run_loop=1, - result_select_percent=100, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-shell-ex-fi-moshell-se-si-st.py b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-shell-ex-fi-moshell-se-si-st.py index e669de8..de2b009 100755 --- a/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-shell-ex-fi-moshell-se-si-st.py +++ b/testcase/lmbench/tperf-lmbench-P1-bnlat_proc-shell-ex-fi-moshell-se-si-st.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试mm性能,参数:benchmark_name=lat_proc-shell,P=1,size=,stride=,mode=shell,filepath=,extra=,setup= @@ -50,9 +51,9 @@ class PythonTestCase(MyTestCase): # @测试步骤: 使用lmbench工具测试性能,参数:benchmark_name=lat_proc-shell,P=1,size=,stride=,mode=shell,filepath=,extra=,setup= # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup=0, - run_loop=1, - result_select_percent=100, + warmup=1, + run_loop=10, + result_select_percent=80, ) self.perf_tool.report(testcase=self) self.assert_true(len(self.perf_tool.results) > 0) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa102-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa102-sk8-sulat_ctx.py index f1a3b1f..978ff0d 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa102-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa102-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=102,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa105-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa105-sk64-sulat_ctx.py index ecc6b5b..c947e37 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa105-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa105-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=105,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa109-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa109-sk1024-sulat_ctx.py index fd6aac0..3330dd8 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa109-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa109-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=109,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa109-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa109-sk512-sulat_ctx.py index 83b2538..015c9a6 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa109-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa109-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=109,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa120-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa120-sk64-sulat_ctx.py index bcc47c2..8c5ce03 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa120-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa120-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=120,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa122-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa122-sk1024-sulat_ctx.py index 24ba0b1..766a810 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa122-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa122-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=122,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa122-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa122-sk512-sulat_ctx.py index 1c2c716..ca72152 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa122-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa122-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=122,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa17-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa17-sk1024-sulat_ctx.py index eb57888..b992ad7 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa17-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa17-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=17,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa18-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa18-sk512-sulat_ctx.py index 5efcf15..ece7c01 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa18-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa18-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=18,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa19-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa19-sk64-sulat_ctx.py index 5f9db79..9e891a8 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa19-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa19-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=19,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa20-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa20-sk8-sulat_ctx.py index df54c28..383e7a5 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa20-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa20-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=20,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa30-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa30-sk1024-sulat_ctx.py index 538c50e..df352a4 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa30-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa30-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=30,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa30-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa30-sk512-sulat_ctx.py index 62244a2..b56f06f 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa30-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa30-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=30,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa34-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa34-sk64-sulat_ctx.py index e81ad92..ac7818d 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa34-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa34-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=34,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa37-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa37-sk8-sulat_ctx.py index 18ccd85..0ac54d1 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa37-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa37-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=37,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa43-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa43-sk1024-sulat_ctx.py index da540f8..32815e2 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa43-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa43-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=43,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa43-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa43-sk512-sulat_ctx.py index 4e51326..4f92b71 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa43-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa43-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=43,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa48-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa48-sk64-sulat_ctx.py index 3e56033..067fa15 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa48-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa48-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=48,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa5-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa5-sk1024-sulat_ctx.py index 64184e5..2f3e3fe 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa5-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa5-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=5,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa53-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa53-sk8-sulat_ctx.py index 37b870e..ce509c9 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa53-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa53-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=53,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa57-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa57-sk1024-sulat_ctx.py index fb923fc..190175d 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa57-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa57-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=57,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa57-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa57-sk512-sulat_ctx.py index 9dc46e6..a6f7505 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa57-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa57-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=57,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa6-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa6-sk512-sulat_ctx.py index 2ceed36..0d2ad2a 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa6-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa6-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=6,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa6-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa6-sk64-sulat_ctx.py index 08482cd..b4ccc18 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa6-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa6-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=6,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa63-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa63-sk64-sulat_ctx.py index aeaaa6a..4794d60 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa63-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa63-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=63,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa65-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa65-sk8-sulat_ctx.py index f45d870..57f30e1 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa65-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa65-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=65,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa70-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa70-sk1024-sulat_ctx.py index 26d498f..91d527b 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa70-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa70-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=70,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa70-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa70-sk512-sulat_ctx.py index e35c3ad..13966bc 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa70-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa70-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=70,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa75-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa75-sk64-sulat_ctx.py index f921943..9c55f0c 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa75-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa75-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=75,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa77-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa77-sk8-sulat_ctx.py index 77ed3e2..156c32f 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa77-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa77-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=77,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa8-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa8-sk8-sulat_ctx.py index daa2b8f..f17b77e 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa8-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa8-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=8,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa80-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa80-sk64-sulat_ctx.py index 7b3d851..3e87bc3 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa80-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa80-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=80,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa80-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa80-sk8-sulat_ctx.py index 85de27b..4a5c63e 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa80-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa80-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=80,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa83-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa83-sk1024-sulat_ctx.py index 0ea6e00..7341a74 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa83-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa83-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=83,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa83-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa83-sk512-sulat_ctx.py index 9beaba2..a4e6c5e 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa83-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa83-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=83,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa86-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa86-sk8-sulat_ctx.py index 2d2f989..3941386 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa86-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa86-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=86,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa91-sk64-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa91-sk64-sulat_ctx.py index cb0d6c0..b80b4cd 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa91-sk64-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa91-sk64-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=91,size_kb=64,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa95-sk8-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa95-sk8-sulat_ctx.py index 8e4c22a..6989760 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa95-sk8-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa95-sk8-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=95,size_kb=8,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa96-sk1024-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa96-sk1024-sulat_ctx.py index be87ed3..b28a907 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa96-sk1024-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa96-sk1024-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=96,size_kb=1024,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/lmbench/tperf-lmbench-np12-pa96-sk512-sulat_ctx.py b/testcase/lmbench/tperf-lmbench-np12-pa96-sk512-sulat_ctx.py index 473541d..1f0a88b 100755 --- a/testcase/lmbench/tperf-lmbench-np12-pa96-sk512-sulat_ctx.py +++ b/testcase/lmbench/tperf-lmbench-np12-pa96-sk512-sulat_ctx.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用lmbench测试sched性能,参数:subtest=lat_ctx,parallelism=96,size_kb=512,num_procs=12 @@ -47,7 +48,7 @@ class PythonTestCase(MyTestCase): # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( warmup=1, - run_loop=5, + run_loop=1, result_select_percent=90, ) self.perf_tool.report(testcase=self) diff --git a/testcase/mlc/tperf-mlc-tmbandwidth_matrix.py b/testcase/mlc/tperf-mlc-tmbandwidth_matrix.py index 61750ad..aedaba7 100755 --- a/testcase/mlc/tperf-mlc-tmbandwidth_matrix.py +++ b/testcase/mlc/tperf-mlc-tmbandwidth_matrix.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=bandwidth_matrix diff --git a/testcase/mlc/tperf-mlc-tmidle_latency.py b/testcase/mlc/tperf-mlc-tmidle_latency.py index a7a950b..8ea7ad6 100755 --- a/testcase/mlc/tperf-mlc-tmidle_latency.py +++ b/testcase/mlc/tperf-mlc-tmidle_latency.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=idle_latency diff --git a/testcase/mlc/tperf-mlc-tmlatency_matrix.py b/testcase/mlc/tperf-mlc-tmlatency_matrix.py index a7ad9af..f96d67c 100755 --- a/testcase/mlc/tperf-mlc-tmlatency_matrix.py +++ b/testcase/mlc/tperf-mlc-tmlatency_matrix.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=latency_matrix diff --git a/testcase/mlc/tperf-mlc-tmloaded_latency.py b/testcase/mlc/tperf-mlc-tmloaded_latency.py index 1b977be..ff79e9c 100755 --- a/testcase/mlc/tperf-mlc-tmloaded_latency.py +++ b/testcase/mlc/tperf-mlc-tmloaded_latency.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=loaded_latency diff --git a/testcase/mlc/tperf-mlc-tmpeak_injection_bandwidth.py b/testcase/mlc/tperf-mlc-tmpeak_injection_bandwidth.py index 7e1eca2..3c408e9 100755 --- a/testcase/mlc/tperf-mlc-tmpeak_injection_bandwidth.py +++ b/testcase/mlc/tperf-mlc-tmpeak_injection_bandwidth.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用mlc测试mm性能,参数:test_mode=peak_injection_bandwidth diff --git a/testcase/parse-csv2case.py b/testcase/parse-csv2case.py index 287b043..09c41a0 100755 --- a/testcase/parse-csv2case.py +++ b/testcase/parse-csv2case.py @@ -533,11 +533,7 @@ class PythonTestCase(MyTestCase): if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("扩展属性", "") } - @用例类型: { - "" - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("用例类型", "") - } + @用例类型: 性能测试 @自动化: { 1 if case_name not in testcases_by_name @@ -664,6 +660,7 @@ def gen_template(case_data_dict: dict): } } } + case_data_by_template.clear() for tool_name, case_data in case_data_dict.items(): for case_name, case_info in case_data["args_dict"].items(): template = case_info["模板"] @@ -712,9 +709,6 @@ def gen_template(case_data_dict: dict): def main(): - args = parse_args() - print(args) - case_data_dict = {} result_count = 0 diff --git a/testcase/stream/tperf-stream-ON1-bnsingle.py b/testcase/stream/tperf-stream-ON1-bnsingle.py index 3a42a02..04c4e96 100755 --- a/testcase/stream/tperf-stream-ON1-bnsingle.py +++ b/testcase/stream/tperf-stream-ON1-bnsingle.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=single,OMP_NUM_THREADS=1 diff --git a/testcase/stream/tperf-stream-ON16-bnthread-16.py b/testcase/stream/tperf-stream-ON16-bnthread-16.py index a8831bc..408a796 100755 --- a/testcase/stream/tperf-stream-ON16-bnthread-16.py +++ b/testcase/stream/tperf-stream-ON16-bnthread-16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=thread-16,OMP_NUM_THREADS=16 diff --git a/testcase/stream/tperf-stream-ON32-bnthread-32.py b/testcase/stream/tperf-stream-ON32-bnthread-32.py index 5976477..201c531 100755 --- a/testcase/stream/tperf-stream-ON32-bnthread-32.py +++ b/testcase/stream/tperf-stream-ON32-bnthread-32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=thread-32,OMP_NUM_THREADS=32 diff --git a/testcase/stream/tperf-stream-ON4-bnthread-4.py b/testcase/stream/tperf-stream-ON4-bnthread-4.py index 8a4e914..2f22a59 100755 --- a/testcase/stream/tperf-stream-ON4-bnthread-4.py +++ b/testcase/stream/tperf-stream-ON4-bnthread-4.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=thread-4,OMP_NUM_THREADS=4 diff --git a/testcase/stream/tperf-stream-ON8-bnthread-8.py b/testcase/stream/tperf-stream-ON8-bnthread-8.py index d7e0a4b..f64aaf7 100755 --- a/testcase/stream/tperf-stream-ON8-bnthread-8.py +++ b/testcase/stream/tperf-stream-ON8-bnthread-8.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=thread-8,OMP_NUM_THREADS=8 diff --git a/testcase/stream/tperf-stream-ONmax-bnmax.py b/testcase/stream/tperf-stream-ONmax-bnmax.py index c0bd897..0dad124 100755 --- a/testcase/stream/tperf-stream-ONmax-bnmax.py +++ b/testcase/stream/tperf-stream-ONmax-bnmax.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用stream测试memory性能,参数:benchmark_name=max,OMP_NUM_THREADS=max diff --git a/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-rndwr-marnd-mb128k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-rndwr-marnd-mb128k-mowrite-mt10G-mt-mt.py index a8c49a4..b94d719 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-rndwr-marnd-mb128k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-rndwr-marnd-mb128k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-128k-size-10g-rndwr,memory_block_size=128k,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-seqwr-maseq-mb128k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-seqwr-maseq-mb128k-mowrite-mt10G-mt-mt.py index 722a1e2..9db4554 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-seqwr-maseq-mb128k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-128k-size-10g-seqwr-maseq-mb128k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-128k-size-10g-seqwr,memory_block_size=128k,memory_total_size=10G,memory_oper=write,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-16k-size-1g-seqrd-maseq-mb16k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-16k-size-1g-seqrd-maseq-mb16k-moread-mt1G-mt-mt.py index e2262b9..823c2cf 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-16k-size-1g-seqrd-maseq-mb16k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-16k-size-1g-seqrd-maseq-mb16k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-16k-size-1g-seqrd,memory_block_size=16k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndrd-marnd-mb1G-moread-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndrd-marnd-mb1G-moread-mt10G-mt-mt.py index 9c135f1..4f97cdc 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndrd-marnd-mb1G-moread-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndrd-marnd-mb1G-moread-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-1g-size-10g-rndrd,memory_block_size=1G,memory_total_size=10G,memory_oper=read,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndwr-marnd-mb1G-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndwr-marnd-mb1G-mowrite-mt10G-mt-mt.py index d6351ae..29a9b4f 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndwr-marnd-mb1G-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-1g-size-10g-rndwr-marnd-mb1G-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-1g-size-10g-rndwr,memory_block_size=1G,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-1k-size-1g-seqrd-maseq-mb1k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-1k-size-1g-seqrd-maseq-mb1k-moread-mt1G-mt-mt.py index 431543e..86b6639 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-1k-size-1g-seqrd-maseq-mb1k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-1k-size-1g-seqrd-maseq-mb1k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-1k-size-1g-seqrd,memory_block_size=1k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-256k-size-10g-rndwr-marnd-mb256k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-256k-size-10g-rndwr-marnd-mb256k-mowrite-mt10G-mt-mt.py index 834575d..1a7c57f 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-256k-size-10g-rndwr-marnd-mb256k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-256k-size-10g-rndwr-marnd-mb256k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-256k-size-10g-rndwr,memory_block_size=256k,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-2k-size-1g-seqrd-maseq-mb2k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-2k-size-1g-seqrd-maseq-mb2k-moread-mt1G-mt-mt.py index 8da576c..b42de9c 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-2k-size-1g-seqrd-maseq-mb2k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-2k-size-1g-seqrd-maseq-mb2k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-2k-size-1g-seqrd,memory_block_size=2k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndrd-marnd-mb32k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndrd-marnd-mb32k-moread-mt1G-mt-mt.py index 93336d7..6071947 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndrd-marnd-mb32k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndrd-marnd-mb32k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-32k-size-1g-rndrd,memory_block_size=32k,memory_total_size=1G,memory_oper=read,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndwr-marnd-mb32k-mowrite-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndwr-marnd-mb32k-mowrite-mt1G-mt-mt.py index b23707b..baac89d 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndwr-marnd-mb32k-mowrite-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-rndwr-marnd-mb32k-mowrite-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-32k-size-1g-rndwr,memory_block_size=32k,memory_total_size=1G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqrd-maseq-mb32k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqrd-maseq-mb32k-moread-mt1G-mt-mt.py index 27eaae5..e712cd8 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqrd-maseq-mb32k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqrd-maseq-mb32k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-32k-size-1g-seqrd,memory_block_size=32k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqwr-maseq-mb32k-mowrite-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqwr-maseq-mb32k-mowrite-mt1G-mt-mt.py index 4c04616..41b6e49 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqwr-maseq-mb32k-mowrite-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-32k-size-1g-seqwr-maseq-mb32k-mowrite-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-32k-size-1g-seqwr,memory_block_size=32k,memory_total_size=1G,memory_oper=write,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-4k-size-1g-seqrd-maseq-mb4k-moread-mt1G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-4k-size-1g-seqrd-maseq-mb4k-moread-mt1G-mt-mt.py index 5b08b07..a5a89f6 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-4k-size-1g-seqrd-maseq-mb4k-moread-mt1G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-4k-size-1g-seqrd-maseq-mb4k-moread-mt1G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-4k-size-1g-seqrd,memory_block_size=4k,memory_total_size=1G,memory_oper=read,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-rndwr-marnd-mb512k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-rndwr-marnd-mb512k-mowrite-mt10G-mt-mt.py index d11fe8b..3b02502 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-rndwr-marnd-mb512k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-rndwr-marnd-mb512k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-512k-size-10g-rndwr,memory_block_size=512k,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-seqwr-maseq-mb512k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-seqwr-maseq-mb512k-mowrite-mt10G-mt-mt.py index 9b99492..79f6d7d 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-seqwr-maseq-mb512k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-512k-size-10g-seqwr-maseq-mb512k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-512k-size-10g-seqwr,memory_block_size=512k,memory_total_size=10G,memory_oper=write,memory_access_mode=seq,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndrd-marnd-mb64k-moread-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndrd-marnd-mb64k-moread-mt10G-mt-mt.py index dc021c9..f47f95e 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndrd-marnd-mb64k-moread-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndrd-marnd-mb64k-moread-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-64k-size-10g-rndrd,memory_block_size=64k,memory_total_size=10G,memory_oper=read,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndwr-marnd-mb32k-mowrite-mt10G-mt-mt.py b/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndwr-marnd-mb32k-mowrite-mt10G-mt-mt.py index 012e0f5..7ccae07 100755 --- a/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndwr-marnd-mb32k-mowrite-mt10G-mt-mt.py +++ b/testcase/sysbench/tperf-sysbench-bnblock-64k-size-10g-rndwr-marnd-mb32k-mowrite-mt10G-mt-mt.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=block-64k-size-10g-rndwr,memory_block_size=32k,memory_total_size=10G,memory_oper=write,memory_access_mode=rnd,mm_threads=,mm_time= diff --git a/testcase/sysbench/tperf-sysbench-bnthread-1-ma-mb-mo-mt-mt1-mt300.py b/testcase/sysbench/tperf-sysbench-bnthread-1-ma-mb-mo-mt-mt1-mt300.py index add4dc5..1e52aba 100755 --- a/testcase/sysbench/tperf-sysbench-bnthread-1-ma-mb-mo-mt-mt1-mt300.py +++ b/testcase/sysbench/tperf-sysbench-bnthread-1-ma-mb-mo-mt-mt1-mt300.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=thread-1,memory_block_size=,memory_total_size=,memory_oper=,memory_access_mode=,mm_threads=1,mm_time=300 diff --git a/testcase/sysbench/tperf-sysbench-bnthread-max-ma-mb-mo-mt-mtmax-mt300.py b/testcase/sysbench/tperf-sysbench-bnthread-max-ma-mb-mo-mt-mtmax-mt300.py index 69d5951..765b64a 100755 --- a/testcase/sysbench/tperf-sysbench-bnthread-max-ma-mb-mo-mt-mtmax-mt300.py +++ b/testcase/sysbench/tperf-sysbench-bnthread-max-ma-mb-mo-mt-mtmax-mt300.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试mm性能,参数:benchmark_name=thread-max,memory_block_size=,memory_total_size=,memory_oper=,memory_access_mode=,mm_threads=max,mm_time=300 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty1000-th85.py b/testcase/sysbench/tperf-sysbench-tl256-ty1000-th85.py index ff00a68..da4d861 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty1000-th85.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty1000-th85.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=85,thread_locks=256,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty1000-th96.py b/testcase/sysbench/tperf-sysbench-tl256-ty1000-th96.py index 60f8a57..86e4701 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty1000-th96.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty1000-th96.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=96,thread_locks=256,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty2000-th85.py b/testcase/sysbench/tperf-sysbench-tl256-ty2000-th85.py index 237d13f..628d266 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty2000-th85.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty2000-th85.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=85,thread_locks=256,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty2000-th96.py b/testcase/sysbench/tperf-sysbench-tl256-ty2000-th96.py index be9b826..47ca4db 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty2000-th96.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty2000-th96.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=96,thread_locks=256,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty3000-th85.py b/testcase/sysbench/tperf-sysbench-tl256-ty3000-th85.py index bebaa16..4e19916 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty3000-th85.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty3000-th85.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=85,thread_locks=256,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty3000-th96.py b/testcase/sysbench/tperf-sysbench-tl256-ty3000-th96.py index 4003cd4..2e6beaa 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty3000-th96.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty3000-th96.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=96,thread_locks=256,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty4000-th85.py b/testcase/sysbench/tperf-sysbench-tl256-ty4000-th85.py index 51e371d..a3c0b70 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty4000-th85.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty4000-th85.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=85,thread_locks=256,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl256-ty4000-th96.py b/testcase/sysbench/tperf-sysbench-tl256-ty4000-th96.py index bfb082c..5577a5e 100755 --- a/testcase/sysbench/tperf-sysbench-tl256-ty4000-th96.py +++ b/testcase/sysbench/tperf-sysbench-tl256-ty4000-th96.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=96,thread_locks=256,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th19.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th19.py index d81b9de..fe73e21 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th19.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=19,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py index 15468fe..9852a38 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th45.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th45.py index 3664266..63ddb45 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th45.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th45.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=45,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th59.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th59.py index 29888df..a14a66f 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th59.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=59,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th6.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th6.py index 82bb2d7..6f992a0 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th6.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=6,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th72.py b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th72.py index e64e125..34e37fd 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty1000-th72.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty1000-th72.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=72,thread_locks=4,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th19.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th19.py index b623a56..d8d6e15 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th19.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=19,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py index c46e5f3..121728b 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th45.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th45.py index cca4ddb..7904a4d 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th45.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th45.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=45,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th59.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th59.py index 7354e83..e1acd07 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th59.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=59,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th6.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th6.py index e58c402..1b64784 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th6.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=6,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th72.py b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th72.py index 55ccf20..d095557 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty2000-th72.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty2000-th72.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=72,thread_locks=4,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th19.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th19.py index cc4808c..0a4e56e 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th19.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=19,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py index 6489c23..89c522e 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th45.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th45.py index 20260f7..36f8a3d 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th45.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th45.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=45,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th59.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th59.py index 06fd86e..c9cf0cd 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th59.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=59,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th6.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th6.py index 5abde75..825212e 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th6.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=6,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th72.py b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th72.py index c12f591..ba7a270 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty3000-th72.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty3000-th72.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=72,thread_locks=4,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th19.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th19.py index eb0380f..329905f 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th19.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th19.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=19,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py index 037c6bd..3cd55c0 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th32.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=32,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th45.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th45.py index 0b3d4b9..b863ad7 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th45.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th45.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=45,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th59.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th59.py index 5387624..1403300 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th59.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th59.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=59,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th6.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th6.py index 512b6c0..34894e7 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th6.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=6,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th72.py b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th72.py index 764c735..5afe067 100755 --- a/testcase/sysbench/tperf-sysbench-tl4-ty4000-th72.py +++ b/testcase/sysbench/tperf-sysbench-tl4-ty4000-th72.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=72,thread_locks=4,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th111.py b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th111.py index 3590aec..5d9789e 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th111.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th111.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=111,thread_locks=512,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th124.py b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th124.py index 30ef3e4..1542f3f 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty1000-th124.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty1000-th124.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=124,thread_locks=512,thread_yields=1000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th111.py b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th111.py index ed02197..a36033c 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th111.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th111.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=111,thread_locks=512,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th124.py b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th124.py index 50f50b4..60e313b 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty2000-th124.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty2000-th124.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=124,thread_locks=512,thread_yields=2000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th111.py b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th111.py index ee7d9e1..8db3f0d 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th111.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th111.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=111,thread_locks=512,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th124.py b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th124.py index 0c01ab0..7d61157 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty3000-th124.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty3000-th124.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=124,thread_locks=512,thread_yields=3000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th111.py b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th111.py index 0906537..2060473 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th111.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th111.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=111,thread_locks=512,thread_yields=4000 diff --git a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th124.py b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th124.py index c9d1f87..bd441bb 100755 --- a/testcase/sysbench/tperf-sysbench-tl512-ty4000-th124.py +++ b/testcase/sysbench/tperf-sysbench-tl512-ty4000-th124.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用sysbench测试sched性能,参数:threads=124,thread_locks=512,thread_yields=4000 diff --git a/testcase/unixbench/tperf-unixbench-c1-teshell16.py b/testcase/unixbench/tperf-unixbench-c1-teshell16.py index 8a2b73b..b79ce10 100755 --- a/testcase/unixbench/tperf-unixbench-c1-teshell16.py +++ b/testcase/unixbench/tperf-unixbench-c1-teshell16.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用unixbench测试mm性能,参数:testname=shell16,c=1 diff --git a/testcase/unixbench/tperf-unixbench-c1-tespawn.py b/testcase/unixbench/tperf-unixbench-c1-tespawn.py index 2ba7930..1fdac20 100755 --- a/testcase/unixbench/tperf-unixbench-c1-tespawn.py +++ b/testcase/unixbench/tperf-unixbench-c1-tespawn.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 import os.path import sys @@ -22,7 +23,7 @@ class PythonTestCase(MyTestCase): @用例级别: 3 @用例标签: @扩展属性: - @用例类型: + @用例类型: 性能测试 @自动化: 1 @超时时间: 0 @用例描述: 使用unixbench测试mm性能,参数:testname=spawn,c=1 -- Gitee From 4c00790949a47f6b0052dcbea579e2ddb4864df6 Mon Sep 17 00:00:00 2001 From: deshengwu Date: Tue, 7 Apr 2026 20:17:29 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=96=87=E4=BB=B6=E7=9A=84=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- testcase/parse-csv2case.py | 53 ++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/testcase/parse-csv2case.py b/testcase/parse-csv2case.py index 09c41a0..ae4c8fd 100755 --- a/testcase/parse-csv2case.py +++ b/testcase/parse-csv2case.py @@ -248,7 +248,7 @@ def parse_args_csv(args_file: str) -> dict: "工具名称": tool_name, "子系统": row["子系统"].strip(), "权重": float(row.get("权重", "0").strip()), - "模板": row["模板"].strip(), + "模板": row.get("模板", "huoyan").strip(), "参数": { k.strip().strip(g_strip_char): v.strip() for k, v in row.items() @@ -645,33 +645,46 @@ def gen_template(case_data_dict: dict): case_data_by_template = { "<模板名称>": { "<工具名称>": { - "<用例名称>": { - "工具名称": "<工具名称>", - "用例名称": "<用例名称>", - "用例ID": "<用例ID>", - "子系统": "<子系统>", - "权重": "<权重>", - "模板": "<模板>", - "参数": { - "<参数名1>": "<参数值1>", - "<参数名2>": "<参数值2>", + "<子系统>": { + "<用例名称>": { + "工具名称": "<工具名称>", + "用例名称": "<用例名称>", + "用例ID": "<用例ID>", + "子系统": "<子系统>", + "权重": "<权重>", + "模板": "<模板>", + "参数": { + "<参数名1>": "<参数值1>", + "<参数名2>": "<参数值2>", + }, }, }, } } } case_data_by_template.clear() + # 将用例数据分别按工具名称、子系统和用例名排序后记录到case_data_by_template for tool_name, case_data in case_data_dict.items(): for case_name, case_info in case_data["args_dict"].items(): - template = case_info["模板"] + if tool_name != case_info["工具名称"]: + raise ValueError( + f"{tool_name}:{case_name} tool name mismatch: {tool_name} != {case_info['工具名称']}" + ) + template = case_info.get("模板") if not template: logger.warning(f"{tool_name}:{case_name} no template found") continue + subsys = case_info.get("子系统") + if not subsys: + logger.warning(f"{tool_name}:{case_name} no subsys found") + continue if template not in case_data_by_template: case_data_by_template[template] = {} if tool_name not in case_data_by_template[template]: case_data_by_template[template][tool_name] = {} - case_data_by_template[template][tool_name][case_name] = case_info + if subsys not in case_data_by_template[template][tool_name]: + case_data_by_template[template][tool_name][subsys] = {} + case_data_by_template[template][tool_name][subsys][case_name] = case_info # 遍历模板,重新生成模板文件 template_count = 0 for template, tool_data in case_data_by_template.items(): @@ -697,12 +710,14 @@ def gen_template(case_data_dict: dict): "权重:除以同维度指标权重和得到最终权重,用于计算加权几何平均数,0和空不做统计,,,,,\n" ) f.write("用例名,性能指标名,L0,L1,L2,权重\n") - for tool_name, case_data in tool_data.items(): - for case_name, case_info in case_data.items(): - f.write( - f"{case_name},,{case_info['子系统']},,,{case_info['权重']}\n" - ) - template_case_count += 1 + for tool_name in sorted(tool_data.keys()): + subsys_data = tool_data[tool_name] + for subsys in sorted(subsys_data.keys()): + case_data = subsys_data[subsys] + for case_name in sorted(case_data.keys()): + case_info = case_data[case_name] + f.write(f"{case_name},,{subsys},,,{case_info['权重']}\n") + template_case_count += 1 logger.info(f"template {template} has {template_case_count} cases") template_count += 1 logger.info(f"total {template_count} templates generated") -- Gitee From 7080f17f07eae12aed77d376fc04a235d040d2cd Mon Sep 17 00:00:00 2001 From: deshengwu Date: Mon, 13 Apr 2026 19:06:20 +0800 Subject: [PATCH 06/10] =?UTF-8?q?netperf=E8=B0=83=E8=AF=95OK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- testcase/netperf/netperf-args.csv | 61 +++++++++ testcase/netperf/netperf.py | 123 ++++++++++++++++++ .../tperf-netperf-ip4-le12400-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip4-le12400-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le12400-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le12400-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le12400-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le16100-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip4-le16100-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le16100-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le16100-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le16100-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le19600-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip4-le19600-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le19600-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le19600-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le19600-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le500-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip4-le500-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le500-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le500-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le500-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le5300-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip4-le5300-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le5300-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le5300-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le5300-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le8900-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip4-le8900-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le8900-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip4-le8900-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip4-le8900-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le12400-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip6-le12400-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le12400-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le12400-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le12400-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le16100-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip6-le16100-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le16100-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le16100-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le16100-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le19600-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip6-le19600-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le19600-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le19600-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le19600-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le500-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip6-le500-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le500-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le500-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le500-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le5300-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip6-le5300-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le5300-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le5300-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le5300-tyUDP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le8900-tyTCP_CRR.py | 61 +++++++++ .../tperf-netperf-ip6-le8900-tyTCP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le8900-tyTCP_STREAM.py | 61 +++++++++ .../tperf-netperf-ip6-le8900-tyUDP_RR.py | 61 +++++++++ .../tperf-netperf-ip6-le8900-tyUDP_STREAM.py | 61 +++++++++ testcase/parse-csv2case.py | 107 +++++---------- tperf.py | 23 ++++ 64 files changed, 3901 insertions(+), 73 deletions(-) create mode 100644 testcase/netperf/netperf-args.csv create mode 100644 testcase/netperf/netperf.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le500-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le500-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le500-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le500-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le500-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le500-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le500-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le500-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le500-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_CRR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_STREAM.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_RR.py create mode 100755 testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_STREAM.py diff --git a/testcase/netperf/netperf-args.csv b/testcase/netperf/netperf-args.csv new file mode 100644 index 0000000..04e3b5e --- /dev/null +++ b/testcase/netperf/netperf-args.csv @@ -0,0 +1,61 @@ +工具名称,子系统,权重,模板,ipver,type,len +netperf,net,0.052845,huoyan,4,TCP_RR,500 +netperf,net,0.052845,huoyan,4,TCP_CRR,500 +netperf,net,0.052845,huoyan,4,TCP_STREAM,500 +netperf,net,0.008155,huoyan,4,TCP_RR,5300 +netperf,net,0.008155,huoyan,4,TCP_CRR,5300 +netperf,net,0.008155,huoyan,4,TCP_STREAM,5300 +netperf,net,0.005291,huoyan,4,TCP_RR,8900 +netperf,net,0.005291,huoyan,4,TCP_CRR,8900 +netperf,net,0.005291,huoyan,4,TCP_STREAM,8900 +netperf,net,0.002606,huoyan,4,TCP_RR,12400 +netperf,net,0.002606,huoyan,4,TCP_CRR,12400 +netperf,net,0.002606,huoyan,4,TCP_STREAM,12400 +netperf,net,0.001430,huoyan,4,TCP_RR,16100 +netperf,net,0.001430,huoyan,4,TCP_CRR,16100 +netperf,net,0.001430,huoyan,4,TCP_STREAM,16100 +netperf,net,0.000784,huoyan,4,TCP_RR,19600 +netperf,net,0.000784,huoyan,4,TCP_CRR,19600 +netperf,net,0.000784,huoyan,4,TCP_STREAM,19600 +netperf,net,0.019817,huoyan,4,UDP_RR,500 +netperf,net,0.019817,huoyan,4,UDP_STREAM,500 +netperf,net,0.003058,huoyan,4,UDP_RR,5300 +netperf,net,0.003058,huoyan,4,UDP_STREAM,5300 +netperf,net,0.001984,huoyan,4,UDP_RR,8900 +netperf,net,0.001984,huoyan,4,UDP_STREAM,8900 +netperf,net,0.000977,huoyan,4,UDP_RR,12400 +netperf,net,0.000977,huoyan,4,UDP_STREAM,12400 +netperf,net,0.000536,huoyan,4,UDP_RR,16100 +netperf,net,0.000536,huoyan,4,UDP_STREAM,16100 +netperf,net,0.000294,huoyan,4,UDP_RR,19600 +netperf,net,0.000294,huoyan,4,UDP_STREAM,19600 +netperf,net,0.013211,huoyan,6,TCP_RR,500 +netperf,net,0.013211,huoyan,6,TCP_CRR,500 +netperf,net,0.013211,huoyan,6,TCP_STREAM,500 +netperf,net,0.002039,huoyan,6,TCP_RR,5300 +netperf,net,0.002039,huoyan,6,TCP_CRR,5300 +netperf,net,0.002039,huoyan,6,TCP_STREAM,5300 +netperf,net,0.001323,huoyan,6,TCP_RR,8900 +netperf,net,0.001323,huoyan,6,TCP_CRR,8900 +netperf,net,0.001323,huoyan,6,TCP_STREAM,8900 +netperf,net,0.000652,huoyan,6,TCP_RR,12400 +netperf,net,0.000652,huoyan,6,TCP_CRR,12400 +netperf,net,0.000652,huoyan,6,TCP_STREAM,12400 +netperf,net,0.000358,huoyan,6,TCP_RR,16100 +netperf,net,0.000358,huoyan,6,TCP_CRR,16100 +netperf,net,0.000358,huoyan,6,TCP_STREAM,16100 +netperf,net,0.000196,huoyan,6,TCP_RR,19600 +netperf,net,0.000196,huoyan,6,TCP_CRR,19600 +netperf,net,0.000196,huoyan,6,TCP_STREAM,19600 +netperf,net,0.004954,huoyan,6,UDP_RR,500 +netperf,net,0.004954,huoyan,6,UDP_STREAM,500 +netperf,net,0.000765,huoyan,6,UDP_RR,5300 +netperf,net,0.000765,huoyan,6,UDP_STREAM,5300 +netperf,net,0.000496,huoyan,6,UDP_RR,8900 +netperf,net,0.000496,huoyan,6,UDP_STREAM,8900 +netperf,net,0.000244,huoyan,6,UDP_RR,12400 +netperf,net,0.000244,huoyan,6,UDP_STREAM,12400 +netperf,net,0.000134,huoyan,6,UDP_RR,16100 +netperf,net,0.000134,huoyan,6,UDP_STREAM,16100 +netperf,net,0.000073,huoyan,6,UDP_RR,19600 +netperf,net,0.000073,huoyan,6,UDP_STREAM,19600 diff --git a/testcase/netperf/netperf.py b/testcase/netperf/netperf.py new file mode 100644 index 0000000..6ff1c4c --- /dev/null +++ b/testcase/netperf/netperf.py @@ -0,0 +1,123 @@ +#!/usr/bin/python3 +# coding: utf-8 +# Time: 2026-04-08 15:14:08 +# Desc: + + +import json +import os +import shutil +import stat +import time +import sys +from typing import Union + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) + +from common.lib.benchmark import KeyItem, PerfData, TSTPerf, ValueType # noqa: E402 +from common.lib.common import command, is_process_exists # noqa: E402 +from lib.ts_common import ( # noqa: E402 + PerfNetSingle, + tperf_top_dir, +) + + +class PerfNetperfSingle(TSTPerf, PerfNetSingle): + def __init__( + self, + tc_name: str, + ipver: str, + type: str, + len: str, + ): + self.log(PerfNetperfSingle.mro()) + super(PerfNetSingle, self).__init__() + super(TSTPerf, self).__init__() + super(PerfNetperfSingle, self).__init__() + self.netperf = os.path.join(tperf_top_dir, "tools/netperf.install/build/bin/netperf") + self.netserver = os.path.join(tperf_top_dir, "tools/netperf.install/build/bin/netserver") + self.tc_name = tc_name + self.ipver = ipver + self.type = type + self.len = len + self.testlen = 5 + if self.type.endswith("_STREAM") or self.type.endswith("_MAERTS"): + self.test_opt = f"-{self.ipver} -t {self.type} -- -m {self.len}" + elif self.type.endswith("_RR"): + self.test_opt = f"-{self.ipver} -t {self.type} -- -r {self.len},{self.len}" + else: + raise Exception("type error") + self.test_server_ip = self.ip6_server if self.is_ipv6() else self.ip_server + self.test_client_ip = self.ip6_client if self.is_ipv6() else self.ip_client + self.cmd_server = f"{self.netserver} -L {self.test_server_ip}" + self.cmd_client = ( + f"{self.netperf} -l {self.testlen} -L {self.test_client_ip} -H {self.test_server_ip} {self.test_opt}" + ) + self.outs = "" + self.errs = "" + self.server_pid = -8 + + def is_ipv6(self) -> bool: + if "-6" in self.test_opt or "--version6" in self.test_opt: + return True + return False + + def prepare(self): + """正式执行benchmark性能测试前,先prepare""" + # 检查netperf是否有被编译 + if not os.path.isfile(self.netperf): + fail_dir = os.path.join(tperf_top_dir, "tools/netperf.install.fail") + if os.path.isdir(fail_dir): + raise FileNotFoundError(f"netperf may compile fail: {fail_dir}") + self.log("compile netperf") + command(cmd=f"{os.path.join(tperf_top_dir, 'tools/netperf/tst-build.sh')}") + if not os.path.isfile(self.netperf): + raise FileNotFoundError(f"netperf tool compile fail: {self.netperf}") + # 配置测试环境的网络 + self.prepare_net() + # 拉起服务端 + _, _, _, self.server_pid = self.run_in_server(cmd=self.cmd_server, check=True) + + def benchmark(self): + """执行性能测试""" + # 客户端执行性能测试 + self.outs, _, _, _ = self.run_in_client(cmd=self.cmd_client, check=True) + self.log(self.outs) + + def parse_test_data(self) -> Union[list, PerfData]: + """执行benchmark性能测试后,对测试结果进行解析,返回 PerfData 或其 list 性能测试结果""" + if not self.outs: + raise Exception("test output is empty") + if "Throughput" in self.outs and "10^6bits/sec" in self.outs: + unit = "10^6bits/sec" + name_suffix = "bw" + elif "Trans." in self.outs and "Rate" in self.outs and "per sec" in self.outs: + unit = "trans/sec" + name_suffix = "rate" + else: + raise Exception("unit not found") + for line in self.outs.splitlines()[::-1]: + s = line.split() + if len(s) >= 5: + value = float(s[-1]) + result = PerfData( + name=f"{self.tc_name}-{name_suffix}", + value_type=ValueType.HIB, + key_item=KeyItem.avg, + unit=unit, + label="L0:网络", + ) + result.set_key_value(value=value) + return result + raise Exception("get result fail") + + def cleanup(self): + """性能测试完成后cleanup""" + if self.server_pid and is_process_exists(pid=self.server_pid): + os.kill(self.server_pid, 9) + self.cleanup_net() diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_CRR.py new file mode 100755 index 0000000..a20466b --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 86734f78266a347d + @用例名称: tperf-netperf-ip4-le12400-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_RR.py new file mode 100755 index 0000000..c846a9a --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 584db003f8c54fc8 + @用例名称: tperf-netperf-ip4-le12400-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_STREAM.py new file mode 100755 index 0000000..4da642d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 276ed9144616b237 + @用例名称: tperf-netperf-ip4-le12400-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_RR.py new file mode 100755 index 0000000..43044da --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 19438df9132b6645 + @用例名称: tperf-netperf-ip4-le12400-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_STREAM.py new file mode 100755 index 0000000..20dc075 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le12400-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: cd231649851dbbf6 + @用例名称: tperf-netperf-ip4-le12400-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_CRR.py new file mode 100755 index 0000000..5d4ade4 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: fbb9dfd3aa176b67 + @用例名称: tperf-netperf-ip4-le16100-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_RR.py new file mode 100755 index 0000000..ad8328b --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7088355a9826f639 + @用例名称: tperf-netperf-ip4-le16100-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_STREAM.py new file mode 100755 index 0000000..5120d37 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c58b7aa211137221 + @用例名称: tperf-netperf-ip4-le16100-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_RR.py new file mode 100755 index 0000000..c69366a --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: dbbde1b6aa5763d7 + @用例名称: tperf-netperf-ip4-le16100-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_STREAM.py new file mode 100755 index 0000000..d7a5dc8 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le16100-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9d8e4ea5130dc23f + @用例名称: tperf-netperf-ip4-le16100-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_CRR.py new file mode 100755 index 0000000..103d9b1 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 281a3cd5cac9bf2b + @用例名称: tperf-netperf-ip4-le19600-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_RR.py new file mode 100755 index 0000000..d87f4c0 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 57d005f07c8d8683 + @用例名称: tperf-netperf-ip4-le19600-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_STREAM.py new file mode 100755 index 0000000..1d74998 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3ac5c08ab8ff9458 + @用例名称: tperf-netperf-ip4-le19600-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_RR.py new file mode 100755 index 0000000..ba1be8e --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e53ad123490f5917 + @用例名称: tperf-netperf-ip4-le19600-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_STREAM.py new file mode 100755 index 0000000..873b236 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le19600-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 29973c2ad1df062a + @用例名称: tperf-netperf-ip4-le19600-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py new file mode 100755 index 0000000..963f36d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: bc5172b26c05c984 + @用例名称: tperf-netperf-ip4-le500-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_RR.py new file mode 100755 index 0000000..fac8421 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9ce7c46ad0646f1b + @用例名称: tperf-netperf-ip4-le500-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_STREAM.py new file mode 100755 index 0000000..3686f0e --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 69e43de0ed471ca5 + @用例名称: tperf-netperf-ip4-le500-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_RR.py new file mode 100755 index 0000000..fd9e38e --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ca0f663fc9f8c54f + @用例名称: tperf-netperf-ip4-le500-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_STREAM.py new file mode 100755 index 0000000..4fc7822 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d3bf3957d1c84a88 + @用例名称: tperf-netperf-ip4-le500-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_CRR.py new file mode 100755 index 0000000..32ba5c6 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0fe5726a5d1ed366 + @用例名称: tperf-netperf-ip4-le5300-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_RR.py new file mode 100755 index 0000000..45591e7 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 510830e590a543fd + @用例名称: tperf-netperf-ip4-le5300-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_STREAM.py new file mode 100755 index 0000000..2b8f17d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2d40fb20c2d88c51 + @用例名称: tperf-netperf-ip4-le5300-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_RR.py new file mode 100755 index 0000000..4e85c3b --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ad20776e510cc9b0 + @用例名称: tperf-netperf-ip4-le5300-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_STREAM.py new file mode 100755 index 0000000..fc014d2 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le5300-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2865d7520be03e9c + @用例名称: tperf-netperf-ip4-le5300-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_CRR.py new file mode 100755 index 0000000..2f46d9e --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3bd4134531eed4f0 + @用例名称: tperf-netperf-ip4-le8900-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_CRR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_CRR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_CRR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_RR.py new file mode 100755 index 0000000..25cb671 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a4a1a7858fe8540c + @用例名称: tperf-netperf-ip4-le8900-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_RR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_RR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_RR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_STREAM.py new file mode 100755 index 0000000..70bc99a --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7c80430080e28c86 + @用例名称: tperf-netperf-ip4-le8900-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=TCP_STREAM,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="TCP_STREAM", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=TCP_STREAM,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_RR.py new file mode 100755 index 0000000..7a92430 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b88e57e08b02eabe + @用例名称: tperf-netperf-ip4-le8900-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_RR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_RR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_RR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_STREAM.py new file mode 100755 index 0000000..8596157 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip4-le8900-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: de470bbd67bdf4ce + @用例名称: tperf-netperf-ip4-le8900-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=4,type=UDP_STREAM,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="4", + type="UDP_STREAM", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=4,type=UDP_STREAM,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_CRR.py new file mode 100755 index 0000000..5c2b81b --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e7efd8a7337a3b41 + @用例名称: tperf-netperf-ip6-le12400-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_RR.py new file mode 100755 index 0000000..1b3fe7f --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c5443ede6978aee1 + @用例名称: tperf-netperf-ip6-le12400-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_STREAM.py new file mode 100755 index 0000000..3357dae --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c8da964ed3240472 + @用例名称: tperf-netperf-ip6-le12400-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_RR.py new file mode 100755 index 0000000..1de81b1 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1382cd575d6c38b6 + @用例名称: tperf-netperf-ip6-le12400-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_STREAM.py new file mode 100755 index 0000000..478b95e --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le12400-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 74db19c3309df174 + @用例名称: tperf-netperf-ip6-le12400-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_CRR.py new file mode 100755 index 0000000..bf2c66d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1b44ee9302d1ff84 + @用例名称: tperf-netperf-ip6-le16100-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_RR.py new file mode 100755 index 0000000..0e18980 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4bee6efb0082945c + @用例名称: tperf-netperf-ip6-le16100-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_STREAM.py new file mode 100755 index 0000000..3103839 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7265887522f91ea6 + @用例名称: tperf-netperf-ip6-le16100-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_RR.py new file mode 100755 index 0000000..9936884 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b8c76b349d023a3a + @用例名称: tperf-netperf-ip6-le16100-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_STREAM.py new file mode 100755 index 0000000..c6d0a9e --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le16100-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: be3a78a422dd3d8d + @用例名称: tperf-netperf-ip6-le16100-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_CRR.py new file mode 100755 index 0000000..02dbd3c --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3ee4a1298e08412d + @用例名称: tperf-netperf-ip6-le19600-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_RR.py new file mode 100755 index 0000000..3bc0c80 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: f5d77ffd3d52f260 + @用例名称: tperf-netperf-ip6-le19600-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_STREAM.py new file mode 100755 index 0000000..b9477ce --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0319f642cc163982 + @用例名称: tperf-netperf-ip6-le19600-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_RR.py new file mode 100755 index 0000000..2b173c9 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a40f1238fd33fa80 + @用例名称: tperf-netperf-ip6-le19600-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_STREAM.py new file mode 100755 index 0000000..8a86ddb --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le19600-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e4de19891e5c07da + @用例名称: tperf-netperf-ip6-le19600-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_CRR.py new file mode 100755 index 0000000..dafc603 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 392d1bc8d20b2372 + @用例名称: tperf-netperf-ip6-le500-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_RR.py new file mode 100755 index 0000000..3b51776 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 544bcd188772378c + @用例名称: tperf-netperf-ip6-le500-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_STREAM.py new file mode 100755 index 0000000..cba614c --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d59757d9a6a0929f + @用例名称: tperf-netperf-ip6-le500-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_RR.py new file mode 100755 index 0000000..d67ff5d --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 6822ce849481018d + @用例名称: tperf-netperf-ip6-le500-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_STREAM.py new file mode 100755 index 0000000..1a7754a --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le500-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 225a386828f290b6 + @用例名称: tperf-netperf-ip6-le500-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_CRR.py new file mode 100755 index 0000000..2a7ffa5 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8316d4d85f240ef4 + @用例名称: tperf-netperf-ip6-le5300-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_RR.py new file mode 100755 index 0000000..ee7497e --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 20f6507ae12eb9eb + @用例名称: tperf-netperf-ip6-le5300-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_STREAM.py new file mode 100755 index 0000000..2f801e2 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 46b93a26646ec85a + @用例名称: tperf-netperf-ip6-le5300-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_RR.py new file mode 100755 index 0000000..9db82a7 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9f5c122df53b15f4 + @用例名称: tperf-netperf-ip6-le5300-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_STREAM.py new file mode 100755 index 0000000..2fc3e9c --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le5300-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 94ca65e06082bdd1 + @用例名称: tperf-netperf-ip6-le5300-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_CRR.py new file mode 100755 index 0000000..de524dc --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_CRR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: fa1c14469963220e + @用例名称: tperf-netperf-ip6-le8900-tyTCP_CRR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_CRR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_CRR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_CRR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_RR.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_RR.py new file mode 100755 index 0000000..dcdaffe --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a4d532dc6721d5e4 + @用例名称: tperf-netperf-ip6-le8900-tyTCP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_RR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_RR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_RR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_STREAM.py new file mode 100755 index 0000000..25d6636 --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyTCP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d021f674a3e256ae + @用例名称: tperf-netperf-ip6-le8900-tyTCP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=TCP_STREAM,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="TCP_STREAM", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=TCP_STREAM,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_RR.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_RR.py new file mode 100755 index 0000000..dbd67dc --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_RR.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 6bbbc39b4f4d9d76 + @用例名称: tperf-netperf-ip6-le8900-tyUDP_RR + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_RR,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_RR", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_RR,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_STREAM.py b/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_STREAM.py new file mode 100755 index 0000000..f11e63b --- /dev/null +++ b/testcase/netperf/tperf-netperf-ip6-le8900-tyUDP_STREAM.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.netperf.netperf import PerfNetperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1f05b2a834a34b14 + @用例名称: tperf-netperf-ip6-le8900-tyUDP_STREAM + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用netperf测试net性能,参数:ipver=6,type=UDP_STREAM,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具netperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfNetperfSingle( + tc_name=self.tc_name, + ipver="6", + type="UDP_STREAM", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用netperf工具测试性能,参数:ipver=6,type=UDP_STREAM,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/parse-csv2case.py b/testcase/parse-csv2case.py index ae4c8fd..9b5e543 100755 --- a/testcase/parse-csv2case.py +++ b/testcase/parse-csv2case.py @@ -147,9 +147,7 @@ def gen_case_id(case_info: dict) -> str: # 然后按顺序将参数和取值拼接起来 # 计算hash作为用例ID result = hashlib.sha256( - "|".join( - [f"{x}&{case_info['参数'][x]}" for x in sorted(case_info["参数"].keys())] - ).encode("utf-8") + "|".join([f"{x}&{case_info['参数'][x]}" for x in sorted(case_info["参数"].keys())]).encode("utf-8") ).hexdigest()[:16] return result @@ -173,14 +171,10 @@ def gen_case_name(case_info: dict) -> str: 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]}" - ) + 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]}" - ) + 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 @@ -241,9 +235,7 @@ def parse_args_csv(args_file: str) -> dict: if not tool_name: tool_name = row["工具名称"].strip() if tool_name != row["工具名称"].strip(): - raise ValueError( - f"line:{line_count} 工具名称不一致: {tool_name} != {row['工具名称']}" - ) + raise ValueError(f"line:{line_count} 工具名称不一致: {tool_name} != {row['工具名称']}") args_dict = { "工具名称": tool_name, "子系统": row["子系统"].strip(), @@ -399,7 +391,7 @@ def get_tool_class(tool_name: str) -> str: """ tool_dir = os.path.join(g_tperf_top_dir, "testcase", tool_name) tool_file = os.path.join(tool_dir, f"{tool_name}.py") - pattern = re.compile(r"class (\w+)\(TSTPerf\):") + pattern = re.compile(r"class +(\w+)\(.*\bTSTPerf\b.*\):") with open(tool_file, "r") as f: for line in f: if not line.startswith("class "): @@ -447,12 +439,8 @@ def gen_case_script(tool_name: str, case_args: dict, tune_config: dict) -> int: raise ValueError(f"tool directory {tool_dir} not found") # 将已有的测试套整体读出来 testsuite = TestSuite(g_tperf_top_dir) - testcases_by_name = { - testcase.testcase_attr["用例名称"]: testcase for testcase in testsuite.testcases - } - logger.info( - f"testsuite: {testsuite.testsuite_name}, case: {len(testsuite.testcases)}" - ) + testcases_by_name = {testcase.testcase_attr["用例名称"]: testcase for testcase in testsuite.testcases} + logger.info(f"testsuite: {testsuite.testsuite_name}, case: {len(testsuite.testcases)}") # 备份当前工具已有的测试用例脚本 case_prefix = f"tperf-{tool_name}-" for file in os.listdir(tool_dir): @@ -473,10 +461,7 @@ def gen_case_script(tool_name: str, case_args: dict, tune_config: dict) -> int: # 检查参数配置文件和现有用例脚本是否一致 if case_name in testcases_by_name: logger.info(f"case {case_name} is old testcase, check it") - if ( - case_info["用例ID"] - != testcases_by_name[case_name].testcase_attr["用例ID"] - ): + if case_info["用例ID"] != testcases_by_name[case_name].testcase_attr["用例ID"]: raise ValueError( f"case {case_name} ID mismatch: {case_info['用例ID']} != " f"{testcases_by_name[case_name].testcase_attr['用例ID']}" @@ -489,8 +474,7 @@ def gen_case_script(tool_name: str, case_args: dict, tune_config: dict) -> int: if os.path.exists(case_path): raise FileExistsError(f"case {case_name} already exists") new_desc = ( - f"使用{tool_name}测试{sub_system}性能,参数:" - f"{','.join([f'{k}={v}' for k, v in case_info['参数'].items()])}" + f"使用{tool_name}测试{sub_system}性能,参数:{','.join([f'{k}={v}' for k, v in case_info['参数'].items()])}" ) class_args_str = "" for k, v in case_info["参数"].items(): @@ -519,30 +503,20 @@ class PythonTestCase(MyTestCase): @用例ID: {case_info["用例ID"]} @用例名称: {case_info["用例名称"]} @用例级别: { - 3 - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("用例级别", "3") + 3 if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("用例级别", "3") } @用例标签: { - "" - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("用例标签", "") + "" if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("用例标签", "") } @扩展属性: { - "" - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("扩展属性", "") + "" if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("扩展属性", "") } @用例类型: 性能测试 @自动化: { - 1 - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("自动化", "1") + 1 if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("自动化", "1") } @超时时间: { - 0 - if case_name not in testcases_by_name - else testcases_by_name[case_name].testcase_attr.get("超时时间", "0") + 0 if case_name not in testcases_by_name else testcases_by_name[case_name].testcase_attr.get("超时时间", "0") } @用例描述: {new_desc} """ @@ -559,25 +533,13 @@ class PythonTestCase(MyTestCase): def do_test(self, *args): self.msg("this is do_test") - # @测试步骤: 使用{tool_name}工具测试性能,参数:{ - ",".join([f"{k}={v}" for k, v in case_info["参数"].items()]) - } + # @测试步骤: 使用{tool_name}工具测试性能,参数:{",".join([f"{k}={v}" for k, v in case_info["参数"].items()])} # @预期结果: 测试正常,性能数据采集正常 self.perf_tool.run( - warmup={ - 0 - if case_name not in tune_config - else tune_config[case_name].get("warmup", 0) - }, - run_loop={ - 1 - if case_name not in tune_config - else tune_config[case_name].get("run_loop", 1) - }, + warmup={0 if case_name not in tune_config else tune_config[case_name].get("warmup", 0)}, + run_loop={1 if case_name not in tune_config else tune_config[case_name].get("run_loop", 1)}, result_select_percent={ - 100 - if case_name not in tune_config - else tune_config[case_name].get("result_select_percent", 100) + 100 if case_name not in tune_config else tune_config[case_name].get("result_select_percent", 100) }, ) self.perf_tool.report(testcase=self) @@ -625,12 +587,8 @@ def gen_tool_case(tool_name: str): tune_dict = parse_tool_tune_csv(tool_name=tool_name) - logger.info( - f"{tool_name}: get {len(args_dict)} case args and {len(tune_dict)} tune config" - ) - case_count = gen_case_script( - tool_name=tool_name, case_args=args_dict, tune_config=tune_dict - ) + logger.info(f"{tool_name}: get {len(args_dict)} case args and {len(tune_dict)} tune config") + case_count = gen_case_script(tool_name=tool_name, case_args=args_dict, tune_config=tune_dict) return args_dict, tune_dict, case_count @@ -667,9 +625,7 @@ def gen_template(case_data_dict: dict): for tool_name, case_data in case_data_dict.items(): for case_name, case_info in case_data["args_dict"].items(): if tool_name != case_info["工具名称"]: - raise ValueError( - f"{tool_name}:{case_name} tool name mismatch: {tool_name} != {case_info['工具名称']}" - ) + raise ValueError(f"{tool_name}:{case_name} tool name mismatch: {tool_name} != {case_info['工具名称']}") template = case_info.get("模板") if not template: logger.warning(f"{tool_name}:{case_name} no template found") @@ -700,15 +656,11 @@ def gen_template(case_data_dict: dict): # 重新生成模板文件 with open(template_file, "w") as f: f.write("本文件由parse-csv2case.py自动生成,请勿手动修改\n") - f.write( - "表格的【用例名、性能指标名、L0、L1、L2、权重】标题是固定的,不能修改,,,,,\n" - ) + f.write("表格的【用例名、性能指标名、L0、L1、L2、权重】标题是固定的,不能修改,,,,,\n") f.write("用例名:对应testcase目录下各用例文件的【@用例名称:】字段,,,,,\n") f.write("性能指标名:用例测试输出的性能数据,名称由测试代码填入,,,,,\n") f.write("L0/L1/L2:各指标所属维度,需要按维度统计结果时填写,,,,,\n") - f.write( - "权重:除以同维度指标权重和得到最终权重,用于计算加权几何平均数,0和空不做统计,,,,,\n" - ) + f.write("权重:除以同维度指标权重和得到最终权重,用于计算加权几何平均数,0和空不做统计,,,,,\n") f.write("用例名,性能指标名,L0,L1,L2,权重\n") for tool_name in sorted(tool_data.keys()): subsys_data = tool_data[tool_name] @@ -724,11 +676,20 @@ def gen_template(case_data_dict: dict): def main(): + tool_list = [] + args = parse_args() + print(args) + + if args.tool: + tool_list = args.tool.split(",") + else: + tool_list = os.listdir(os.path.join(g_tperf_top_dir, "testcase")) + case_data_dict = {} result_count = 0 - # 遍历所有工具目录,生成用例脚本 - for tool_name in os.listdir(os.path.join(g_tperf_top_dir, "testcase")): + # 遍历工具目录,生成用例脚本 + for tool_name in tool_list: tool_dir_path = os.path.join(g_tperf_top_dir, "testcase", tool_name) if not os.path.isdir(tool_dir_path): continue diff --git a/tperf.py b/tperf.py index bf4ea6d..7563f95 100755 --- a/tperf.py +++ b/tperf.py @@ -3,6 +3,29 @@ # Author: deshengwu # Time: 2025/07/14 15:23:53 # Desc: 运行TPerf性能测试 +# 测试执行成功后日志目录结构如下: +# logs/ +# ├── report.result +# ├── tperf-result -- 测试结果目录 +# │ └── 20260407-202553-660058 -- 测试时间戳,每次执行生成一个唯一目录 +# │ ├── env-info.json -- 环境信息 +# │ ├── loop-001 -- 测试轮次目录 +# │ │ ├── env-info.json -- 环境信息 +# │ │ ├── perf -- 性能测试结果目录 +# │ │ │ ├── tperf-debug-stream -- 以用例名命名的目录,内部以性能指标名命名的json文件 +# │ │ │ │ ├── tperf-debug-stream-Add.json -- 以性能指标名命名的json文件 +# │ │ │ │ ├── tperf-debug-stream-Copy.json +# │ │ │ │ ├── tperf-debug-stream-Scale.json +# │ │ │ │ └── tperf-debug-stream-Triad.json +# │ │ │ └── tperf-libmicro-strchr_10 +# │ │ │ └── tperf-libmicro-strchr_10.json +# │ │ └── testcase -- 用例日志目录,内部以用例名命名的日志文件 +# │ │ ├── tperf-debug-stream.log -- 用例日志文件 +# │ │ └── tperf-libmicro-strchr_10.log +# │ ├── loop-001.json -- 测试轮次结果json文件 +# │ ├── report-20260407-202553-660058.json -- 测试结果json文件 +# │ └── report-20260407-202553-660058.xlsx -- 测试结果excel文件 +# └── tperf-setup import argparse -- Gitee From 2693a9b8eaeb5c217d577de4d6fb6c04a366f181 Mon Sep 17 00:00:00 2001 From: deshengwu Date: Mon, 13 Apr 2026 19:19:04 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=E9=80=82=E9=85=8Diperf3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- testcase/iperf3/iperf3-args.csv | 73 +++++++++++ testcase/iperf3/iperf3.py | 113 ++++++++++++++++++ .../tperf-iperf3-ip4-le12400-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le12400-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le12400-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le12400-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le12400-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le12400-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le16100-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le16100-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le16100-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le16100-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le16100-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le16100-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le19600-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le19600-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le19600-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le19600-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le19600-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le19600-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le500-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le500-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le500-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le500-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le500-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le500-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le5300-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le5300-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le5300-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le5300-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le5300-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le5300-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le8900-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le8900-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le8900-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip4-le8900-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip4-le8900-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip4-le8900-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le12400-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le12400-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le12400-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le12400-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le12400-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le12400-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le16100-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le16100-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le16100-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le16100-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le16100-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le16100-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le19600-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le19600-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le19600-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le19600-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le19600-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le19600-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le500-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le500-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le500-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le500-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le500-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le500-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le5300-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le5300-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le5300-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le5300-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le5300-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le5300-prudp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le8900-prtcp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le8900-prtcp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le8900-prtcp-th8.py | 62 ++++++++++ .../tperf-iperf3-ip6-le8900-prudp-th1.py | 62 ++++++++++ .../tperf-iperf3-ip6-le8900-prudp-th32.py | 62 ++++++++++ .../tperf-iperf3-ip6-le8900-prudp-th8.py | 62 ++++++++++ 74 files changed, 4650 insertions(+) create mode 100644 testcase/iperf3/iperf3-args.csv create mode 100644 testcase/iperf3/iperf3.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th8.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th1.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th32.py create mode 100755 testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th8.py diff --git a/testcase/iperf3/iperf3-args.csv b/testcase/iperf3/iperf3-args.csv new file mode 100644 index 0000000..914c656 --- /dev/null +++ b/testcase/iperf3/iperf3-args.csv @@ -0,0 +1,73 @@ +工具名称,子系统,权重,模板,ipver,proto,thread,len +iperf3,net,0.052792,huoyan,4,tcp,1,500 +iperf3,net,0.052792,huoyan,4,tcp,8,500 +iperf3,net,0.052792,huoyan,4,tcp,32,500 +iperf3,net,0.008147,huoyan,4,tcp,1,5300 +iperf3,net,0.008147,huoyan,4,tcp,8,5300 +iperf3,net,0.008147,huoyan,4,tcp,32,5300 +iperf3,net,0.005286,huoyan,4,tcp,1,8900 +iperf3,net,0.005286,huoyan,4,tcp,8,8900 +iperf3,net,0.005286,huoyan,4,tcp,32,8900 +iperf3,net,0.002604,huoyan,4,tcp,1,12400 +iperf3,net,0.002604,huoyan,4,tcp,8,12400 +iperf3,net,0.002604,huoyan,4,tcp,32,12400 +iperf3,net,0.001429,huoyan,4,tcp,1,16100 +iperf3,net,0.001429,huoyan,4,tcp,8,16100 +iperf3,net,0.001429,huoyan,4,tcp,32,16100 +iperf3,net,0.000783,huoyan,4,tcp,1,19600 +iperf3,net,0.000783,huoyan,4,tcp,8,19600 +iperf3,net,0.000783,huoyan,4,tcp,32,19600 +iperf3,net,0.013198,huoyan,4,udp,1,500 +iperf3,net,0.013198,huoyan,4,udp,8,500 +iperf3,net,0.013198,huoyan,4,udp,32,500 +iperf3,net,0.002037,huoyan,4,udp,1,5300 +iperf3,net,0.002037,huoyan,4,udp,8,5300 +iperf3,net,0.002037,huoyan,4,udp,32,5300 +iperf3,net,0.001321,huoyan,4,udp,1,8900 +iperf3,net,0.001321,huoyan,4,udp,8,8900 +iperf3,net,0.001321,huoyan,4,udp,32,8900 +iperf3,net,0.000651,huoyan,4,udp,1,12400 +iperf3,net,0.000651,huoyan,4,udp,8,12400 +iperf3,net,0.000651,huoyan,4,udp,32,12400 +iperf3,net,0.000357,huoyan,4,udp,1,16100 +iperf3,net,0.000357,huoyan,4,udp,8,16100 +iperf3,net,0.000357,huoyan,4,udp,32,16100 +iperf3,net,0.000196,huoyan,4,udp,1,19600 +iperf3,net,0.000196,huoyan,4,udp,8,19600 +iperf3,net,0.000196,huoyan,4,udp,32,19600 +iperf3,net,0.013198,huoyan,6,tcp,1,500 +iperf3,net,0.013198,huoyan,6,tcp,8,500 +iperf3,net,0.013198,huoyan,6,tcp,32,500 +iperf3,net,0.002037,huoyan,6,tcp,1,5300 +iperf3,net,0.002037,huoyan,6,tcp,8,5300 +iperf3,net,0.002037,huoyan,6,tcp,32,5300 +iperf3,net,0.001321,huoyan,6,tcp,1,8900 +iperf3,net,0.001321,huoyan,6,tcp,8,8900 +iperf3,net,0.001321,huoyan,6,tcp,32,8900 +iperf3,net,0.000651,huoyan,6,tcp,1,12400 +iperf3,net,0.000651,huoyan,6,tcp,8,12400 +iperf3,net,0.000651,huoyan,6,tcp,32,12400 +iperf3,net,0.000357,huoyan,6,tcp,1,16100 +iperf3,net,0.000357,huoyan,6,tcp,8,16100 +iperf3,net,0.000357,huoyan,6,tcp,32,16100 +iperf3,net,0.000196,huoyan,6,tcp,1,19600 +iperf3,net,0.000196,huoyan,6,tcp,8,19600 +iperf3,net,0.000196,huoyan,6,tcp,32,19600 +iperf3,net,0.003299,huoyan,6,udp,1,500 +iperf3,net,0.003299,huoyan,6,udp,8,500 +iperf3,net,0.003299,huoyan,6,udp,32,500 +iperf3,net,0.000509,huoyan,6,udp,1,5300 +iperf3,net,0.000509,huoyan,6,udp,8,5300 +iperf3,net,0.000509,huoyan,6,udp,32,5300 +iperf3,net,0.000330,huoyan,6,udp,1,8900 +iperf3,net,0.000330,huoyan,6,udp,8,8900 +iperf3,net,0.000330,huoyan,6,udp,32,8900 +iperf3,net,0.000163,huoyan,6,udp,1,12400 +iperf3,net,0.000163,huoyan,6,udp,8,12400 +iperf3,net,0.000163,huoyan,6,udp,32,12400 +iperf3,net,0.000089,huoyan,6,udp,1,16100 +iperf3,net,0.000089,huoyan,6,udp,8,16100 +iperf3,net,0.000089,huoyan,6,udp,32,16100 +iperf3,net,0.000049,huoyan,6,udp,1,19600 +iperf3,net,0.000049,huoyan,6,udp,8,19600 +iperf3,net,0.000049,huoyan,6,udp,32,19600 diff --git a/testcase/iperf3/iperf3.py b/testcase/iperf3/iperf3.py new file mode 100644 index 0000000..60d5eae --- /dev/null +++ b/testcase/iperf3/iperf3.py @@ -0,0 +1,113 @@ +#!/usr/bin/python3 +# coding: utf-8 +# Time: 2026-04-08 15:14:08 +# Desc: + + +import json +import os +import shutil +import stat +import time +import sys +from typing import Union + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) + +from common.lib.benchmark import KeyItem, PerfData, TSTPerf, ValueType # noqa: E402 +from common.lib.common import command, is_process_exists # noqa: E402 +from lib.ts_common import ( # noqa: E402 + PerfNetSingle, + tperf_top_dir, +) + + +class PerfIperf3Single(TSTPerf, PerfNetSingle): + def __init__( + self, + tc_name: str, + ipver: str, + proto: str, + thread: str, + len: str, + ): + self.log(PerfIperf3Single.mro()) + super(PerfNetSingle, self).__init__() + super(TSTPerf, self).__init__() + super(PerfIperf3Single, self).__init__() + self.iperf = os.path.join(tperf_top_dir, "tools/iperf.install/bin/iperf3") + self.tc_name = tc_name + self.ipver = ipver + self.protocol = proto + self.thread = thread + self.len = len + self.test_opt = f"-P {self.thread} -l {self.len} -{self.ipver}" + self.duration = 5 + self.test_server_ip = self.ip6_server if self.is_ipv6() else self.ip_server + if self.protocol == "tcp": + self.cmd_server = f"{self.iperf} -s -i 0 -D" + self.cmd_client = f"{self.iperf} -J -N -c {self.test_server_ip} -i 0 -t {self.duration} {self.test_opt}" + elif self.protocol == "udp": + self.cmd_server = f"{self.iperf} -s -i 0 -D" + self.cmd_client = ( + f"{self.iperf} -u -b 100G -J -N -c {self.test_server_ip} -i 0 -t {self.duration} {self.test_opt}" + ) + else: + raise TypeError(f"unknown protocol {self.protocol}") + self.outs = "" + self.errs = "" + self.server_pid = -8 + + def is_ipv6(self) -> bool: + if "-6" in self.test_opt or "--version6" in self.test_opt: + return True + return False + + def prepare(self): + """正式执行benchmark性能测试前,先prepare""" + # 检查iperf3是否有被编译 + if not os.path.isfile(self.iperf): + fail_dir = os.path.join(tperf_top_dir, "tools/iperf.install.fail") + if os.path.isdir(fail_dir): + raise FileNotFoundError(f"iperf may compile fail: {fail_dir}") + self.log("compile iperf") + command(cmd=f"{os.path.join(tperf_top_dir, 'tools/iperf/tst-build.sh')}") + if not os.path.isfile(self.iperf): + raise FileNotFoundError(f"iperf tool compile fail: {self.iperf}") + # 配置测试环境的网络 + self.prepare_net() + # 拉起服务端 + _, _, _, self.server_pid = self.run_in_server(cmd=self.cmd_server, check=True) + + def benchmark(self): + """执行性能测试""" + # 客户端执行性能测试 + time.sleep(1) + self.outs, _, _, _ = self.run_in_client(cmd=self.cmd_client, check=True) + self.log("outs:", self.outs) + + def parse_test_data(self) -> Union[list, PerfData]: + """执行benchmark性能测试后,对测试结果进行解析,返回 PerfData 或其 list 性能测试结果""" + if not self.outs: + raise Exception("test output is empty") + result = PerfData( + name=f"{self.tc_name}-bw", + value_type=ValueType.HIB, + key_item=KeyItem.avg, + unit="MB/s", + label="L0:网络", + ) + data = json.loads(self.outs) + result.set_key_value(value=data["end"]["sum_sent"]["bits_per_second"] / 8 / 1024 / 1024) + return result + + def cleanup(self): + """性能测试完成后cleanup""" + if self.server_pid and is_process_exists(pid=self.server_pid): + os.kill(self.server_pid, 9) + self.cleanup_net() diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th1.py new file mode 100755 index 0000000..d631b32 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 449383710de55e07 + @用例名称: tperf-iperf3-ip4-le12400-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th32.py new file mode 100755 index 0000000..49f612d --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0d845ed4707ad383 + @用例名称: tperf-iperf3-ip4-le12400-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th8.py new file mode 100755 index 0000000..80877ae --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 74acb9375f13d89f + @用例名称: tperf-iperf3-ip4-le12400-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th1.py new file mode 100755 index 0000000..4433af7 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 224e2f6e3ea2e445 + @用例名称: tperf-iperf3-ip4-le12400-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th32.py new file mode 100755 index 0000000..9d5c144 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: cea0e0d0b6fe6b4e + @用例名称: tperf-iperf3-ip4-le12400-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th8.py new file mode 100755 index 0000000..4432ff9 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le12400-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0cb07bc458424218 + @用例名称: tperf-iperf3-ip4-le12400-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th1.py new file mode 100755 index 0000000..8c440e2 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3e3d70419a5e356d + @用例名称: tperf-iperf3-ip4-le16100-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th32.py new file mode 100755 index 0000000..729149d --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 18743cb6800b0307 + @用例名称: tperf-iperf3-ip4-le16100-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th8.py new file mode 100755 index 0000000..c73e52a --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 560cecefd0c943cb + @用例名称: tperf-iperf3-ip4-le16100-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th1.py new file mode 100755 index 0000000..389d19b --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0b73d2c79810a8c1 + @用例名称: tperf-iperf3-ip4-le16100-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th32.py new file mode 100755 index 0000000..b515cc1 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: f06a1045c644bb14 + @用例名称: tperf-iperf3-ip4-le16100-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th8.py new file mode 100755 index 0000000..ee67edd --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le16100-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a70ce2ecf107edbe + @用例名称: tperf-iperf3-ip4-le16100-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th1.py new file mode 100755 index 0000000..8f9b1b4 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8a9c2933f601f047 + @用例名称: tperf-iperf3-ip4-le19600-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th32.py new file mode 100755 index 0000000..d56ff02 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 5ff1127e594b75e2 + @用例名称: tperf-iperf3-ip4-le19600-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th8.py new file mode 100755 index 0000000..1c547cb --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 101044f8d5ece5d6 + @用例名称: tperf-iperf3-ip4-le19600-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th1.py new file mode 100755 index 0000000..a061dbd --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2b6ad6ab22c92801 + @用例名称: tperf-iperf3-ip4-le19600-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th32.py new file mode 100755 index 0000000..38d900a --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ce76ac447ecfffe8 + @用例名称: tperf-iperf3-ip4-le19600-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th8.py new file mode 100755 index 0000000..b73360e --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le19600-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1111143a97cb8543 + @用例名称: tperf-iperf3-ip4-le19600-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th1.py new file mode 100755 index 0000000..48ddc71 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 383e537d66bb393e + @用例名称: tperf-iperf3-ip4-le500-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th32.py new file mode 100755 index 0000000..8560380 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: be284b05424a33f0 + @用例名称: tperf-iperf3-ip4-le500-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th8.py new file mode 100755 index 0000000..fb3b987 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d4bc70b827400021 + @用例名称: tperf-iperf3-ip4-le500-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th1.py new file mode 100755 index 0000000..fb36c35 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0cf279fc6fa347d4 + @用例名称: tperf-iperf3-ip4-le500-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th32.py new file mode 100755 index 0000000..1563010 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 64acb7ec655084d4 + @用例名称: tperf-iperf3-ip4-le500-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th8.py new file mode 100755 index 0000000..a59d712 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le500-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ad7d698b47698915 + @用例名称: tperf-iperf3-ip4-le500-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th1.py new file mode 100755 index 0000000..ba2f25c --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 034f6da0ca314632 + @用例名称: tperf-iperf3-ip4-le5300-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th32.py new file mode 100755 index 0000000..7628d49 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 5bf25a57a7915c38 + @用例名称: tperf-iperf3-ip4-le5300-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th8.py new file mode 100755 index 0000000..b360c4b --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 53858f02292e5fc8 + @用例名称: tperf-iperf3-ip4-le5300-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th1.py new file mode 100755 index 0000000..a51563f --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 17b5441a71ec40d5 + @用例名称: tperf-iperf3-ip4-le5300-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th32.py new file mode 100755 index 0000000..0d485c9 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1c2863dcd4ac27c5 + @用例名称: tperf-iperf3-ip4-le5300-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th8.py new file mode 100755 index 0000000..7b11f86 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le5300-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3808a747d43db075 + @用例名称: tperf-iperf3-ip4-le5300-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th1.py new file mode 100755 index 0000000..50a286c --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c8d9365a7bee03bf + @用例名称: tperf-iperf3-ip4-le8900-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=1,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="1", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=1,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th32.py new file mode 100755 index 0000000..3ab55e3 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7a488c595e355e9c + @用例名称: tperf-iperf3-ip4-le8900-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=32,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="32", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=32,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th8.py new file mode 100755 index 0000000..aa25750 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b845c68c4c392750 + @用例名称: tperf-iperf3-ip4-le8900-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=tcp,thread=8,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="tcp", + thread="8", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=tcp,thread=8,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th1.py new file mode 100755 index 0000000..813e3b0 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e3969e92f1ad4526 + @用例名称: tperf-iperf3-ip4-le8900-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=1,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="1", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=1,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th32.py new file mode 100755 index 0000000..8d7185a --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 81caa3701f520c19 + @用例名称: tperf-iperf3-ip4-le8900-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=32,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="32", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=32,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th8.py new file mode 100755 index 0000000..e64561b --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip4-le8900-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 792401021a9aff2e + @用例名称: tperf-iperf3-ip4-le8900-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=4,proto=udp,thread=8,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="4", + proto="udp", + thread="8", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=4,proto=udp,thread=8,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th1.py new file mode 100755 index 0000000..8af7428 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 46efd29e789e96bd + @用例名称: tperf-iperf3-ip6-le12400-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th32.py new file mode 100755 index 0000000..ace65ca --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 32fae71044ec2eab + @用例名称: tperf-iperf3-ip6-le12400-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th8.py new file mode 100755 index 0000000..1acecfd --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 48a54b4c65bb299e + @用例名称: tperf-iperf3-ip6-le12400-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th1.py new file mode 100755 index 0000000..3984549 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 585c2cfd44a3a230 + @用例名称: tperf-iperf3-ip6-le12400-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th32.py new file mode 100755 index 0000000..83cddde --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0c023432849356d7 + @用例名称: tperf-iperf3-ip6-le12400-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th8.py new file mode 100755 index 0000000..5f9a53c --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le12400-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 063a4a16dfb7efd2 + @用例名称: tperf-iperf3-ip6-le12400-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th1.py new file mode 100755 index 0000000..6ab0001 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a8fb6bf3332fb947 + @用例名称: tperf-iperf3-ip6-le16100-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th32.py new file mode 100755 index 0000000..3a81a88 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4a3e8055df1c5b19 + @用例名称: tperf-iperf3-ip6-le16100-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th8.py new file mode 100755 index 0000000..5bea1c8 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9f44b66fa0ecacce + @用例名称: tperf-iperf3-ip6-le16100-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th1.py new file mode 100755 index 0000000..f8ae337 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a58cbcb6c9dd4c01 + @用例名称: tperf-iperf3-ip6-le16100-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th32.py new file mode 100755 index 0000000..73ae7c8 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 72e652fac76aae98 + @用例名称: tperf-iperf3-ip6-le16100-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th8.py new file mode 100755 index 0000000..3ba8d73 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le16100-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 68265f274f1fd075 + @用例名称: tperf-iperf3-ip6-le16100-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th1.py new file mode 100755 index 0000000..d4c00e5 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 762f60bea3755c90 + @用例名称: tperf-iperf3-ip6-le19600-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th32.py new file mode 100755 index 0000000..e173bc4 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9ea1071b2d9895f1 + @用例名称: tperf-iperf3-ip6-le19600-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th8.py new file mode 100755 index 0000000..9b2f72e --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 38e4142eab200d64 + @用例名称: tperf-iperf3-ip6-le19600-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th1.py new file mode 100755 index 0000000..8f32222 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a5ed2c4aeb39c236 + @用例名称: tperf-iperf3-ip6-le19600-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th32.py new file mode 100755 index 0000000..9a1da27 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 83c55e75ac79d083 + @用例名称: tperf-iperf3-ip6-le19600-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th8.py new file mode 100755 index 0000000..d83fba4 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le19600-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2786fd78ba7728d5 + @用例名称: tperf-iperf3-ip6-le19600-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th1.py new file mode 100755 index 0000000..d7b9672 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4db6f868baa4b83b + @用例名称: tperf-iperf3-ip6-le500-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th32.py new file mode 100755 index 0000000..2c0a27a --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 31b95763bec55e26 + @用例名称: tperf-iperf3-ip6-le500-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th8.py new file mode 100755 index 0000000..ac1c83e --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: af27bbeb4eee1a50 + @用例名称: tperf-iperf3-ip6-le500-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th1.py new file mode 100755 index 0000000..b928e50 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4a986ceb549fd1c6 + @用例名称: tperf-iperf3-ip6-le500-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th32.py new file mode 100755 index 0000000..19e9614 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0d68dfb49a1fcbf8 + @用例名称: tperf-iperf3-ip6-le500-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th8.py new file mode 100755 index 0000000..7f1089e --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le500-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 657dad20bee1cb2a + @用例名称: tperf-iperf3-ip6-le500-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th1.py new file mode 100755 index 0000000..a48a1d3 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ce08270154c4dde2 + @用例名称: tperf-iperf3-ip6-le5300-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th32.py new file mode 100755 index 0000000..6b11b52 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: fcbf71ceac8b9daa + @用例名称: tperf-iperf3-ip6-le5300-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th8.py new file mode 100755 index 0000000..754d0e3 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3c7467ed1982fcaa + @用例名称: tperf-iperf3-ip6-le5300-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th1.py new file mode 100755 index 0000000..2820c75 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: c1c802cb9fb67480 + @用例名称: tperf-iperf3-ip6-le5300-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th32.py new file mode 100755 index 0000000..2198588 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ac03120b5f0a301d + @用例名称: tperf-iperf3-ip6-le5300-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th8.py new file mode 100755 index 0000000..087c078 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le5300-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 770b94c9c08ddaa4 + @用例名称: tperf-iperf3-ip6-le5300-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th1.py new file mode 100755 index 0000000..22deb56 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: aa613a68b030fd01 + @用例名称: tperf-iperf3-ip6-le8900-prtcp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=1,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="1", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=1,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th32.py new file mode 100755 index 0000000..b5b9fbc --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3a71d84c1e156d55 + @用例名称: tperf-iperf3-ip6-le8900-prtcp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=32,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="32", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=32,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th8.py new file mode 100755 index 0000000..65a0fdb --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prtcp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 25e65ae47ed81c0d + @用例名称: tperf-iperf3-ip6-le8900-prtcp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=tcp,thread=8,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="tcp", + thread="8", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=tcp,thread=8,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th1.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th1.py new file mode 100755 index 0000000..7017172 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th1.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 30c7677b06870665 + @用例名称: tperf-iperf3-ip6-le8900-prudp-th1 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=1,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="1", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=1,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th32.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th32.py new file mode 100755 index 0000000..d227170 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th32.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a03ee15cca47aa81 + @用例名称: tperf-iperf3-ip6-le8900-prudp-th32 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=32,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="32", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=32,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th8.py b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th8.py new file mode 100755 index 0000000..3bdc577 --- /dev/null +++ b/testcase/iperf3/tperf-iperf3-ip6-le8900-prudp-th8.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.iperf3.iperf3 import PerfIperf3Single # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b60d036797795095 + @用例名称: tperf-iperf3-ip6-le8900-prudp-th8 + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用iperf3测试net性能,参数:ipver=6,proto=udp,thread=8,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具iperf3运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfIperf3Single( + tc_name=self.tc_name, + ipver="6", + proto="udp", + thread="8", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用iperf3工具测试性能,参数:ipver=6,proto=udp,thread=8,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) -- Gitee From cfeea713ce1727c90533bee50f39fe1c68e1e9ec Mon Sep 17 00:00:00 2001 From: deshengwu Date: Mon, 13 Apr 2026 19:23:27 +0800 Subject: [PATCH 08/10] =?UTF-8?q?=E9=80=82=E9=85=8Dqperf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- testcase/qperf/qperf-args.csv | 49 +++++++ testcase/qperf/qperf.py | 122 ++++++++++++++++++ .../qperf/tperf-qperf-ip4-le12400-tytcp_bw.py | 61 +++++++++ .../tperf-qperf-ip4-le12400-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le12400-tyudp_bw.py | 61 +++++++++ .../tperf-qperf-ip4-le12400-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le16100-tytcp_bw.py | 61 +++++++++ .../tperf-qperf-ip4-le16100-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le16100-tyudp_bw.py | 61 +++++++++ .../tperf-qperf-ip4-le16100-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le19600-tytcp_bw.py | 61 +++++++++ .../tperf-qperf-ip4-le19600-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le19600-tyudp_bw.py | 61 +++++++++ .../tperf-qperf-ip4-le19600-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le500-tytcp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le500-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le500-tyudp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le500-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le5300-tytcp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le5300-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le5300-tyudp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le5300-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le8900-tytcp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le8900-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le8900-tyudp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip4-le8900-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le12400-tytcp_bw.py | 61 +++++++++ .../tperf-qperf-ip6-le12400-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le12400-tyudp_bw.py | 61 +++++++++ .../tperf-qperf-ip6-le12400-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le16100-tytcp_bw.py | 61 +++++++++ .../tperf-qperf-ip6-le16100-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le16100-tyudp_bw.py | 61 +++++++++ .../tperf-qperf-ip6-le16100-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le19600-tytcp_bw.py | 61 +++++++++ .../tperf-qperf-ip6-le19600-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le19600-tyudp_bw.py | 61 +++++++++ .../tperf-qperf-ip6-le19600-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le500-tytcp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le500-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le500-tyudp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le500-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le5300-tytcp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le5300-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le5300-tyudp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le5300-tyudp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le8900-tytcp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le8900-tytcp_lat.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le8900-tyudp_bw.py | 61 +++++++++ .../qperf/tperf-qperf-ip6-le8900-tyudp_lat.py | 61 +++++++++ 50 files changed, 3099 insertions(+) create mode 100644 testcase/qperf/qperf-args.csv create mode 100644 testcase/qperf/qperf.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le12400-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le12400-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le12400-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le12400-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le16100-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le16100-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le16100-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le16100-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le19600-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le19600-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le19600-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le19600-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le500-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le500-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le500-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le500-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le5300-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le5300-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le5300-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le5300-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le8900-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le8900-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le8900-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip4-le8900-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le12400-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le12400-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le12400-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le12400-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le16100-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le16100-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le16100-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le16100-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le19600-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le19600-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le19600-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le19600-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le500-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le500-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le500-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le500-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le5300-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le5300-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le5300-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le5300-tyudp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le8900-tytcp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le8900-tytcp_lat.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le8900-tyudp_bw.py create mode 100755 testcase/qperf/tperf-qperf-ip6-le8900-tyudp_lat.py diff --git a/testcase/qperf/qperf-args.csv b/testcase/qperf/qperf-args.csv new file mode 100644 index 0000000..48a7f26 --- /dev/null +++ b/testcase/qperf/qperf-args.csv @@ -0,0 +1,49 @@ +工具名称,子系统,权重,模板,ipver,type,len +qperf,net,0.079267,huoyan,4,tcp_bw,500 +qperf,net,0.079267,huoyan,4,tcp_lat,500 +qperf,net,0.012232,huoyan,4,tcp_bw,5300 +qperf,net,0.012232,huoyan,4,tcp_lat,5300 +qperf,net,0.007937,huoyan,4,tcp_bw,8900 +qperf,net,0.007937,huoyan,4,tcp_lat,8900 +qperf,net,0.003909,huoyan,4,tcp_bw,12400 +qperf,net,0.003909,huoyan,4,tcp_lat,12400 +qperf,net,0.002145,huoyan,4,tcp_bw,16100 +qperf,net,0.002145,huoyan,4,tcp_lat,16100 +qperf,net,0.001176,huoyan,4,tcp_bw,19600 +qperf,net,0.001176,huoyan,4,tcp_lat,19600 +qperf,net,0.019817,huoyan,4,udp_bw,500 +qperf,net,0.019817,huoyan,4,udp_lat,500 +qperf,net,0.003058,huoyan,4,udp_bw,5300 +qperf,net,0.003058,huoyan,4,udp_lat,5300 +qperf,net,0.001984,huoyan,4,udp_bw,8900 +qperf,net,0.001984,huoyan,4,udp_lat,8900 +qperf,net,0.000977,huoyan,4,udp_bw,12400 +qperf,net,0.000977,huoyan,4,udp_lat,12400 +qperf,net,0.000536,huoyan,4,udp_bw,16100 +qperf,net,0.000536,huoyan,4,udp_lat,16100 +qperf,net,0.000294,huoyan,4,udp_bw,19600 +qperf,net,0.000294,huoyan,4,udp_lat,19600 +qperf,net,0.019817,huoyan,6,tcp_bw,500 +qperf,net,0.019817,huoyan,6,tcp_lat,500 +qperf,net,0.003058,huoyan,6,tcp_bw,5300 +qperf,net,0.003058,huoyan,6,tcp_lat,5300 +qperf,net,0.001984,huoyan,6,tcp_bw,8900 +qperf,net,0.001984,huoyan,6,tcp_lat,8900 +qperf,net,0.000977,huoyan,6,tcp_bw,12400 +qperf,net,0.000977,huoyan,6,tcp_lat,12400 +qperf,net,0.000536,huoyan,6,tcp_bw,16100 +qperf,net,0.000536,huoyan,6,tcp_lat,16100 +qperf,net,0.000294,huoyan,6,tcp_bw,19600 +qperf,net,0.000294,huoyan,6,tcp_lat,19600 +qperf,net,0.004954,huoyan,6,udp_bw,500 +qperf,net,0.004954,huoyan,6,udp_lat,500 +qperf,net,0.000765,huoyan,6,udp_bw,5300 +qperf,net,0.000765,huoyan,6,udp_lat,5300 +qperf,net,0.000496,huoyan,6,udp_bw,8900 +qperf,net,0.000496,huoyan,6,udp_lat,8900 +qperf,net,0.000244,huoyan,6,udp_bw,12400 +qperf,net,0.000244,huoyan,6,udp_lat,12400 +qperf,net,0.000134,huoyan,6,udp_bw,16100 +qperf,net,0.000134,huoyan,6,udp_lat,16100 +qperf,net,0.000073,huoyan,6,udp_bw,19600 +qperf,net,0.000073,huoyan,6,udp_lat,19600 diff --git a/testcase/qperf/qperf.py b/testcase/qperf/qperf.py new file mode 100644 index 0000000..15984dd --- /dev/null +++ b/testcase/qperf/qperf.py @@ -0,0 +1,122 @@ +#!/usr/bin/python3 +# coding: utf-8 +# Time: 2026-04-08 15:14:08 +# Desc: + + +import json +import os +import shutil +import stat +import time +import sys +from typing import Union + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) + +from common.lib.benchmark import KeyItem, PerfData, TSTPerf, ValueType # noqa: E402 +from common.lib.common import command, is_process_exists # noqa: E402 +from lib.ts_common import ( # noqa: E402 + PerfNetSingle, + tperf_top_dir, +) + + +class PerfQperfSingle(TSTPerf, PerfNetSingle): + def __init__( + self, + tc_name: str, + ipver: str, + type: str, + len: str, + ): + self.log(PerfQperfSingle.mro()) + super(PerfNetSingle, self).__init__() + super(TSTPerf, self).__init__() + super(PerfQperfSingle, self).__init__() + self.qperf = os.path.join(tperf_top_dir, "tools/qperf.install/build/bin/qperf") + self.tc_name = tc_name + self.ipver = ipver + self.type = type + self.len = len + self.test_opt = f"--msg_size {self.len} {self.type}" + self.duration = 5 + self.test_server_ip = self.ip6_server if self.is_ipv6() else self.ip_server + self.cmd_server = f"{self.qperf}" + self.cmd_client = f"{self.qperf} {self.test_server_ip} -t {self.duration} -vv -uu {self.test_opt}" + self.outs = "" + self.errs = "" + self.server_pid = -8 + + def is_ipv6(self) -> bool: + if "-6" in self.test_opt or "--version6" in self.test_opt: + return True + return False + + def prepare(self): + """正式执行benchmark性能测试前,先prepare""" + # 检查iperf3是否有被编译 + if not os.path.isfile(self.qperf): + fail_dir = os.path.join(tperf_top_dir, "tools/qperf.install.fail") + if os.path.isdir(fail_dir): + raise FileNotFoundError(f"qperf may compile fail: {fail_dir}") + self.log("compile qperf") + command(cmd=f"{os.path.join(tperf_top_dir, 'tools/qperf/tst-build.sh')}") + if not os.path.isfile(self.qperf): + raise FileNotFoundError(f"qperf tool compile fail: {self.qperf}") + # 配置测试环境的网络 + self.prepare_net() + # 拉起服务端 + _, _, _, self.server_pid = self.run_in_server(cmd=self.cmd_server, daemon=True) + + def benchmark(self): + """执行性能测试""" + # 客户端执行性能测试 + self.outs, _, _, _ = self.run_in_client(cmd=self.cmd_client, check=True) + self.log("outs:", self.outs) + + def parse_test_data(self) -> Union[list, PerfData]: + """执行benchmark性能测试后,对测试结果进行解析,返回 PerfData 或其 list 性能测试结果""" + if not self.outs: + raise Exception("test output is empty") + test_item = "" + result = [] + for line in self.outs.splitlines(): + line = line.strip() + if line.endswith(":"): + test_item = line.strip(":") + line_list = line.split() + if test_item.endswith("_bw") and str(line_list[0]) in {"bw", "send_bw"}: + r = PerfData( + name=f"{self.tc_name}-{test_item}", + value_type=ValueType.HIB, + key_item=KeyItem.avg, + unit="MB/sec", + label="L0:网络", + ) + r.set_key_value(float(line_list[-2]) / 1024 / 1024) + result.append(r) + test_item = "" + elif test_item.endswith("_lat") and line_list[0] == "latency": + r = PerfData( + name=f"{self.tc_name}-{test_item}", + value_type=ValueType.LIB, + key_item=KeyItem.avg, + unit="us", + label="L0:网络", + ) + r.set_key_value(float(line_list[-2]) / 1000) + result.append(r) + test_item = "" + return result + + def cleanup(self): + """性能测试完成后cleanup""" + if self.server_pid and is_process_exists(pid=self.server_pid): + os.kill(self.server_pid, 9) + self.cleanup_net() diff --git a/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_bw.py new file mode 100755 index 0000000..5c6f6d0 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3760c0bf9be465f6 + @用例名称: tperf-qperf-ip4-le12400-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_lat.py new file mode 100755 index 0000000..af402e6 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le12400-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 0237dbd239210665 + @用例名称: tperf-qperf-ip4-le12400-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_bw.py new file mode 100755 index 0000000..1464ede --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9d778512b1bc9612 + @用例名称: tperf-qperf-ip4-le12400-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_lat.py new file mode 100755 index 0000000..633debd --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le12400-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: bad14d7d21848129 + @用例名称: tperf-qperf-ip4-le12400-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_bw.py new file mode 100755 index 0000000..d56fe3e --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8ebff255c64d0405 + @用例名称: tperf-qperf-ip4-le16100-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_lat.py new file mode 100755 index 0000000..fcdbc97 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le16100-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 33efdafa9536ea32 + @用例名称: tperf-qperf-ip4-le16100-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_bw.py new file mode 100755 index 0000000..03a761e --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: cda9bca6d822974d + @用例名称: tperf-qperf-ip4-le16100-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_lat.py new file mode 100755 index 0000000..46ed2cc --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le16100-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 797f217b79ca6f1f + @用例名称: tperf-qperf-ip4-le16100-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_bw.py new file mode 100755 index 0000000..b2271fd --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 49429f30aa7b5130 + @用例名称: tperf-qperf-ip4-le19600-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_lat.py new file mode 100755 index 0000000..6eeb600 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le19600-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: af91e6919d2f4e90 + @用例名称: tperf-qperf-ip4-le19600-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_bw.py new file mode 100755 index 0000000..16c2df9 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 3cfb950a6987f9b4 + @用例名称: tperf-qperf-ip4-le19600-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_lat.py new file mode 100755 index 0000000..a4aa6de --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le19600-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 5b99803b65bd57b0 + @用例名称: tperf-qperf-ip4-le19600-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le500-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le500-tytcp_bw.py new file mode 100755 index 0000000..d477b88 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le500-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8661e10b4f2941a5 + @用例名称: tperf-qperf-ip4-le500-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le500-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le500-tytcp_lat.py new file mode 100755 index 0000000..28c3b86 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le500-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 4183b57adfb6d858 + @用例名称: tperf-qperf-ip4-le500-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le500-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le500-tyudp_bw.py new file mode 100755 index 0000000..6cb4ba5 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le500-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2192f928fa629b16 + @用例名称: tperf-qperf-ip4-le500-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le500-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le500-tyudp_lat.py new file mode 100755 index 0000000..277c01f --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le500-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2177b2ed01899d8a + @用例名称: tperf-qperf-ip4-le500-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_bw.py new file mode 100755 index 0000000..9958177 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 75840e915e11c920 + @用例名称: tperf-qperf-ip4-le5300-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_lat.py new file mode 100755 index 0000000..8d580ea --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le5300-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e2ddae848d64a053 + @用例名称: tperf-qperf-ip4-le5300-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_bw.py new file mode 100755 index 0000000..5031075 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d9f107d78336069d + @用例名称: tperf-qperf-ip4-le5300-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_lat.py new file mode 100755 index 0000000..28b921c --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le5300-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e41e6f52284e533a + @用例名称: tperf-qperf-ip4-le5300-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_bw.py new file mode 100755 index 0000000..2b50d29 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: f843d47bf50bd654 + @用例名称: tperf-qperf-ip4-le8900-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_bw,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_bw", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_bw,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_lat.py new file mode 100755 index 0000000..5683369 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le8900-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d74a2c3a8cb734c2 + @用例名称: tperf-qperf-ip4-le8900-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=tcp_lat,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="tcp_lat", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=tcp_lat,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_bw.py new file mode 100755 index 0000000..f7f9a99 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 5a8c893bc3aa6ea7 + @用例名称: tperf-qperf-ip4-le8900-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_bw,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_bw", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_bw,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_lat.py new file mode 100755 index 0000000..a1f3dd7 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip4-le8900-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 58cf7cc005335a35 + @用例名称: tperf-qperf-ip4-le8900-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=4,type=udp_lat,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="4", + type="udp_lat", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=4,type=udp_lat,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_bw.py new file mode 100755 index 0000000..f56f318 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 499138e40388e36f + @用例名称: tperf-qperf-ip6-le12400-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_lat.py new file mode 100755 index 0000000..a3fc3f5 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le12400-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8f9a5bf26fb720d7 + @用例名称: tperf-qperf-ip6-le12400-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_bw.py new file mode 100755 index 0000000..6d18c56 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 1b5f3481520854be + @用例名称: tperf-qperf-ip6-le12400-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_lat.py new file mode 100755 index 0000000..e01d413 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le12400-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: e35522d37b4a0905 + @用例名称: tperf-qperf-ip6-le12400-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=12400 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="12400", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=12400 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_bw.py new file mode 100755 index 0000000..dec958d --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 807241a3f8dd2d76 + @用例名称: tperf-qperf-ip6-le16100-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_lat.py new file mode 100755 index 0000000..c566a03 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le16100-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 72b4d27d17f4d18a + @用例名称: tperf-qperf-ip6-le16100-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_bw.py new file mode 100755 index 0000000..487002b --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7bcc4506d78e7d65 + @用例名称: tperf-qperf-ip6-le16100-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_lat.py new file mode 100755 index 0000000..8854f4c --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le16100-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 9fe8c9ccebae5b3c + @用例名称: tperf-qperf-ip6-le16100-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=16100 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="16100", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=16100 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_bw.py new file mode 100755 index 0000000..9ac872c --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2f0855ab6ddff9cd + @用例名称: tperf-qperf-ip6-le19600-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_lat.py new file mode 100755 index 0000000..54bf7e1 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le19600-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 8549f82c9779ff31 + @用例名称: tperf-qperf-ip6-le19600-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_bw.py new file mode 100755 index 0000000..60cf312 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 62654309e34ab821 + @用例名称: tperf-qperf-ip6-le19600-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_lat.py new file mode 100755 index 0000000..47e8288 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le19600-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: b7d9ebb4c4e79cd1 + @用例名称: tperf-qperf-ip6-le19600-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=19600 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="19600", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=19600 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le500-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le500-tytcp_bw.py new file mode 100755 index 0000000..c3f3f7d --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le500-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 2c7b0914e20ebb62 + @用例名称: tperf-qperf-ip6-le500-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le500-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le500-tytcp_lat.py new file mode 100755 index 0000000..ed38f86 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le500-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: f8ba97ff53ed57e0 + @用例名称: tperf-qperf-ip6-le500-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le500-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le500-tyudp_bw.py new file mode 100755 index 0000000..a836589 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le500-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 979de21a62af351a + @用例名称: tperf-qperf-ip6-le500-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le500-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le500-tyudp_lat.py new file mode 100755 index 0000000..2dbfd8e --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le500-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 6233dfc68da03495 + @用例名称: tperf-qperf-ip6-le500-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=500 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="500", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=500 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_bw.py new file mode 100755 index 0000000..57f32cb --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 7c390a0ff8858786 + @用例名称: tperf-qperf-ip6-le5300-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_lat.py new file mode 100755 index 0000000..f2e1e17 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le5300-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 166fcdb0b4bf2b14 + @用例名称: tperf-qperf-ip6-le5300-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_bw.py new file mode 100755 index 0000000..4248ef8 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: d00f1d73d6280c29 + @用例名称: tperf-qperf-ip6-le5300-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_lat.py new file mode 100755 index 0000000..e0d9b3f --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le5300-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ad6a3bdef1545405 + @用例名称: tperf-qperf-ip6-le5300-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=5300 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="5300", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=5300 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_bw.py b/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_bw.py new file mode 100755 index 0000000..eee8841 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: a028f3d5fce7b49f + @用例名称: tperf-qperf-ip6-le8900-tytcp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_bw,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_bw", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_bw,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_lat.py b/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_lat.py new file mode 100755 index 0000000..a23bf02 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le8900-tytcp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 76be7933a0abaced + @用例名称: tperf-qperf-ip6-le8900-tytcp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=tcp_lat,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="tcp_lat", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=tcp_lat,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_bw.py b/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_bw.py new file mode 100755 index 0000000..54fc725 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_bw.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: ce95d5910b956289 + @用例名称: tperf-qperf-ip6-le8900-tyudp_bw + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_bw,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_bw", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_bw,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) diff --git a/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_lat.py b/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_lat.py new file mode 100755 index 0000000..6c9e6a1 --- /dev/null +++ b/testcase/qperf/tperf-qperf-ip6-le8900-tyudp_lat.py @@ -0,0 +1,61 @@ +#!/usr/bin/env python3 +# coding: utf-8 +# 注意:此文件由parse-csv2case.py自动生成,请勿手动修改 + +import os.path +import sys + + +_suite_top_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") +while _suite_top_dir != "/": + if os.path.isfile(os.path.join(_suite_top_dir, "tsuite")): + break + _suite_top_dir = os.path.dirname(_suite_top_dir) +sys.path.append(_suite_top_dir) +from lib.ts_common import MyTestCase # noqa: E402 +from testcase.qperf.qperf import PerfQperfSingle # noqa: E402 + + +class PythonTestCase(MyTestCase): + """ + @用例ID: 19257ad1823a7386 + @用例名称: tperf-qperf-ip6-le8900-tyudp_lat + @用例级别: 3 + @用例标签: + @扩展属性: + @用例类型: 性能测试 + @自动化: 1 + @超时时间: 0 + @用例描述: 使用qperf测试net性能,参数:ipver=6,type=udp_lat,len=8900 + """ + + def tc_setup(self, *args): + self.msg("this is tc_setup") + # @预置条件: 系统支持性能测试工具qperf运行 + # @预置条件: 系统参数配置正确,符合性能测试运行要求 + self.perf_tool = PerfQperfSingle( + tc_name=self.tc_name, + ipver="6", + type="udp_lat", + len="8900", + ) + + def do_test(self, *args): + self.msg("this is do_test") + + # @测试步骤: 使用qperf工具测试性能,参数:ipver=6,type=udp_lat,len=8900 + # @预期结果: 测试正常,性能数据采集正常 + self.perf_tool.run( + warmup=0, + run_loop=1, + result_select_percent=100, + ) + self.perf_tool.report(testcase=self) + self.assert_true(len(self.perf_tool.results) > 0) + + def tc_teardown(self, *args): + self.msg("this is tc_teardown") + + +if __name__ == "__main__": + PythonTestCase().tst_main(sys.argv) -- Gitee From 893d6ab46615e1e41dfcef62c2053760d3e918ec Mon Sep 17 00:00:00 2001 From: deshengwu Date: Mon, 13 Apr 2026 19:37:07 +0800 Subject: [PATCH 09/10] =?UTF-8?q?=E9=80=82=E9=85=8D--all?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py | 4 ++-- testcase/parse-csv2case.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py index 963f36d..89c01ba 100755 --- a/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py +++ b/testcase/netperf/tperf-netperf-ip4-le500-tyTCP_CRR.py @@ -21,8 +21,8 @@ class PythonTestCase(MyTestCase): @用例ID: bc5172b26c05c984 @用例名称: tperf-netperf-ip4-le500-tyTCP_CRR @用例级别: 3 - @用例标签: - @扩展属性: + @用例标签: + @扩展属性: @用例类型: 性能测试 @自动化: 1 @超时时间: 0 diff --git a/testcase/parse-csv2case.py b/testcase/parse-csv2case.py index 9b5e543..7bc9c77 100755 --- a/testcase/parse-csv2case.py +++ b/testcase/parse-csv2case.py @@ -703,7 +703,8 @@ def main(): logger.info(f"total {result_count} case scripts generated") # 生成模板文件 - gen_template(case_data_dict=case_data_dict) + if args.all: + gen_template(case_data_dict=case_data_dict) if __name__ == "__main__": -- Gitee From c9a6fa0e8ddd1ff7fd9d6a84e053a86728619a86 Mon Sep 17 00:00:00 2001 From: deshengwu Date: Tue, 14 Apr 2026 16:49:40 +0800 Subject: [PATCH 10/10] =?UTF-8?q?=E4=BC=98=E5=8C=96stream=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E5=A4=A7=E5=B0=8F=EF=BC=8C=E5=A4=AA=E5=B0=8F=E7=9A=84?= =?UTF-8?q?=E8=AF=9D=E6=95=B0=E6=8D=AE=E5=8F=97cache=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E4=B8=8D=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deshengwu --- tools/stream/tst-build.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/stream/tst-build.sh b/tools/stream/tst-build.sh index 3a5b725..b123441 100755 --- a/tools/stream/tst-build.sh +++ b/tools/stream/tst-build.sh @@ -23,17 +23,24 @@ build_tool() { nr_node="$(grep "^physical id" /proc/cpuinfo | sort | uniq | wc -l)" [ -z "$nr_node" ] && nr_node=2 [ "$nr_node" -lt 1 ] && nr_node=2 + local cache_size_kb cache_size_kb="$(cat /sys/devices/system/cpu/cpu0/cache/index*/size | grep -o "[0-9]\+" | sort -n | tail -n 1)" [ -z "$cache_size_kb" ] && cache_size_kb=$((32 * 1024)) [ "$cache_size_kb" -lt $((32 * 1024)) ] && cache_size_kb=$((32 * 1024)) - local STREAM_ARRAY_SIZE=$((cache_size_kb * 1024 * 5 * nr_node / 8)) + + local STREAM_ARRAY_SIZE=$((cache_size_kb * 1024 * 32 * nr_node / 8)) echo "nr_node=$nr_node, cache_size_kb=$cache_size_kb, STREAM_ARRAY_SIZE=$STREAM_ARRAY_SIZE" cp -r "$g_tool_dir" "$g_install_dir/build" || return 1 cd "$g_install_dir/build" \ - && sed -i "s|STREAM_ARRAY_SIZE=50000000|STREAM_ARRAY_SIZE=${STREAM_ARRAY_SIZE}|g" ./Makefile \ - && make -j + && gcc -O3 -fopenmp \ + -DSTREAM_ARRAY_SIZE=${STREAM_ARRAY_SIZE} \ + -DNTIMES=20 \ + -mcmodel=large \ + -mtune=native \ + -march=native \ + stream.c -o stream_c.exe } # 下面代码建议保持不变 -- Gitee