Lines Matching refs:cmd
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.extend(["--output=" + test_abc_path])
226 cmd.append(self.path)
227 process = run_subprocess_with_beta3(self, cmd)
287 cmd = runner.cmd_prefix + [runner.es2panda, '--parse-only']
288 cmd.extend(self.flags)
290 cmd.append('--module')
291 cmd.append(self.path)
292 process = run_subprocess_with_beta3(self, cmd)
305 def __init__(self, cmd, compare_str, compare_abc_str, remove_file):
306 self.cmd = cmd
317 def log_cmd(self, cmd):
318 self.reproduce += ''.join(["\n", ' '.join(cmd)])
321 cmd = self.cmd
322 process = run_subprocess_with_beta3(self, cmd)
1011 cmd = self.cmd_prefix + [self.es2panda]
1012 cmd += ["--target-bc-version"]
1013 cmd += ["--target-api-version"]
1014 cmd += [str(api_version)]
1015 self.tests += [BcVersionTest(cmd, api_version)]
1025 new_cmd = cmd.copy()
1038 def __init__(self, cmd, api_version):
1040 self.cmd = cmd
1074 process = subprocess.Popen(self.cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1077 if self.cmd[0] == "node":
1126 cmd = runner.cmd_prefix + [runner.es2panda]
1127 cmd.extend(self.flags)
1128 cmd.append(self.path)
1129 process = run_subprocess_with_beta3(self, cmd)
1297 cmd = runner.cmd_prefix + [runner.es2panda, "--module"]
1300 cmd.extend(['--debug-info'])
1301 cmd.extend([os.path.join(self.path, input_file_name)])
1302 cmd.extend(['--dump-assembly'])
1303 process = run_subprocess_with_beta3(self, cmd)
1348 cmd = runner.cmd_prefix + [runner.es2panda, "--base64Output"]
1351 cmd.extend(['--source-file', input_file_name])
1352 cmd.extend([os.path.join(self.path, input_file_name)])
1358 cmd.extend(["--base64Input", base64_input])
1364 cmd.extend(['--target-api-version', version])
1366 cmd.append("--target-api-sub-version=beta3")
1371 cmd.extend(["--base64Input", base64_input])
1381 cmd.append("--target-api-sub-version=beta3")
1383 self.log_cmd(cmd)
1385 process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1452 def run_cmd_cwd(self, cmd):
1454 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1462 cmd = ["git", "clone", git_url, code_dir]
1465 ret = self.run_cmd_cwd(cmd)
1523 cmd = []
1524 cmd.append(self.es2panda)
1525 cmd.append(input_path)
1526 cmd.extend(flags)
1527 cmd.append("--target-api-version=%s" % (target_api_version))
1528 cmd.extend(["--output=%s" % (output_path)])
1530 cmd.append("--target-api-sub-version=%s" % (target_api_sub_version))
1531 process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1534 stderr = "Error executing command: %s\n%s" % (cmd, stderr)
1644 def run_process(self, cmd):
1645 self.process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1649 stderr = "Error executing command: %s\n%s" % (cmd, stderr)
1655 cmd = []
1656 cmd.append(runner.es2panda)
1659 cmd.append(input_path)
1660 cmd.extend(self.flags)
1661 cmd.append("--target-api-version=%s" % (target_api_version))
1662 cmd.extend(["--output=%s" % (output_path)])
1664 cmd.append("--target-api-sub-version=%s" % (target_api_sub_version))
1665 stdout, stderr = self.run_process(cmd)
1719 cmd = []
1734 cmd.append(ark_js_vm_path)
1736 cmd.append("--entry-point=%s" % entry_point)
1737 cmd.append(self.target_abc_path)
1738 stdout, stderr = self.run_process(cmd)
1846 cmd = []
1847 cmd.append(runner.es2panda)
1848 cmd.append(module_path)
1849 cmd.append("--module")
1851 cmd.append("--target-api-version=%s" % (main_version))
1853 cmd.append("--target-api-sub-version=beta%s" % (sub_version))
1863 cmd.extend(["--output=%s" % (module_abc_path)])
1865 self.process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1866 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1938 def run_process(self, cmd):
1939 self.process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1945 cmd = []
1946 cmd.append(runner.es2panda)
1947 cmd.append(self.path)
1948 cmd.extend(self.flags)
1949 cmd.append("--target-api-version=%s" % (target_api_version))
1952 cmd.extend(["--output=%s" % (self.test_abc_path)])
1954 cmd.append("--target-api-sub-version=%s" % (target_api_sub_version))
1956 cmd.append("--dump-ast")
1958 cmd.append("--dump-assembly")
1959 stdout, stderr = self.run_process(cmd)
1969 cmd = []
1984 cmd.append(ark_js_vm_path)
1985 cmd.append(self.test_abc_path)
1986 self.process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
2431 def add_cmd(self, cmd, compare_str, compare_abc_str, remove_file, func=TestAop):
2432 self.tests += [func(cmd, compare_str, compare_abc_str, remove_file)]