Home
last modified time | relevance | path

Searched refs:filepath (Results 1 - 14 of 14) sorted by relevance

/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/
H A Dtest_parameters.py39 for filename, filepath in iter_files(dirpath, allowed_ext=YAML_EXTENSIONS):
42 raise InvalidFileFormatException(message="Lists of parameters must start with 'list.'", filepath=filepath)
44 params: List[Dict[str, Any]] = parse_yaml(filepath)
46 raise InvalidFileFormatException(message="Parameters list must be YAML array", filepath=filepath)
61 filepath=path) from common_exp
H A Dexceptions.py19 def __init__(self, filepath: str, message: str) -> None:
20 super().__init__(f"{filepath}: {message}")
21 self.message = f"{filepath}: {message}"
25 def __init__(self, filepath: str, message: str) -> None:
26 msg = f"{filepath}: {message}"
32 def __init__(self, filepath: str, exception: Exception) -> None:
33 super().__init__(f"{filepath}: {str(exception)}")
34 self.filepath = filepath
H A Dfile_structure.py62 filepath: Path = self.path / filename
63 if allowed_ext and filepath.suffix not in allowed_ext:
65 yield filepath
/arkcompiler/runtime_core/static_core/libpandabase/os/
H A Dfilesystem.cpp47 bool IsFileExists(const std::string &filepath) in IsFileExists() argument
49 std::ifstream openedFile(filepath); in IsFileExists()
53 std::string GetParentDir(const std::string &filepath) in GetParentDir() argument
55 size_t found = filepath.find_last_of("/\\"); in GetParentDir()
59 return filepath.substr(0, found); in GetParentDir()
71 std::string RemoveExtension(const std::string &filepath) in RemoveExtension() argument
73 auto pos = filepath.find_last_of('.'); in RemoveExtension()
75 return filepath.substr(0, pos); in RemoveExtension()
77 return filepath; in RemoveExtension()
H A Dfilesystem.h38 PANDA_PUBLIC_API bool IsFileExists(const std::string &filepath);
40 PANDA_PUBLIC_API std::string GetParentDir(const std::string &filepath);
44 PANDA_PUBLIC_API std::string RemoveExtension(const std::string &filepath);
46 PANDA_PUBLIC_API std::string NormalizePath(const std::string &filepath);
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/stdlib_templates/
H A Dstdlib_templates_generator.py79 def __render_template(self, filepath: str, params: Any = None) -> str:
86 template = self.__jinja_env.get_template(filepath.replace(os.path.sep, '/'))
91 raise InvalidFileFormatException(message=message, filepath=filepath) from inv_format_exp
93 message = f"UnknownTemplateException by filepath {filepath}.\n{common_exp}"
95 raise UnknownTemplateException(filepath=filepath, exception=common_exp) from common_exp
97 def __split_into_tests(self, text: str, filepath: str) -> Dict[str, str]:
100 'filepath' i
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dterminate.cpp28 auto filepath = std::string(file); in Terminate() local
48 if (filepath.find(lib) != std::string::npos) { in Terminate()
/arkcompiler/runtime_core/static_core/tools/sampler/
H A Daspt_converter.cpp63 std::string filepath = mdl.pathname; in BuildModulesMap() local
66 SubstituteDirectories(&filepath); in BuildModulesMap()
69 if (!ark::os::IsFileExists(filepath)) { in BuildModulesMap()
70 LOG(ERROR, PROFILER) << "Module not found, path: " << filepath; in BuildModulesMap()
74 auto pfUnique = panda_file::OpenPandaFileOrZip(filepath.c_str()); in BuildModulesMap()
/arkcompiler/ets_runtime/test/
H A Drun_ts_test262.py74 def get_node_cmd(filepath):
75 cmd = ['ts-node', filepath]
88 def get_es2abc_cmd(filepath):
89 abc_file_path = ("%s.abc" % (os.path.splitext(filepath)[0]))
92 cmd.extend(['--module', '--merge-abc', '--extension=ts', '--output', abc_file_path, filepath])
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/
H A Dtemplate.py67 filepath=self.test_path) from exc
69 raise UnknownTemplateException(filepath=self.test_path, exception=exc) from exc
110 filepath=self.test_path) from exc
/arkcompiler/ets_frontend/testTs/
H A Drun_testTs.py50 def skip(filepath, flag=False):
57 if os.path.isfile(filepath):
58 if filepath.endswith('.ts'):
59 if filepath not in skip_test_list:
64 f'This file is outside the scope of validation : {filepath}\n')
68 def abc_judge(filepath):
69 if not os.path.getsize(filepath):
70 print(f'Error : {filepath}.The file is empty')
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
H A Dshell.py132 def get_filesize(self, filepath: Union[str, Path]) -> int:
133 if os.path.exists(str(filepath)):
134 return os.stat(str(filepath)).st_size
267 def get_filesize(self, filepath: Union[str, Path]) -> int:
268 res = self.run(f"stat -c '%s' {filepath}")
/arkcompiler/runtime_core/static_core/plugins/ets/tests/scripts/micro-benchmarks/
H A Drun_micro_benchmarks.py237 for filepath in filepathes:
238 if Path(filepath).suffix != ".pa":
240 self.run_separate_bench(filepath, stats)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
H A Drich_logging.py313 def create_directory_of_file(filepath: Path) -> None:
315 if not filepath.parent.is_dir():
316 filepath.parent.mkdir(parents=True, exist_ok=True)

Completed in 7 milliseconds