• Home
  • Raw
  • Download

Lines Matching full:path

18 from os import path
31 if not path.isdir(arg):
34 return path.abspath(arg)
38 if not path.isfile(arg):
41 return path.abspath(arg)
127 help='the path of js vm runtime')
131 '--tsc-path', dest='tsc_path', default=None, type=lambda arg: is_directory(parser, arg),
132 help='the path of tsc')
145 self.path = test_path
159 cmd.append(self.path)
167 expected_path = "%s-expected.txt" % (path.splitext(self.path)[0])
198 with open(self.path, 'r') as fp:
202 test_abc = path.join(runner.tmp_dir, "%s.abc" % self.test_id)
203 test_an = path.join(runner.tmp_dir, "%s.an" % self.test_id)
205 directory = path.dirname(test_abc)
220 cmd.append(self.path)
261 if os.path.isfile(test_an):
343 with open(self.path, "r", encoding="latin1") as f:
377 cmd.append(self.path)
395 self.test_root = path.dirname(path.abspath(__file__))
401 self.es2panda = path.join(args.build_dir, 'es2abc')
408 self.ark_js_vm = path.join(args.js_runtime_path, 'ark_js_vm')
419 if not path.isfile(self.es2panda):
449 path_str = test.path
452 … err_str = test.error.split('[')[0] if "hotfix" not in test.path else " hotfix throw error failed"
453 … err_col = {"path" : [path_str], "status": ["fail"], "error" : [test.error], "type" : [err_str]}
455 err_col = {"path" : [path_str], "status": ["fail"], "error" : ["Segmentation fault"],
474 test_list = pd.DataFrame(columns=["path", "status", "error", "type"])
476 …suc_col = {"path" : [test.path], "status": ["success"], "error" : ["success"], "type" : ["success"…
481 print(self.test_path(test.path))
511 glob_expression = path.join(
536 self.runtime = path.join(args.build_dir, 'bin', 'ark')
537 if not path.isfile(self.runtime):
551 self.arkaot = path.join(args.build_dir, 'bin', 'ark_aot')
552 if not path.isfile(self.arkaot):
581 self.tmp_dir = path.join(path.sep, 'tmp', 'panda', 'test262')
588 path.join(self.test_root, "test262harness.js"),
594 glob_expression = path.join(directory, "**/*.%s" % (extension))
596 files = fnmatch.filter(files, path.join(directory, self.args.filter))
600 return set(map(lambda e: path.join(directory, e.strip()), fp))
605 skiplist.update(load_list(path.join(self.test_root, sl)))
608 … self.normal_skiplist.update(load_list(path.join(self.test_root, self.normal_skiplist_file)))
612 skiplist_bco = load_list(path.join(self.test_root, self.skiplist_bco_name))
615 test_list = load_list(path.abspath(test_list_path))
619 return path.relpath(path.splitext(file)[0], self.test262_dir)
625 return path.relpath(src, self.test262_dir)
652 tests_list.sort(key=lambda test: test.path)
655 print(self.test_path(test.path))
707 …fd = os.open(path.join(self.test_root, self.normal_skiplist_file), os.O_RDWR | os.O_CREAT | os.O_T…
721 ts_dir = path.join(self.test_root, "TypeScript")
724 if not path.isdir(ts_dir):
744 ts_suite_dir = path.join(self.tsc_path, 'tests/cases')
746 glob_expression = path.join(
752 test_name = path.basename(f.split(".ts")[0])
753 negative_references = path.join(
755 is_negative = path.isfile(path.join(negative_references,
762 if path.isfile(path.join(negative_references,
770 … with open(path.join(self.test_root, 'test_tsc_ignore_list.txt'), 'r') as failed_references:
772 if path.relpath(f, self.tsc_path) in failed_references.read():
786 glob_expression = path.join(
802 test_abc_name = ("%s.abc" % (path.splitext(self.path)[0])).replace("/", "_")
803 test_abc_path = path.join(runner.build_dir, test_abc_name)
807 es2abc_cmd.append(self.path)
826 expected_path = "%s-expected.txt" % (path.splitext(self.path)[0])
855 gen_base_cmd.extend(['--dump-symbol-table', os.path.join(self.path, symbol_table_file)])
856 gen_base_cmd.extend(['--output', os.path.join(self.path, origin_output_abc)])
857 gen_base_cmd.extend([os.path.join(self.path, origin_input_file)])
866 patch_test_cmd.extend(['--input-symbol-table', os.path.join(self.path, symbol_table_file)])
867 patch_test_cmd.extend(['--output', os.path.join(self.path, modified_output_abc)])
868 patch_test_cmd.extend([os.path.join(self.path, modified_input_file)])
887 expected_path = os.path.join(self.path, 'expected.txt')
912 glob_expression = path.join(self.test_directory, "*")
920 os.remove(os.path.join(test, file))
923 return os.path.basename(src)
929 self.test_directory = path.join(self.test_root, "hotfix", "hotfix-throwerror")
937 self.test_directory = path.join(self.test_root, "hotreload")
952 cmd.extend([os.path.join(self.path, input_file_name)])
954 input_file = os.path.join(self.path, "input.txt")
977 expected_path = os.path.join(self.path, 'expected.txt')
995 self.test_directory = path.join(self.test_root, "base64")
1000 self.tests.append(Base64Test(os.path.join(self.test_directory, "inputFile"), "file"))
1001 self.tests.append(Base64Test(os.path.join(self.test_directory, "inputString"), "string"))
1004 return os.path.basename(src)