/arkcompiler/ets_frontend/es2panda/scripts/ |
H A D | generate_js_bytecode.py | 65 def run_command(cmd, execution_path): 66 print(" ".join(cmd) + " | execution_path: " + execution_path) 67 proc = subprocess.Popen(cmd, cwd=execution_path) 70 raise subprocess.CalledProcessError(proc.returncode, cmd) 78 cmd = [os.path.join("./", name, "es2abc"), 83 cmd += ['--extension', input_arguments.extension] 85 cmd += ['--dump-symbol-table', input_arguments.dump_symbol_table] 87 cmd += ['--input-symbol-table', input_arguments.input_symbol_table] 89 src_index = cmd.index(input_arguments.src_js) 90 cmd [all...] |
/arkcompiler/toolchain/build/scripts/ |
H A D | generate_js_bytecode.py | 55 def run_command(cmd, execution_path): 56 print(" ".join(cmd) + " | execution_path: " + execution_path) 57 proc = subprocess.Popen(cmd, cwd=execution_path) 66 cmd = [os.path.join("./", name, "es2abc"), 71 cmd += ['--extension', input_arguments.extension] 73 cmd += ['--dump-symbol-table', input_arguments.dump_symbol_table] 75 cmd += ['--input-symbol-table', input_arguments.input_symbol_table] 77 src_index = cmd.index(input_arguments.src_js) 78 cmd.insert(src_index, '--debug-info') 80 src_index = cmd [all...] |
/arkcompiler/toolchain/test/autotest/aw/ |
H A D | utils.py | 81 cmd = ['hdc', 'shell', 'rm', '/data/log/faultlog/faultlogger/*'] 82 logging.info(' '.join(cmd)) 83 result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 91 cmd = ['hdc', 'file', 'recv', '/data/log/faultlog/faultlogger/', log_path] 92 logging.info(' '.join(cmd)) 93 result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 103 cmd = ['hdc', 'shell', 'hilog', '-r'] 104 logging.info(' '.join(cmd)) 105 result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 109 cmd [all...] |
H A D | fport.py | 31 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@{bundle_name}'] 32 logging.info('fport connect server: ' + ' '.join(cmd)) 33 result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 46 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@Debugger'] 48 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@{tid}@Debugger'] 49 logging.info('fport_debugger_server: ' + ' '.join(cmd)) 50 result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
/arkcompiler/toolchain/tooling/client/utils/ |
H A D | cli_command.h | 56 ErrCode HeapProfilerCommand(const std::string &cmd); 57 ErrCode DebuggerCommand(const std::string &cmd); 58 ErrCode CpuProfileCommand(const std::string &cmd); 59 ErrCode RuntimeCommand(const std::string &cmd); 60 ErrCode BreakCommand(const std::string &cmd); 61 ErrCode DeleteCommand(const std::string &cmd); 62 ErrCode StepCommand(const std::string &cmd); 63 ErrCode ShowstackCommand(const std::string &cmd); 64 ErrCode DisplayCommand(const std::string &cmd); 65 ErrCode InfosourceCommand(const std::string &cmd); [all...] |
H A D | cli_command.cpp | 227 ErrCode CliCommand::HeapProfilerCommand(const std::string &cmd) in HeapProfilerCommand() argument 233 if ((cmd == "allocationtrack" || cmd == "sampling") && !argList.empty()) { in HeapProfilerCommand() 239 std::cout << "exe success, cmd is " << cmd << std::endl; in HeapProfilerCommand() 245 std::cout << "exe success, cmd is " << cmd << std::endl; in HeapProfilerCommand() 260 bool result = heapProfilerClient.DispatcherCmd(cmd, argList[0]); in HeapProfilerCommand() 264 ErrCode CliCommand::CpuProfileCommand(const std::string &cmd) in CpuProfileCommand() argument 271 if (cmd in CpuProfileCommand() 308 DebuggerCommand(const std::string &cmd) DebuggerCommand() argument 324 RuntimeCommand(const std::string &cmd) RuntimeCommand() argument 344 BreakCommand(const std::string &cmd) BreakCommand() argument 374 DeleteCommand(const std::string &cmd) DeleteCommand() argument 403 DisplayCommand(const std::string &cmd) DisplayCommand() argument 416 InfosourceCommand(const std::string &cmd) InfosourceCommand() argument 436 ListCommand(const std::string &cmd) ListCommand() argument 469 StepCommand(const std::string &cmd) StepCommand() argument 485 ShowstackCommand(const std::string &cmd) ShowstackCommand() argument 498 PrintCommand(const std::string &cmd) PrintCommand() argument 523 WatchCommand(const std::string &cmd) WatchCommand() argument 542 SessionAddCommand([[maybe_unused]] const std::string &cmd) SessionAddCommand() argument 559 SessionDelCommand([[maybe_unused]] const std::string &cmd) SessionDelCommand() argument 583 SessionListCommand([[maybe_unused]] const std::string &cmd) SessionListCommand() argument 594 SessionSwitchCommand([[maybe_unused]] const std::string &cmd) SessionSwitchCommand() argument 613 TestCommand(const std::string &cmd) TestCommand() argument 631 OutputCommand(const std::string &cmd, bool flag) OutputCommand() argument [all...] |
/arkcompiler/ets_frontend/test/scripts/sdk_test/ |
H A D | entry.py | 28 cmd = ['python', 'run.py'] 29 cmd.extend(['--hapMode', 'all']) 30 cmd.extend(['--compileMode', 'all']) 31 cmd.extend(['--logLevel', 'debug']) 32 cmd.extend(['--runHaps']) 33 cmd.extend(['--logFile', 'log' + '_' + utils.get_time_string() + '.txt']) 37 print(cmd) 38 process = subprocess.Popen(cmd, cwd=current_dir, 45 print(f"cmd stdout: {stdout_utf8}") 46 print(f"cmd stder [all...] |
/arkcompiler/runtime_core/static_core/scripts/code_style/ |
H A D | clang_tidy_rename.py | 53 cmd = ['clang-tidy-14'] 54 cmd += ['--header-filter=.*'] 55 cmd += ['-checks=-*,' + clang_rules_autofix] 56 cmd += ['--format-style=file --fix-errors --fix-notes'] 57 cmd += ['--config-file=' + os.path.join(panda_dir, '.clang-tidy')] 58 cmd += ['--export-fixes=' + fname_fix_patch + ''] 59 cmd += [src_path] 60 cmd += ['--'] 61 cmd += ['-ferror-limit=0'] 62 cmd [all...] |
/arkcompiler/ets_runtime/script/ |
H A D | run_ark_executable.py | 69 cmd = \ 75 cmd = "{}".format(args.script_file) 76 cmd += " {}".format(args.script_options) if args.script_options else "" 77 cmd += " {}".format(args.script_args) if args.script_args else "" 78 return [cmd, env_path] 103 cmd = args.script_file 104 cmd += " {}".format(args.script_options) if args.script_options else "" 105 cmd += " {}".format(args.script_args) if args.script_args else "" 107 subp = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, 111 [cmd, env_pat [all...] |
/arkcompiler/ets_frontend/test262/ |
H A D | utils.py | 163 def __init__(self, cmd): 164 self.cmd = cmd 167 LOGGING.debug("command: " + self.cmd) 168 out = os.popen(self.cmd).read() 174 cmd = Command(command) 175 return cmd.run() 184 cmd = " ".join(self.cmds) 185 LOGGING.debug("command: " + cmd + " | " + "dir: " + self.cwd) 194 cmd [all...] |
H A D | mix_compile.py | 58 cmd = [self.frontend_tool, '--opt-level', str(self.opt_level), 62 return_code = exec_command(cmd) 64 print_command(cmd) 72 cmd = [self.frontend_tool, '--opt-level', str(self.opt_level), 77 return_code = exec_command(cmd) 79 print_command(cmd)
|
/arkcompiler/runtime_core/disassembler/tests/ |
H A D | gen_pa_file.py | 151 cmd = [] 167 cmd = [merge_abc_binary, '--input', out_merged_dependency_proto_dir, '--suffix', proto_bin_suffix, 170 retcode = run_command(cmd) 175 cmd = [] 189 cmd = [] 213 cmd = [frontend_binary, dependency, '--output', out_dependency_aparted_abc_file] 215 cmd = [frontend_binary, dependency, '--outputProto', out_dependency_proto_file, '--merge-abc'] 218 cmd.append('--module') 220 retcode = run_command(cmd) 226 cmd [all...] |
/arkcompiler/ets_frontend/arkguard/ |
H A D | compile_arkguard.py | 43 def run_cmd(cmd, execution_ath=None): 44 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, 54 cmd = ["npm", "run", "build"] 55 run_cmd(cmd, execution_path) 59 cmd = ["npm", "pack"] 60 run_cmd(cmd, execution_path)
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
H A D | shell.py | 109 def timed_cmd(cmd: str) -> str: 110 return f"\\time -v env {cmd}" 113 cmd: str, 119 def run_async(self, cmd: str) -> None: 137 def grep_output(self, cmd: str, regex: str) -> str: 138 r = self.run(cmd=cmd) 155 cmd: str, 160 cmd, measure_time=measure_time, timeout=timeout, cwd=cwd) 172 def run_async(self, cmd [all...] |
/arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
H A D | clang_tidy_check.py | 216 cmd = [cmd_path] 217 cmd += ['-checks=*,' + ','.join(default_disabled_checks)] 218 cmd += ['--header-filter=.*'] 219 cmd += ['--config-file=' + os.path.join(panda_dir, '.clang-tidy')] 220 cmd += [src_path] 221 cmd += ['--'] 222 cmd += compile_args.split() 225 subprocess.check_output(cmd, cwd=build_dir, stderr=subprocess.STDOUT) 237 print('Failed: ' + ' '.join(cmd) + '\n' + out_msg) 317 for cmd i [all...] |
/arkcompiler/ets_frontend/es2panda/test/ |
H A D | runner.py | 179 def run_subprocess_with_beta3(test_obj, cmd): 185 for param in cmd: 195 cmd.append("--target-api-sub-version=beta3") 197 test_obj.log_cmd(cmd) 199 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 212 def log_cmd(self, cmd): 213 self.reproduce += "\n" + ' '.join(cmd) 223 cmd = runner.cmd_prefix + [runner.es2panda] 224 cmd.extend(self.flags) 225 cmd [all...] |
/arkcompiler/ets_runtime/test/ |
H A D | runtest.py | 73 def run_and_print(cmd): 74 print(cmd) 75 os.system(cmd) 77 def run_command(cmd, timeout=DEFAULT_TIMEOUT): 78 proc = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, shell=True) 291 def run_cmd(self, cmd): 292 print(cmd) 293 ret = run_command(cmd, self.args.timeout) 340 cmd = f'{self.ts2abc} {self.builtin}.ts -m --merge-abc -q -b' 342 cmd [all...] |
H A D | run_ts_test262.py | 75 cmd = ['ts-node', filepath] 76 return cmd 91 cmd = [args.es2abc + 'es2abc'] 92 cmd.extend(['--module', '--merge-abc', '--extension=ts', '--output', abc_file_path, filepath]) 93 return cmd, abc_file_path_temp 117 cmd, abc_file_path_temp = get_es2abc_cmd(path) 118 process = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 124 cmd, abc_file_path_temp = get_es2abc_cmd(path) 125 process = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/ |
H A D | size_compare.py | 197 cmd = ['git', 'clone', git_url, code_dir] 200 cmd = ['git', 'pull'] 201 process = subprocess.Popen(cmd) 225 self.cmd = [args.es2abc_path] 231 self.cmd.extend(flags) 252 cmd = copy.deepcopy(self.cmd) 253 cmd.extend([f'--output={abc_file_path}']) 254 cmd.extend([file_path]) 256 subprocess.run(cmd, timeou [all...] |
/arkcompiler/toolchain/build/compile_script/ |
H A D | ark.py | 36 def _call(cmd: str): 37 print("# %s" % cmd) 38 return subprocess.call(cmd, shell=True) 46 def call_with_output(cmd: str, file: str): 47 print("# %s" % cmd) 48 host = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) 334 cmd = [ 343 cmd.append("--ark-arch aarch64") 344 cmd.append(f"--ark-arch-root=../../{out_path}/common/common/libc/") 345 cmd [all...] |
/arkcompiler/toolchain/tooling/client/domain/ |
H A D | test_client.cpp | 25 bool TestClient::DispatcherCmd(const std::string &cmd) in DispatcherCmd() argument 32 auto entry = dispatcherTable.find(cmd); in DispatcherCmd() 35 LOGI("TestClient DispatcherCmd cmd: %{public}s", cmd.c_str()); in DispatcherCmd() 38 LOGI("Unknown commond: %{public}s", cmd.c_str()); in DispatcherCmd()
|
/arkcompiler/runtime_core/verifier/tests/ |
H A D | version_compatibility_test.py | 57 cmd = [ 65 cmd.append(f"--target-api-sub-version={target_api_sub_version}") 67 result = subprocess.run(cmd, capture_output=True, text=True) 69 print(f"Executing command: {' '.join(cmd)}") 73 raise subprocess.CalledProcessError(result.returncode, cmd) 85 cmd = [os.path.join(verifier_dir, "ark_verifier"), "--input_file", abc_file] 86 result = subprocess.run(cmd, capture_output=True, text=True)
|
/arkcompiler/ets_runtime/test/aotjsperftest/ |
H A D | run_js_test.py | 240 cmd = [es2abc_path, "--module", "--merge-abc", "--extension=js", js_file_path]
242 logger.info("run cmd: %s", cmd)
243 ret = subprocess.run(cmd)
245 logger.error("ret = %s, %s generate abc file failed. cmd: %s", str(ret), js_file_name, cmd)
252 logger.error("ret.returncode = %s, %s generate abc file failed. cmd: %s", str(ret.returncode), js_file_name,
258 cmd = [ark_js_vm_path,
264 logger.info("run cmd: %s", cmd)
[all...] |
/arkcompiler/ets_runtime/test/jsperftest/ |
H A D | run_js_test.py | 237 cmd: List[str] = []
239 cmd = [Constants.HDC_PATH, "shell"]
247 cmd.append(run_cmd)
249 cmd = [Constants.ARK_JS_VM_PATH,
256 cmd = ["taskset", "-a", Constants.TASKSET_MASK] + cmd
257 return cmd
275 cmd = [Constants.ES2ABC_PATH, "--output", abc_file, js_file]
276 logger.info("run cmd: %s", cmd)
[all...] |
/arkcompiler/toolchain/tooling/test/client_utils/ |
H A D | test_util.cpp | 77 CliCommand cmd(cliCmdStr, 0); in NotifySuccess() 78 if (cmd.ExecCommand() == ErrCode::ERR_FAIL) { in NotifySuccess() 86 CliCommand cmd(cliCmdStr, 0); in NotifyFail() 87 if (cmd.ExecCommand() == ErrCode::ERR_FAIL) { in NotifyFail() 120 CliCommand cmd(cliCmdStr, 0); in ForkSocketClient() 121 success = (cmd.ExecCommand() == ErrCode::ERR_OK); in ForkSocketClient()
|