/test/testfwk/xdevice/plugins/ohos/src/ohos/parser/ |
H A D | oh_kernel_parser.py | 52 for line in lines: 53 self.parse(line) 58 def parse(self, line): 59 line = re.sub('\x1b.*?m', '', line) 60 if self.state_machine.suites_is_started() or RUNTEST_TEST in line: 61 if RUNTEST_TEST in line: 62 self.handle_suites_started_tag(line) 63 elif START_TO_TEST in line: 64 self.handle_suite_start_tag(line) [all...] |
H A D | cpp_parser_lite.py | 57 for line in lines: 59 LOG.debug(line) 60 self.parse(line) 80 def _is_test_run(line): 81 return True if _TEST_RUN_TAG in line else False 84 def _is_test_start_run(line): 85 return True if _TEST_START_RUN_TAG in line else False 88 def _is_informational_start(line): 89 return True if _INFORMATIONAL_START in line else False 92 def _is_test_start(line) [all...] |
H A D | cpp_parser.py | 59 for line in lines: 60 line = str(line).strip().rstrip("\r") 61 LOG.debug(line) 62 self.parse(line) 75 def parse(self, line): 77 if self.state_machine.suites_is_started() or line.startswith( 79 if line.startswith(_START_TEST_RUN_MARKER): 80 message = line[len(_TEST_RUN_MARKER):].strip() 82 elif line [all...] |
H A D | c_parser_lite.py | 57 for line in lines: 58 self.parse(line) 70 def _is_ctest_start_test_run(line): 71 return True if line.endswith(_CTEST_START_TEST_RUN_TAG) else False 74 def _is_ctest_end_test_run(line): 75 return True if line.endswith(_CTEST_END_TEST_RUN_TAG) else False 78 def _is_ctest_run(line): 79 return re.match(r"[\s\S]*(Tests)[\s\S]*(Failures)[\s\S]*(Ignored)[\s\S]*", line) 81 def _is_ctest_suite_test_run(self, line): 83 line) [all...] |
H A D | oh_jsunit_parser.py | 78 for line in lines: 79 line = str(line).strip().rstrip("\r") 80 LOG.debug(line) 81 self.parse(line) 83 def parse(self, line): 84 if not str(line).strip(): 86 if OHJSUnitPrefixes.SUM.value in line: 87 new_line = line[line [all...] |
H A D | junit_parser.py | 55 for line in lines: 57 LOG.debug(line) 58 self.parse(line) 70 def parse(self, line): 71 if line.startswith(Prefixes.STATUS_CODE.value): 73 self.parse_status_code(line) 74 elif line.startswith(Prefixes.STATUS.value): 76 self.parse_key(line, len(Prefixes.STATUS.value)) 77 elif line.startswith(Prefixes.RESULT.value): 79 elif line [all...] |
H A D | oh_rust_parser.py | 45 for line in lines: 46 self.parse(line) 51 def parse(self, line): 52 if line.startswith("running"): 53 matcher = re.match(self.running_pattern, line) 57 elif line.startswith("test result:"): 58 matcher = re.match(self.test_result_pattern, line) 63 elif "..." in line: 64 matcher = re.match(self.test_pattern, line) 68 elif line [all...] |
H A D | constants.py | 24 def parse_product_info(line, is_params, product_info): 25 if Constant.PRODUCT_PARAMS_START in line: 27 elif Constant.PRODUCT_PARAMS_END in line: 30 # line output: 2023-11-13 15:51:23.453 OsFullName = xx 31 line = "".join(line.split(" ")[2:]) 32 product_info.update(parse_line_key_value(line))
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/make_scripts/ |
H A D | prepare.py | 50 line = ''
76 line = '%sDEFINES := %s\n'%(line, ' \\\n\t'.join(defines))
78 line = '%sINCLUDE := -I$(MAIN_TOPDIR)/%s\n'%(line, ' \\\n\t-I$(MAIN_TOPDIR)/'.join(flg_cfg))
80 line = '\n'.join([
81 line,
86 line = '%s%s := %s\n'%(line, flg, ' '.join(flg_cfg))
87 return line
[all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tests/kutf/ |
H A D | kutf_helpers.c | 54 struct kutf_userdata_line *line; in kutf_helper_input_dequeue() local 74 line = list_first_entry(&context->userdata.input_head, in kutf_helper_input_dequeue() 76 if (line->str) { in kutf_helper_input_dequeue() 81 list_del(&line->node); in kutf_helper_input_dequeue() 87 *str_size = line->size; in kutf_helper_input_dequeue() 88 return line->str; in kutf_helper_input_dequeue() 94 struct kutf_userdata_line *line; in kutf_helper_input_enqueue() local 96 line = kutf_mempool_alloc(&context->fixture_pool, in kutf_helper_input_enqueue() 97 sizeof(*line) + size + 1); in kutf_helper_input_enqueue() 98 if (!line) in kutf_helper_input_enqueue() [all...] |
/build/tools/component_tools/static_check/ |
H A D | csct_online_prehandle.py | 37 def __diff_match_file_start(control_block: dict, line: str): 39 if not line.startswith(pattern): 51 def __diff_match_is_newfile(control_block: dict, line: str): 53 if not line.startswith(pattern): 60 def __diff_match_filename_with_minus(control_block: dict, line: str): 62 if re.match(pattern, line) is None: 69 def __diff_match_filename_with_plus(control_block: dict, line: str): 71 if re.match(pattern, line) is None: 75 if re.search(key, line) is not None: 77 res = re.match(pattern, line) [all...] |
/build/tools/component_tools/static_check/gn_check/ |
H A D | check_gn_online.py | 45 for line in values: 46 pos = line[0] 47 content = line[1] 68 def check_have_product_name(self, key: str, line: list) -> None: 73 if line[1].find(check_item) != -1 and line[1].find("==") != -1: 80 pos = "line:{} {}".format(line[0], line[1]) 85 def check_abs_path(self, key: str, line [all...] |
/build/hb/util/post_gn/ |
H A D | check_compilation_parameters.py | 25 def parse_cflags(line, cflags_check_list, whitelist): 27 for flag in line.split(): 35 def parse_ldflags(line, ldflags_check_list, whitelist): 37 for flag in line.split(): 47 for line in file: 48 if line.startswith('cflags') or line.startswith('cflags_cc') or line.startswith('cflags_c'): 49 flag = parse_cflags(line, cflags_check_list, whitelist) 50 elif line [all...] |
/build/tools/component_tools/ |
H A D | parse_kconf.py | 78 def is_valid_line(line: str): 79 return line.startswith(KCONF_PREFIX) 82 def handle_config_feature(items: dict, arr: list, line: str): 86 features = line.split("=", 1)[1].strip("\"") 93 def handle_config_component(items: dict, arr: list, line: str): 97 items[VALUE] = line.split("=", 1)[1] 100 def handle_config_property(items: dict, arr: list, line: str): 103 items[VALUE] = line.split("=", 1)[1].strip("\"") 106 def read_line_item(line: str): 107 line [all...] |
/build/config/components/init/param/ |
H A D | param_fixer.py | 40 def parse_params(line, contents): 41 line = line.strip() 42 pos = line.find('=') 45 name = line[:pos] 46 value = line[pos + 1:] 64 for line in lines: 65 line = line.strip() 67 if line [all...] |
/build/toolchain/mac/ |
H A D | filter_libtool.py | 24 def is_blocklisted_line(line): 25 """Returns whether the line should be filtered out.""" 27 if isinstance(line, bytes): 28 line = line.decode() 29 if pattern.match(line): 41 for line in err.splitlines(): 42 if not is_blocklisted_line(line): 43 print(line, file=sys.stderr) 44 # Unconditionally touch the output .a file on the command line i [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/ |
H A D | mk_prim_xml_step1.py | 65 for line in f1:
66 list_temp=re.split('[ \t\n\r\f\v]+', line)
76 for line in f1:
77 list_temp=re.split('[ \t\n\r\f\v]+', line)
139 for line in f1:
140 match=re.search('PRIM_XML_HI_DIAG_LOG_MSG_', line)
142 match_id=re.search('_PRIM_ID_:', line)
143 match_sz=re.search(',_PRIM_SZ_:', line)
144 match_line=re.search(',_PRIM_LINE_:', line)
145 match_file=re.search(',_PRIM_FILE_:', line)
[all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/ |
H A D | utils.py | 24 def parse_line_key_value(line): 25 """parse line which should format as 'key = value'""" 27 if "=" in line: 28 arr = line.split("=") 37 for line in in_str.split("\n"): 38 if Constant.PRODUCT_PARAMS_START in line: 40 elif Constant.PRODUCT_PARAMS_END in line: 43 params.update(parse_line_key_value(line))
|
/test/testfwk/developer_test/libs/fuzzlib/tools/ |
H A D | templates.py | 216 for line in backtrace.split("\n"): 219 if line.strip().startswith(tag) == True \ 220 and "in" in line and "exec/s" not in line: 227 if block_line in line: 231 new_backtrack = " %s %s \n" % (new_backtrack, line) 236 " > %s </b>\n' % line 239 new_backtrack = " %s %s \n" % (new_backtrack, line)
|
/build/hb/util/ |
H A D | log_util.py | 43 for line in str(msg).splitlines(): 46 '\r' + (LogUtil.message(level, line)).strip('\n')) 50 for line in str(msg).splitlines(): 51 sys.stdout.write(LogUtil.message(level, line)) 57 for line in str(msg).splitlines(): 58 sys.stderr.write(LogUtil.message(level, line)) 65 for line in str(msg).splitlines(): 66 sys.stderr.write(LogUtil.message(level, line)) 86 for line in str(msg).splitlines(): 87 sys.stderr.write(LogUtil.message(level, line)) [all...] |
/build/scripts/ |
H A D | cargo2gn.py | 94 for line in lines: 96 if designated_re.match(line): 97 line = eval(repr(line).replace(f'\\"', '')) 98 return designated_re.match(line).group(1) 100 is_package = package.match(line) is not None 148 self.line = '' # original rustc command line parameters 149 self.line_num = 1 # runner told input source line number 150 # Parameters collected from rustc command line [all...] |
/test/ostest/wukong/report/src/ |
H A D | statistics_exception.cpp | 54 std::vector<std::string> line; in StatisticsDetail() local 57 line.push_back(crashTypesIter); in StatisticsDetail() 60 line.push_back(std::to_string(curExceptionTypeCount)); in StatisticsDetail() 69 line.push_back(proportionStr); in StatisticsDetail() 70 record_.push_back(line); in StatisticsDetail() 71 line.clear(); in StatisticsDetail() 74 line = {"total", std::to_string(exceptionTotal_), "100%"}; in StatisticsDetail() 75 record_.push_back(line); in StatisticsDetail()
|
H A D | statistics_event.cpp | 38 std::vector<std::string> line; in StatisticsDetail() local 45 UpdateLine(curEventStatisticsRecordPtr, curEventStatisticsMsgPtr->eventTypeTotal_, line); in StatisticsDetail() 46 record_.push_back(line); in StatisticsDetail() 50 UpdateLine(curBundleAllStatisticsPtr, curEventStatisticsMsgPtr->eventTypeTotal_, line); in StatisticsDetail() 51 record_.push_back(line); in StatisticsDetail() 116 uint32_t eventTypeTotal, std::vector<std::string> &line) in UpdateLine() 129 DEBUG_LOG_STR("line content curElementType{%s} | curExecTimes{%s}", curElementType.c_str(), curExecTimes.c_str()); in UpdateLine() 130 line = {curElementType, curExecTimes, curProportionStr}; in UpdateLine() 135 std::vector<std::string> line; in GlobalElementTypesStatistics() local 151 UpdateLine(eventStatisticsRecordPtr, execCount_, line); in GlobalElementTypesStatistics() 115 UpdateLine(std::shared_ptr<EventStatisticsRecord> EventStatisticsRecordPtr, uint32_t eventTypeTotal, std::vector<std::string> &line) UpdateLine() argument [all...] |
/device/soc/rockchip/common/sdk_linux/scripts/ |
H A D | clang-wrapper.py | 53 def interpret_warning(line): 55 line = line.rstrip('\n') 56 m = warning_re.match(line) 83 for line in proc.stderr: 84 print (line.decode("utf-8"), end="") 85 interpret_warning(line.decode("utf-8"))
|
/build/tools/component_tools/static_check/bundle_check/ |
H A D | bundle_json_check.py | 130 "line" + str(item['line']) + ": " + item['contents'], 192 for line in self.__lines: 194 if string in line: 217 bundle_error = dict(line=0, contents='"name"') 224 bundle_error["line"] = self.get_line_number('"name"') 243 bundle_error = dict(line=0, contents='version') 249 bundle_error["line"] = self.get_line_number('"version": ') 263 bundle_error = dict(line=0, contents='"segment"') 270 bundle_error["line"] [all...] |