/arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
D | clang_tidy_check.py | 286 def need_to_ignore_file(file_path: str, panda_dir: str, build_dir: str) -> bool: 288 if not file_path.endswith(src_exts): 293 if regexp.search(file_path): 314 file_path = str(os.path.realpath(cmd["file"])) 315 if need_to_ignore_file(file_path, panda_dir, build_dir): 318 if regexp and not regexp.search(file_path): 329 file_list.append((file_path, compile_args)) 338 for file_path, keys in file_list: 340 filtered.append((file_path, keys)) 343 if filtered[-1][0] != file_path: [all …]
|
/arkcompiler/ets_frontend/es2panda/test/benchmark/ |
D | utils.py | 33 def write_log_file(file_path, log_str): argument 34 with open(file_path, mode='a+') as f: 41 file_path = os.path.join(path, file) 42 if os.path.isdir(file_path): 43 file_paths.update(traverse_dir(file_path)) 45 dir_name = os.path.dirname(file_path) 47 file_paths[dir_name] = [file_path] 49 file_paths[dir_name].append(file_path) 174 for file_path in file_paths: 175 if not file_path: [all …]
|
D | run_benchmark.py | 111 for file_path in file_paths: 112 file_name = os.path.basename(file_path) 116 … case_execution_time, case_execution_times = self.run_single_benchmark(file_path, engine_type) 134 def run_single_benchmark(self, file_path, engine_type): argument 138 output_file = os.path.join(DEFAULT_OUTPUT_DIR, os.path.basename(file_path). 142 new_cmds += [file_path, "--output", output_file] 144 new_cmds += [output_file.replace(ABC_FILE_SUFFIX, HERMES_FILE_SUFFIX), file_path]
|
/arkcompiler/runtime_core/static_core/scripts/code_style/ |
D | clang_tidy_rename.py | 112 def need_to_ignore_file(file_path): argument 114 if not file_path.endswith(src_exts): 119 if skip_dir in file_path: 140 file_path = str(os.path.realpath(cmd["file"])) 141 if need_to_ignore_file(file_path): 144 if file_path.startswith(build_dir): 147 if regexp is not None and not regexp.search(file_path): 154 file_list.append((file_path, compile_args))
|
/arkcompiler/runtime_core/verifier/tests/ |
D | verify_sys_hap_abc.py | 34 for file_path in os.listdir(hap_folder): 35 if file_path.endswith(".hap"): 36 destination_path = os.path.join(out_folder, file_path.replace(".hap", ".zip")) 37 shutil.copy(os.path.join(hap_folder, file_path), destination_path) 48 def verify_file(file_path, ark_verifier_path): argument 49 verification_command = [ark_verifier_path, "--input_file", file_path]
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/ |
D | benchmark.py | 59 file_path = self.__output / f"{name}{OUT_EXTENSION}" 60 write_2_file(file_path=file_path, content=test_content) 61 tests.append(str(file_path))
|
/arkcompiler/ets_frontend/test/scripts/performance_test/ |
D | performance_build.py | 331 def write_from_dic(self, file_path, first_line, dic): argument 341 excel_path = os.path.join(self.config.log_direct, os.path.basename(file_path)) 347 self.mail_helper.add_logs_file(file_path, content.encode()) 358 file_path = self.config.output_split.join((path_prefix, self.config.log_filename[0])) 359 file_path = os.path.join(self.prj_name, file_path) 360 self.write_from_dic(file_path, None, self.all_size_dic) 362 file_path = self.config.output_split.join((path_prefix, self.config.log_filename[1])) 363 file_path = os.path.join(self.prj_name, file_path) 364 self.write_from_dic(file_path, self.first_line_in_avg_excel, self.size_avg_dic) 369 file_path = self.config.output_split.join((path_prefix, self.config.log_filename[2])) [all …]
|
/arkcompiler/ets_frontend/test/scripts/sdk_test/ |
D | utils.py | 130 def check_gzip_file(file_path): argument 132 with gzip.open(file_path, 'rb') as gzfile: 168 def add_executable_permission(file_path): argument 169 current_mode = os.stat(file_path).st_mode 171 os.chmod(file_path, new_mode)
|
/arkcompiler/ets_runtime/test/workloadtest/ |
D | work_load.py | 133 def configure_environment(path, file_path, tools_type): argument 142 file_descriptor = os.open(file_path, args, stat.S_IRUSR | stat.S_IWUSR) 147 def write_to_txt(file_path, text): argument 149 file_descriptor = os.open(file_path, args, stat.S_IRUSR | stat.S_IWUSR) 230 file_path = os.path.join(destination_dir, file_name) 231 if os.path.isfile(file_path): 232 os.remove(file_path)
|
/arkcompiler/runtime_core/libpandafile/ |
D | pgo.h | 32 void SetProfilePath(std::string &file_path) in SetProfilePath() argument 34 profile_file_path_ = std::move(file_path); in SetProfilePath()
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
D | utils.py | 117 def read_file(file_path: Union[Path, str]) -> str: 118 with open(file_path, "r", encoding='utf8') as f_handle: 123 def write_2_file(file_path: Union[Path, str], content: str) -> None: 127 makedirs(path.dirname(file_path), exist_ok=True) 128 with open(file_path, mode='w+', encoding="utf-8") as f_handle:
|
/arkcompiler/ets_runtime/test/jsperftest/ |
D | run_js_test.py | 302 file_path = os.path.join(root, file) 303 results = file_path.split("/") 308 … test_data = run_js_case_via_ark(BINARY_PATH, file_path, class_name, api_name, report_file) 321 file_path = os.path.join(root, file) 322 results = file_path.split("/") 649 file_path = os.path.join(root, file) 650 file_list.append(file_path) 651 for _, file_path in enumerate(file_list): 652 results = file_path.split("/") 657 v_8_exec_time_dict = run_v_8_single_js_case(file_path, '', js_case_name) [all …]
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/code_coverage/ |
D | coverage.py | 94 file_path = f"{self.coverage_dir.profdata_dir}/{pid}-{hash_code}" 95 profraw_file = os.extsep.join([file_path, 'profraw']) 96 profdata_file = os.extsep.join([file_path, 'profdata'])
|
/arkcompiler/runtime_core/static_core/irtoc/lang/ |
D | function.rb | 329 file_path = File.expand_path(caller_data.path) 330 inst.debug_info.dir = add_source_dir(File.dirname(file_path)) 331 inst.debug_info.file = add_source_file(File.basename(file_path)) 342 file_path = File.expand_path(caller_data.path) 343 inst.debug_info.dir = add_source_dir(File.dirname(file_path)) 344 inst.debug_info.file = add_source_file(File.basename(file_path))
|
/arkcompiler/runtime_core/templates/events/ |
D | events.h.erb | 38 static void Init(const std::string& file_path) { 39 EventWriter::events_file.open(file_path, std::ios::out);
|
/arkcompiler/ets_runtime/test/regresstest/ |
D | run_regress_test.py | 209 for file_path in test_list: 210 input_file_path = file_path 312 def open_write_file(file_path, append): argument 317 file_descriptor = os.open(file_path, args, stat.S_IRUSR | stat.S_IWUSR) 322 def open_result_excel(file_path): argument 323 …file_descriptor = os.open(file_path, os.O_RDWR | os.O_CREAT | os.O_APPEND, stat.S_IRUSR | stat.S_I…
|
/arkcompiler/ets_runtime/test/ffiworkloadtest/ |
D | get_ffi_workload_report.py | 61 file_path = os.path.join(root, file) 62 xml_list.append(file_path) 186 file_path = os.path.join(root, file) 187 xml_list.append(file_path)
|
/arkcompiler/ets_runtime/test/ |
D | run_ts_test262.py | 173 for file_path in args.release: 174 all_files = get_path_file(file_path)
|
/arkcompiler/ets_frontend/testTs/ |
D | run_testTs.py | 160 def read_out_file(file_path): argument 161 with open(file_path, 'r') as read_file_path:
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/stdlib_templates/ |
D | stdlib_templates_generator.py | 71 write_2_file(file_path=output_filepath, content=test)
|