/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/ |
H A D | test_parameters.py | 39 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 D | exceptions.py | 19 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 D | file_structure.py | 62 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 D | filesystem.cpp | 47 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 D | filesystem.h | 38 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 D | stdlib_templates_generator.py | 79 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 D | terminate.cpp | 28 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 D | aspt_converter.cpp | 63 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 D | run_ts_test262.py | 74 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 D | template.py | 67 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 D | run_testTs.py | 50 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 D | shell.py | 132 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 D | run_micro_benchmarks.py | 237 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 D | rich_logging.py | 313 def create_directory_of_file(filepath: Path) -> None: 315 if not filepath.parent.is_dir(): 316 filepath.parent.mkdir(parents=True, exist_ok=True)
|