Home
last modified time | relevance | path

Searched refs:Path (Results 1 - 25 of 73) sorted by relevance

123

/arkcompiler/ets_frontend/ets2panda/util/
H A Dpath.cpp23 Path::Path() = default;
25 Path::Path(const util::StringView &absolutePath, ArenaAllocator *allocator) in Path() function in ark::es2panda::util::Path
30 void Path::Initializer(const std::string &path, ArenaAllocator *allocator) in Initializer()
47 void Path::InitializeFileName() in InitializeFileName()
64 void Path::InitializeFileExtension() in InitializeFileExtension()
76 void Path::InitializeAbsoluteParentFolder() in InitializeAbsoluteParentFolder()
89 void Path::InitializeParentFolder() in InitializeParentFolder()
100 void Path
111 Path::Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *allocator) Path() function in ark::es2panda::util::Path
117 Path::Path(const std::string &absolutePath, ArenaAllocator *allocator) Path() function in ark::es2panda::util::Path
122 Path::Path(const std::string &relativePath, const std::string &basePath, ArenaAllocator *allocator) Path() function in ark::es2panda::util::Path
[all...]
H A Dpath.h31 class Path { class
33 Path();
34 Path(const std::string &absolutePath, ArenaAllocator *allocator);
35 Path(const std::string &relativePath, const std::string &basePath, ArenaAllocator *allocator);
36 Path(const util::StringView &absolutePath, ArenaAllocator *allocator);
37 Path(const util::StringView &relativePath, const util::StringView &basePath, ArenaAllocator *allocator);
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
H A Dets_test_dir.py19 from pathlib import Path namespace
25 self.__static_core_root = Path(static_core_root)
29 def tests(self) -> Path:
33 def ets_templates(self) -> Path:
37 def ets_func_tests(self) -> Path:
41 def stdlib_templates(self) -> Path:
45 def gc_stress(self) -> Path:
49 def ets_es_checked(self) -> Path:
53 def sts_ts_subset(self) -> Path:
57 def root(self) -> Path
[all...]
H A Druntime_default_ets_test_dir.py19 from pathlib import Path namespace
27 self.__static_core_root = Path(static_core_root)
31 def root(self) -> Path:
32 return Path(self.__root) if self.__root else self.runtime_ets
35 def es2panda_test(self) -> Path:
42 def runtime_ets(self) -> Path:
46 def list_root(self) -> Path:
H A Dpreparation_step.py28 from pathlib import Path namespace
47 def __init__(self, test_source_path: Path, test_gen_path: Path, config: Config) -> None:
53 def test_source_path(self) -> Path:
57 def test_gen_path(self) -> Path:
75 def __init__(self, test_source_path: Path, test_gen_path: Path, config: Config, extension: str) -> None:
119 def generate_template_tests(template_root_path: Path, test_gen_path: Path) -> List[str]:
145 generator_root = Path(sel
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/code_coverage/
H A Dcoverage_dir.py19 from pathlib import Path namespace
24 def __init__(self, general: GeneralOptions, work_dir: Path):
29 def html_report_dir(self) -> Path:
31 html_out_path = Path(self.__general.coverage.llvm_cov_html_out_path)
38 def info_file(self) -> Path:
42 def profdata_files_list_file(self) -> Path:
46 def profdata_merged_file(self) -> Path:
50 def root(self) -> Path:
56 def profdata_dir(self) -> Path:
58 profdata_out_path = Path(sel
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/
H A Dwork_dir.py19 from pathlib import Path namespace
25 def __init__(self, general: GeneralOptions, default_work_dir: Path):
30 def report(self) -> Path:
34 def gen(self) -> Path:
38 def intermediate(self) -> Path:
42 def root(self) -> Path:
43 root = Path(self.__general.work_dir) if self.__general.work_dir else self.__default_work_dir
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
H A Dcompiler.py21 from pathlib import Path namespace
51 app_path: Path = Path("bin", "es2panda")
52 arktsconfig: Path = Path("bin", "arktsconfig.json")
62 debugger_eval_panda_files: list[Path] | None = None
63 debugger_eval_source: Path | None = None
68 def arg_to_str(arg: bool | list[Path] | Any) -> str:
85 ets_expression: str | Path
86 eval_panda_files: list[Path] | Non
[all...]
H A Ddisassembler.py21 from pathlib import Path namespace
32 app_path: Path = Path("bin", "ark_disasm")
46 panda_file: Path,
47 output_file: Path,
48 cwd: Path = Path(),
75 def __init__(self, tmp_path: Path, ark_disassembler: Disassembler):
89 tmp_path: Path,
H A Drunnable_module.py19 from pathlib import Path namespace
39 def entry_abc(self) -> Path:
43 def boot_abc(self) -> list[Path]:
51 def __init__(self, source_file: Path, panda_file: Path, ast: dict[str, Any] | None = None) -> None:
57 self._disasm_file: Path | None = None
70 def disasm_file(self) -> Path:
76 def disasm_file(self, file: Path):
H A Dark_config.py19 from pathlib import Path namespace
48 ) -> Path:
50 Path to cmake ``build`` directory of panda.
52 return Path(get_config(request.config, "ark_build_path")).absolute()
57 ark_build_path: Path,
83 ark_build_path: Path,
108 ark_build_path: Path,
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
H A Dunit.py21 from pathlib import Path namespace
51 path: Union[str, Path],
52 src: Optional[Union[str, Path]] = None,
53 libs: Optional[Iterable[Union[str, Path]]] = None,
56 self.path: Path = Path(path)
57 self.__src: Optional[Path] = self.path.joinpath(src) if src else None
58 self.__libs: List[Path] = [
61 self.binaries: List[Path] = []
62 self.device_path: Optional[Path]
[all...]
H A Dshell.py23 from pathlib import Path namespace
123 src: Union[str, Path],
124 dst: Union[str, Path]) -> ShellResult:
128 src: Union[str, Path],
129 dst: Union[str, Path]) -> ShellResult:
132 def get_filesize(self, filepath: Union[str, Path]) -> int:
163 src: Union[str, Path],
164 dst: Union[str, Path]) -> ShellResult:
168 src: Union[str, Path],
169 dst: Union[str, Path])
[all...]
H A Dgenerate.py21 from pathlib import Path namespace
42 self.paths: List[Path] = args.paths
43 self.out_dir: Path = Path(args.outdir).joinpath('benches').resolve()
46 self.template_dirs: List[Path] = [
49 for p in (self.extra_plug_dir, Path(__file__).parent) if p]
55 def search_test_files_in_dir(d: Path,
56 root: Path,
70 def process_test_list(lst: Path, ext: Iterable[str] = ()) -> List[SrcPath]:
71 cwd = Path
[all...]
H A Dhelpers.py24 from pathlib import Path namespace
98 def read_list_file(list_file: Union[str, Path]) -> List[str]:
100 path = Path(list_file)
125 extra: Optional[Path] = None) -> Any:
135 py = Path(__file__).parent.resolve().joinpath(
147 extra: Optional[Path]) -> Dict[str, Any]:
231 def save(self, json_file: Union[Path, str]) -> None:
268 def create_file(path: Union[str, Path]):
275 def load_file(path: Union[str, Path]) -> str:
283 def force_link(link: Path, des
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/evaluate/
H A Dtest_ets_evaluate.py18 from pathlib import Path namespace
37 def replace_suffixes(ets_file_path: Path, new_suffixes: str):
43 def get_expression_path(ets_file_path: Path, lang_extension: str):
47 def get_expected_path(ets_file_path: Path, lang_extension: str):
54 tmp_path: Path
75 param(file, id=str(file.relative_to(Path(__file__).parent)))
76 for test_dir in (Path(__file__).parent / Path(__file__).stem).iterdir()
85 tmp_path: Path,
89 base_ets_file: Path,
[all...]
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/tools/
H A Des2panda.py21 from pathlib import Path namespace
36 def make_arktsconfig(configpath: Union[str, Path],
37 ark_root: Union[str, Path],
39 tpl_path = Path(__file__).parent.parent.parent.joinpath(
48 lib_name = Path(path).stem
49 is_compilable = Path(path).suffix == '.sts' or Path(path).is_dir()
73 self.default_arktsconfig = str(Path(self.panda_root).joinpath(
113 src: Path,
114 abc: Path,
[all...]
H A Dpaoc.py20 from pathlib import Path namespace
65 def panda_files(files: Iterable[Path]) -> str:
97 abc: Union[str, Path],
98 an: Union[str, Path],
104 def get_aot_stats(self, an: Union[str, Path],
105 local_dir: Union[str, Path]) -> Optional[AOTStats]:
108 csv = Path(f'{an}.dump.csv')
111 csv = Path(local_dir).joinpath(csv.name)
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
H A Dutils.py27 from pathlib import Path namespace
72 def generate(name: str, url: str, revision: str, generated_root: Path, *,
106 def copy(source_path: Union[Path, str], dest_path: Union[Path, str], remove_if_exist: bool = True) -> None:
117 def read_file(file_path: Union[Path, str]) -> str:
123 def write_2_file(file_path: Union[Path, str], content: str) -> None:
155 def iter_files(dirpath: Union[Path, str], allowed_ext: List[str]) -> Iterator[Tuple[str, str]]:
189 def pairwise(iterable: Iterable[Path]) -> Iterator[Tuple[Path, Path]]
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/
H A Dtest_case.py18 from pathlib import Path namespace
24 def is_negative(path: Path) -> bool:
28 def should_be_skipped(path: Path) -> bool:
32 def strip_template(path: Path) -> Tuple[str, int]:
H A Dfile_structure.py23 from pathlib import Path namespace
29 path: Path
35 def __init__(self, path: Path,
60 def iter_files(self, allowed_ext: Optional[List[str]] = None) -> Iterator[Path]:
62 filepath: Path = self.path / filename
82 def walk_test_subdirs(path: Path, parent: Optional[TestDirectory] = None) -> Iterator[TestDirectory]:
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/declgenparser/
H A Drunner_declgenparser.py20 from pathlib import Path namespace
39 static_core_root = Path(config.general.static_core_root)
44 es2panda_test = Path(config.general.static_core_root).parent.parent / 'ets_frontend' / 'ets2panda' / 'test'
63 def default_work_dir_root(self) -> Path:
64 return Path("/tmp") / "declgenparser"
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/
H A Dets_templates_generator.py21 from pathlib import Path namespace
33 def __init__(self, root_path: Path, gen_path: Path) -> None:
41 def dfs(self, path: Path, seen: Set) -> None:
68 def __generate_test(self, path: Path) -> None:
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/compiler_verification/
H A Dexpression_verifier.py20 from pathlib import Path namespace
37 path: Path,
44 def load(path: Path) -> dict[str, Any]:
66 path: Path,
75 def load(path: Path) -> ExpressionComparatorOptions:
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/
H A Drunner_astchecker.py20 from pathlib import Path namespace
38 symlink_es2panda_test = Path(config.general.static_core_root) / 'tools' / 'es2panda' / 'test'
42 es2panda_test = Path(config.general.static_core_root).parent.parent / 'ets_frontend' / 'ets2panda' / 'test'
85 def default_work_dir_root(self) -> Path:
86 return Path('/tmp') / 'astchecker'

Completed in 9 milliseconds

123