/arkcompiler/ets_frontend/es2panda/scripts/ |
D | generate_js_bytecode.py | 58 def run_command(cmd, execution_path): argument 59 print(" ".join(cmd) + " | execution_path: " + execution_path) 60 proc = subprocess.Popen(cmd, cwd=execution_path) 69 cmd = [os.path.join("./", name, "es2abc"), 74 cmd += ['--extension', input_arguments.extension] 76 cmd += ['--dump-symbol-table', input_arguments.dump_symbol_table] 78 cmd += ['--input-symbol-table', input_arguments.input_symbol_table] 80 src_index = cmd.index(input_arguments.src_js) 81 cmd.insert(src_index, '--debug-info') 83 src_index = cmd.index(input_arguments.src_js) [all …]
|
/arkcompiler/toolchain/tooling/client/utils/ |
D | cli_command.h | 55 ErrCode HeapProfilerCommand(const std::string &cmd); 56 ErrCode DebuggerCommand(const std::string &cmd); 57 ErrCode CpuProfileCommand(const std::string &cmd); 58 ErrCode RuntimeCommand(const std::string &cmd); 59 ErrCode BreakCommand(const std::string &cmd); 60 ErrCode DeleteCommand(const std::string &cmd); 61 ErrCode StepCommand(const std::string &cmd); 62 ErrCode ShowstackCommand(const std::string &cmd); 63 ErrCode DisplayCommand(const std::string &cmd); 64 ErrCode InfosourceCommand(const std::string &cmd); [all …]
|
D | cli_command.cpp | 222 ErrCode CliCommand::HeapProfilerCommand(const std::string &cmd) in HeapProfilerCommand() argument 228 if ((cmd == "allocationtrack" || cmd == "sampling") && !argList.empty()) { in HeapProfilerCommand() 234 std::cout << "exe success, cmd is " << cmd << std::endl; in HeapProfilerCommand() 240 std::cout << "exe success, cmd is " << cmd << std::endl; in HeapProfilerCommand() 255 bool result = heapProfilerClient.DispatcherCmd(cmd, argList[0]); in HeapProfilerCommand() 259 ErrCode CliCommand::CpuProfileCommand(const std::string &cmd) in CpuProfileCommand() argument 266 if (cmd == "cpuprofile") { in CpuProfileCommand() 268 std::cout << "exe success, cmd is " << cmd << std::endl; in CpuProfileCommand() 274 if (cmd == "cpuprofile-show") { in CpuProfileCommand() 275 std::cout << "exe success, cmd is " << cmd << std::endl; in CpuProfileCommand() [all …]
|
/arkcompiler/ets_frontend/ts2panda/scripts/ |
D | run_tests.py | 57 def run_command(cmd, execution_path=os.getcwd()): argument 58 print(" ".join(cmd)) 59 proc = subprocess.Popen(cmd, cwd=execution_path) 107 cmd = [tsc, '-b', 'src', 'tests'] 108 ret = run_command(cmd, self.dist_dir) 110 cmd = [tsc, '-b', 'src/tsconfig.win.json', 112 ret = run_command(cmd, self.dist_dir) 114 cmd = [tsc, '-b', 'src/tsconfig.mac.json', 116 ret = run_command(cmd, self.dist_dir) 118 raise RuntimeError("Run [{}] failed !".format(" ".join(cmd))) [all …]
|
D | run.py | 57 def run_command(cmd, execution_path=os.getcwd()): argument 58 print(" ".join(cmd) + " | execution_path: " + execution_path) 59 proc = subprocess.Popen(cmd, cwd=execution_path) 83 cmd = ['mv', 'dist', inp_dir] 84 run_command(cmd, dist_dir) 111 cmd = [webpack, '--config', 'webpack.config.js', '--progress', 114 cmd += ['--no-devtool'] 115 run_command(cmd, options.dist_dir)
|
/arkcompiler/ets_frontend/test262/ |
D | utils.py | 62 def __init__(self, cmd): argument 63 self.cmd = cmd 66 LOGGING.debug("command: " + self.cmd) 67 out = os.popen(self.cmd).read() 73 cmd = Command(command) 74 return cmd.run() 83 cmd = " ".join(self.cmds) 84 LOGGING.debug("command: " + cmd + " | " + "dir: " + self.cwd) 93 cmd = CommandCwd(commands, cwd) 94 return cmd.run() [all …]
|
/arkcompiler/ets_runtime/script/ |
D | run_ark_executable.py | 68 cmd = \ 74 cmd = "{}".format(args.script_file) 75 cmd += " {}".format(args.script_options) if args.script_options else "" 76 cmd += " {}".format(args.script_args) if args.script_args else "" 77 return [cmd, env_path] 102 cmd = args.script_file 103 cmd += " {}".format(args.script_options) if args.script_options else "" 104 cmd += " {}".format(args.script_args) if args.script_args else "" 106 subp = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, 110 [cmd, env_path] = get_command_and_env_path(args) [all …]
|
/arkcompiler/runtime_core/static_core/scripts/code_style/ |
D | clang_tidy_rename.py | 59 cmd = ['clang-tidy-14'] 60 cmd += ['--header-filter=.*'] 61 cmd += ['-checks=-*,'+ clang_rules_autofix] 62 cmd += ['--format-style=file --fix-errors --fix-notes'] 63 cmd += ['--config-file=' + os.path.join(panda_dir, '.clang-tidy')] 64 cmd += ['--export-fixes=' + fname_fix_patch + ''] 65 cmd += [src_path] 66 cmd += ['--'] 67 cmd += ['-ferror-limit=0'] 68 cmd += compile_args.split(' ') [all …]
|
D | code_style_check.py | 45 cmd = reformat_cmd if reformat else check_cmd 46 cmd += [src_path] 51 subprocess.check_output(cmd, stderr=subprocess.STDOUT) 58 print('Failed: ', ' '.join(cmd))
|
/arkcompiler/ets_frontend/test/scripts/sdk_test/ |
D | entry.py | 30 cmd = ['python', 'run.py'] 31 cmd.extend(['--sdkPath', sdk_url]) 32 cmd.extend(['--hapMode', 'all']) 33 cmd.extend(['--compileMode', 'all']) 34 cmd.extend(['--logLevel', 'debug']) 35 cmd.extend(['--logFile', 'log' + '_' + utils.get_time_string() + '.txt']) 39 print(cmd) 40 process = subprocess.Popen(cmd, cwd=current_dir,
|
/arkcompiler/runtime_core/disassembler/tests/ |
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 = [frontend_binary, tc_file, '--outputProto', out_self_proto_file, '--merge-abc'] [all …]
|
/arkcompiler/ets_frontend/arkguard/ |
D | compile_arkguard.py | 43 def run_cmd(cmd, execution_ath=None): argument 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/ets_frontend/merge_abc/script/ |
D | build_proto.sh | 24 cmd="$protoc_cmdline" 25 echo $cmd 26 $cmd
|
/arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
D | clang_tidy_check.py | 214 cmd = [cmd_path] 215 cmd += ['-checks=*,' +','.join(default_disabled_checks)] 216 cmd += ['--header-filter=.*'] 217 cmd += ['--config-file=' + os.path.join(panda_dir, '.clang-tidy')] 218 cmd += [src_path] 219 cmd += ['--'] 220 cmd += compile_args.split() 223 subprocess.check_output(cmd, cwd=build_dir, stderr=subprocess.STDOUT) 235 print('Failed: ' + ' '.join(cmd) + '\n' + out_msg) 313 for cmd in cmds_json: [all …]
|
/arkcompiler/ets_frontend/es2panda/test/ |
D | runner.py | 182 def log_cmd(self, cmd): argument 183 self.reproduce += "\n" + ' '.join(cmd) 193 cmd = runner.cmd_prefix + [runner.es2panda] 194 cmd.extend(self.flags) 195 cmd.extend(["--output=" + test_abc_path]) 196 cmd.append(self.path) 198 self.log_cmd(cmd) 200 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 248 cmd = runner.cmd_prefix + [runner.es2panda] 250 cmd.append('--opt-level=2') [all …]
|
/arkcompiler/ets_runtime/test/ |
D | runtest.py | 73 def run_and_print(cmd): argument 74 print(cmd) 75 os.system(cmd) 77 def run_command(cmd, timeout=DEFAULT_TIMEOUT): argument 78 proc = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, shell=True) 293 def run_cmd(self, cmd): argument 294 print(cmd) 295 ret = run_command(cmd, self.args.timeout) 342 cmd = f'{self.ts2abc} {self.builtin}.ts -m --merge-abc -q -b' 344 … cmd = (f'{self.es2abc} --module --merge-abc --extension=ts --type-extractor --type-dts-builtin ' [all …]
|
D | run_ts_test262.py | 75 cmd = ['ts-node', filepath] 76 return cmd 91 cmd = [args.es2abc + 'es2abc'] 92 …cmd.extend(['--module', '--merge-abc', '--type-extractor', '--extension=ts', '--output', abc_file_… 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.P… 124 cmd, abc_file_path_temp = get_es2abc_cmd(path) 125 …process = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.P…
|
/arkcompiler/toolchain/tooling/client/domain/ |
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/ets_runtime/ecmascript/compiler/aot_file/ |
D | elf_checker.cpp | 152 …void* mapAddress, int64_t offset, size_t maxsize, ElfCommand cmd, Elf* parent, ElfKind kind, size_… in ElfAllocate() argument 161 result->cmd = cmd; in ElfAllocate() 301 int64_t offset, size_t maxSize, ElfCommand cmd, size_t scnCnt, Elf* elf) in GetElfItem() argument 332 if (eIdent[llvm::ELF::EI_DATA] == ELF_BYTEORDER && cmd != ELF_CMD_READ_MMAP && in GetElfItem() 391 …void* mapAddress, unsigned char* eIdent, int64_t offset, size_t maxSize, ElfCommand cmd, Elf* pare… in FileReadElf() argument 422 …const size_t scnMax = (scncnt ? scncnt : (cmd == ELF_CMD_RDWR || cmd == ELF_CMD_RDWR_MMAP) ? 1 : 0… in FileReadElf() 423 …Elf* elf = ElfAllocate(mapAddress, offset, maxSize, cmd, parent, ELF_KIND_ELF, scnMax * sizeof(Elf… in FileReadElf() 438 elf->state.elf32, mapAddress, eIdent, offset, maxSize, cmd, scncnt, elf); in FileReadElf() 441 elf->state.elf64, mapAddress, eIdent, offset, maxSize, cmd, scncnt, elf); in FileReadElf() 446 void* mapAddress, int64_t offset, size_t maxsize, ElfCommand cmd, Elf* parent) in ReadMmapedFile() argument [all …]
|
D | elf_checker.h | 267 ElfCommand cmd; member 373 …void* map_address, int64_t offset, size_t maxsize, ElfCommand cmd, Elf* parent, ElfKind kind, size… 384 ElfCommand cmd, size_t scnCnt, Elf* elf); 386 …void* map_address, unsigned char* e_ident, int64_t offset, size_t maxsize, ElfCommand cmd, Elf* pa… 387 …Elf* ReadMmapedFile(void* map_address, int64_t offset, size_t maxsize, ElfCommand cmd, Elf* parent…
|
/arkcompiler/toolchain/tooling/test/client_utils/ |
D | test_util.cpp | 76 CliCommand cmd(cliCmdStr, 0); in NotifySuccess() local 77 if (cmd.ExecCommand() == ErrCode::ERR_FAIL) { in NotifySuccess() 85 CliCommand cmd(cliCmdStr, 0); in NotifyFail() local 86 if (cmd.ExecCommand() == ErrCode::ERR_FAIL) { in NotifyFail() 119 CliCommand cmd(cliCmdStr, 0); in ForkSocketClient() local 120 success = (cmd.ExecCommand() == ErrCode::ERR_OK); in ForkSocketClient()
|
/arkcompiler/ets_frontend/test/scripts/ |
D | timer.py | 25 def job(cmd): argument 26 subprocess.run(cmd, shell=False)
|
/arkcompiler/toolchain/build/prebuilts_download/ |
D | prebuilts_download.py | 52 def _run_cmd(cmd): argument 53 res = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, 86 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 88 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 90 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 91 _run_cmd(cmd) 162 cmd = 'mv {}/*.mark {}'.format(dest_dir, tmp_dir) 163 _run_cmd(cmd)
|
D | util.py | 98 cmd = ['gn', 'format'] 99 cmd.append(output_file) 100 subprocess.check_output(cmd)
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
D | plugins_registry.py | 94 cmd = ["ln", "-s", side_plugin] 95 subprocess.run(cmd, check=True) 115 cmd = ["rm"] + self.side_plugins 116 subprocess.run(cmd, check=True)
|