Home
last modified time | relevance | path

Searched full:path (Results 1 – 25 of 1425) sorted by relevance

12345678910>>...57

/arkcompiler/ets_frontend/ets2panda/bindings/test/testcases/
Dcases.json3 "expectedFilePath": "path/to/bindings/test/expected/getDefinitionAtPosition.json",
5 "path/to/bindings/test/testcases/getDefinitionAtPosition/getDefinitionAtPosition2.ets",
9 "path/to/bindings/test/testcases/getDefinitionAtPosition/getDefinitionAtPosition3.ets",
13 "path/to/bindings/test/testcases/getDefinitionAtPosition/getDefinitionAtPosition5.ets",
17 "path/to/bindings/test/testcases/getDefinitionAtPosition/getDefinitionAtPosition7.ets",
21 "path/to/bindings/test/testcases/getDefinitionAtPosition/getDefinitionAtPosition9.ets",
25 "path/to/bindings/test/testcases/getDefinitionAtPosition/getDefinitionAtPosition11.ets",
29 "path/to/bindings/test/testcases/getDefinitionAtPosition/getDefinitionAtPosition13.ets",
33 "path/to/bindings/test/testcases/getDefinitionAtPosition/getDefinitionAtPosition15.ets",
37 "path/to/bindings/test/testcases/getDefinitionAtPosition/getDefinitionAtPosition17.ets",
[all …]
/arkcompiler/ets_frontend/testTs/
Dutils.py34 def mk_dir(path): argument
35 if not os.path.exists(path):
36 os.makedirs(path)
39 def remove_dir(path): argument
40 if os.path.exists(path):
41 shutil.rmtree(path)
44 def remove_file(path): argument
45 if os.path.exists(path):
46 os.remove(path)
49 def clean_file(path): argument
[all …]
/arkcompiler/ets_frontend/legacy_bin/api8/
Dmanifest_tag.xml20 …<project name="ability_ability_lite" path="foundation/aafwk/aafwk_lite" revision="a68d6d7043d8455c…
21 …<project name="ability_ability_runtime" path="foundation/aafwk/standard" revision="2d1fae94bc520c9…
22 …<project name="accessibility" path="base/accessibility" revision="8b7e96589b672c590a65b9ec58241ec0…
23 …<project name="account_os_account" path="base/account/os_account" revision="3fd5f525cdcdaab2b92872…
24 …<project name="ai_engine" path="foundation/ai/engine" revision="ea2bf753964f265c2875d06e17b46544a9…
25 …<project name="applications_admin_provisioning" path="applications/standard/admin_provisioning" re…
26 …<project name="applications_call" path="applications/standard/call" revision="19077cc0474000320fe7…
27 …<project name="applications_camera" path="applications/standard/camera" revision="d14dd4df946144e7…
28 …<project name="applications_camera_sample_communication" path="applications/sample/camera/communic…
29 …<project name="applications_camera_screensaver_app" path="applications/sample/camera/screensaver" …
[all …]
/arkcompiler/ets_frontend/test262/
Dconfig.py30 DATA_DIR = os.path.join("test262", "data")
31 ESHOST_DIR = os.path.join("test262", "eshost")
32 HARNESS_DIR = os.path.join("test262", "harness")
34 BASE_OUT_DIR = os.path.join("out", "test262")
36 CUR_FILE_DIR = os.path.dirname(__file__)
37 CODE_ROOT = os.path.abspath(os.path.join(CUR_FILE_DIR, "../../.."))
45 TEST_FULL_DIR = os.path.join(DATA_DIR, "test")
46 TEST_ES5_DIR = os.path.join(DATA_DIR, "test_es51")
47 TEST_ES2015_DIR = os.path.join(DATA_DIR, "test_es2015")
48 TEST_ES2021_DIR = os.path.join(DATA_DIR, "test_es2021")
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/uri/
DUriTestConstructor.ets19 let uri = new uri.UriEntry("http://username:password@www.baidu.com:99/path/path?query#fagment");
22 assertEQ(uri.getSsp(), "//username:password@www.baidu.com:99/path/path?query");
26 assertEQ(uri.getPath(), "/path/path");
32 …let uri = new uri.UriEntry("http://username:password@[1080::8:800:200C:417A]:99/path/66path1?query…
35 assertEQ(uri.getSsp(), "//username:password@[1080::8:800:200C:417A]:99/path/66path1?query");
39 assertEQ(uri.getPath(), "/path/66path1");
45 let uri = new uri.UriEntry("http://username:password@[::]:88/path/path66?foooo#gaogao");
48 assertEQ(uri.getSsp(), "//username:password@[::]:88/path/path66?foooo");
52 assertEQ(uri.getPath(), "/path/path66");
58 …let uri = new uri.UriEntry("http://username:password@[1:0:0:1:2:1:2:1]:99/path/66path1?query#fagme…
[all …]
DUriTestConstructor2.ets114 let gaogao = new uri.URI('http://gg:gaogao@www.baidu.com:99/path/path?query#fagment');
117 assertEQ(gaogao.ssp, "//gg:gaogao@www.baidu.com:99/path/path?query");
121 assertEQ(gaogao.path, "/path/path");
127 …let gaogao = new uri.URI('http://gg:gaogao@[1080::8:800:200C:417A]:99/path/66path1?query#fagment');
130 assertEQ(gaogao.ssp, "//gg:gaogao@[1080::8:800:200C:417A]:99/path/66path1?query");
134 assertEQ(gaogao.path, "/path/66path1");
140 let gaogao = new uri.URI('http://gg:gaogao@[::]:88/path/path66?foooo#gaogao');
143 assertEQ(gaogao.ssp, "//gg:gaogao@[::]:88/path/path66?foooo");
147 assertEQ(gaogao.path, "/path/path66");
153 let gaogao = new uri.URI('http://gg:gaogao@[1:0:0:1:2:1:2:1]:99/path/66path1?query#fagment');
[all …]
/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DFileUtils.spec.ts20 import path from 'path';
27 let path = '/user/local/tester'; variable
28 assert.strictEqual(FileUtils.readFile(path), undefined);
32 let path = 'test/ut/utils/demo.txt'; variable
33 assert.strictEqual(FileUtils.readFile(path), 'hello world!');
38 let path = 'test/ut/utils/demo.json'; variable
39 let obj = FileUtils.readFileAsJson(path);
44 let path = 'test/utils/demo_not_found.json'; variable
45 let obj = FileUtils.readFileAsJson(path);
50 let path = 'test/utils/error_json.txt'; variable
[all …]
/arkcompiler/ets_frontend/ets2panda/bindings/test/
Dprepare.ps118 $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
21 if (-not (Test-Path -Path "$ScriptDir\ets" -PathType Container)) {
32 $OldPath = "path/to/bindings/test"
37 Write-Host "Restoring path '$ScriptDir' back to '$OldPath' in files..."
40 Write-Host "Replacing path '$OldPath' with '$ScriptDir' in files..."
48 if (-not (Test-Path -Path $directory -PathType Container)) { in Process-Directory()
55 $jsonFiles = Get-ChildItem -Path $directory -Filter "*.json" -File -Recurse in Process-Directory()
59 $content = Get-Content -Path $file.FullName -Raw in Process-Directory()
70 Set-Content -Path $file.FullName -Value $newContent -NoNewline in Process-Directory()
77 if (Test-Path -Path "$ScriptDir\..\ets2panda") {
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/
Dbuild_linter.py28 if not os.path.exists(os.path.dirname(dest_path)):
29 os.makedirs(os.path.dirname(dest_path), exist_ok=True)
98 src = os.path.join(options.source_path, 'panda-tslinter-{}.tgz'.format(options.version))
99 dest = os.path.join(options.output_path, 'panda-tslinter-{}.tgz'.format(options.version))
103 tar.extractall(path=options.output_path)
106 copy_files(os.path.join(options.output_path, 'package'), options.output_path)
107 run_cmd(['rm', '-rf', os.path.join(options.output_path, 'package')])
109 src = os.path.join(options.source_path, 'tsconfig.json')
110 dest = os.path.join(options.output_path, 'tsconfig.json')
128 matched_files.append(os.path.join(directory, filename))
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/extensions/generators/ets_cts/
Dets_templates_generator.py20 from pathlib import Path
31 def __init__(self, source: Path, target: Path, config: Config) -> None: argument
43 def __generate_test(self, path: Path) -> None: argument
44 test_full_name = os.path.relpath(path, self._source)
46 bench = Benchmark(path, output, test_full_name, self.extension, self.extension)
49 def __dfs(self, path: Path, seen: set) -> None: argument
50 if not path.exists() or path in seen:
52 seen.add(path)
54 if path.is_dir():
55 for i in sorted(path.iterdir()):
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/
Dets_templates_generator.py21 from pathlib import Path
33 def __init__(self, root_path: Path, gen_path: Path) -> None: argument
41 def dfs(self, path: Path, seen: Set) -> None: argument
42 if not path.exists() or path in seen:
44 seen.add(path)
46 if path.is_dir():
47 for i in sorted(path.iterdir()):
49 elif path.suffix == TEMPLATE_EXTENSION:
50 self.__generate_test(path)
51 elif path.suffix == TEMPLATE_EXTENSION_TS:
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/
Dfile_structure.py23 from pathlib import Path
29 path: Path
35 def __init__(self, path: Path, argument
41 self.path = path
44 self.name = str(path)
60 def iter_files(self, allowed_ext: Optional[List[str]] = None) -> Iterator[Path]:
61 for filename in os.listdir(str(self.path)):
62 filepath: Path = self.path / filename
79 return len(os.listdir(str(self.path))) == 0
82 def walk_test_subdirs(path: Path, parent: Optional[TestDirectory] = None) -> Iterator[TestDirectory… argument
[all …]
Dtest_case.py18 from pathlib import Path
24 def is_negative(path: Path) -> bool: argument
25 return path.name.startswith(NEGATIVE_PREFIX) or path.name.startswith(NEGATIVE_EXECUTION_PREFIX)
28 def should_be_skipped(path: Path) -> bool: argument
29 return path.name.startswith(SKIP_PREFIX)
32 def strip_template(path: Path) -> Tuple[str, int]: argument
33 stem = path.stem
34 i = path.stem.rfind("_")
/arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/sts_utils/
Dfile_structure.py24 from pathlib import Path
33 path: Path
39 def __init__(self, path: Path, *, argument
45 self.path = path
48 self.name = str(path)
64 def iter_files(self, allowed_ext: list[str] | None = None) -> Iterator[Path]:
65 for filename in os.listdir(str(self.path)):
66 filepath: Path = self.path / filename
83 return len(os.listdir(str(self.path))) == 0
86 def walk_test_subdirs(path: Path, parent: TestDirectory | None = None) -> Iterator[TestDirectory]: argument
[all …]
Dtest_case.py18 from pathlib import Path
23 def is_negative(path: Path) -> bool: argument
24 return path.name.startswith(NEGATIVE_PREFIX) or path.name.startswith(NEGATIVE_EXECUTION_PREFIX)
27 def should_be_skipped(path: Path) -> bool: argument
28 return path.name.startswith(SKIP_PREFIX)
31 def strip_template(path: Path) -> tuple[str, int]: argument
32 stem = path.stem
33 i = path.stem.rfind("_")
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
Dunit.py21 from pathlib import Path
51 path: Union[str, Path], argument
52 src: Optional[Union[str, Path]] = None, argument
53 libs: Optional[Iterable[Union[str, Path]]] = None, argument
56 self.path: Path = Path(path)
57 self.__src: Optional[Path] = self.path.joinpath(src) if src else None
58 self.__libs: List[Path] = [
59 self.path.joinpath(lib) for lib in libs] if libs else []
60 self.name: str = remove_prefix(self.path.name, UNIT_PREFIX)
62 self.__main_bin: Path = self.path.joinpath(f'{BENCH_PREFIX}{self.name}.abc')
[all …]
/arkcompiler/ets_frontend/test/scripts/sdk_test/
Dpreparation.py31 old_env_path = old_env['PATH']
34 java_home = os.path.join(deveco_path, 'jbr')
35 tool_home = os.path.join(deveco_path)
36 sdk_home = os.path.join(tool_home, 'sdk')
37 node_js_path = os.path.join(deveco_path, 'tools', 'node')
39 node_js_path = os.path.join(node_js_path, 'bin')
40 tool_home = os.path.join(tool_home, 'Contents ')
41 java_path = os.path.join(java_home, 'bin')
42 ohpm_path = os.path.join(tool_home, 'tools', 'ohpm', 'bin')
43 hvigor_path = os.path.join(tool_home, 'tools', 'hvigor', 'bin')
[all …]
/arkcompiler/ets_frontend/ets2panda/util/
Dpath.cpp19 #include "path.h"
27 Path::Path() = default;
29 Path::Path(const util::StringView &absolutePath, ArenaAllocator *allocator) in Path() function in ark::es2panda::util::Path
42 void Path::Initializer(const std::string &path, ArenaAllocator *allocator) in Initializer() argument
46 path_ = util::UString(path, allocator).View(); in Initializer()
60 void Path::InitializeFileName() in InitializeFileName()
83 void Path::InitializeFileNameWithExtension() in InitializeFileNameWithExtension()
93 void Path::InitializeFileExtension() in InitializeFileExtension()
112 void Path::InitializeAbsoluteParentFolder() in InitializeAbsoluteParentFolder()
123 void Path::InitializeParentFolder() in InitializeParentFolder()
[all …]
/arkcompiler/ets_frontend/ets2panda/bindings/
Dbuild_bindings.py52 copy_files(os.path.join(options.source_path, 'dist'),
53 os.path.join(options.output_path, 'dist'))
55 copy_files(os.path.join(options.source_path, 'node_modules', 'json5'),
56 os.path.join(options.output_path, 'node_modules', 'json5'))
58 copy_files(os.path.join(options.source_path, 'package.json'),
59 os.path.join(options.output_path, 'package.json'), True)
62 copy_files(os.path.join(options.root_out_dir, 'libts_bindings.dll'),
63 os.path.join(options.output_path, 'ts_bindings.node'), True)
64 copy_files(os.path.join(options.root_out_dir, 'libpublic.dll'),
65 os.path.join(options.output_path, 'public.node'), True)
[all …]
/arkcompiler/ets_frontend/es2panda/test/benchmark/
Dutils.py30 write_log_file(os.path.join(REPORT_DIR, LOG_FILE), log_str)
38 def traverse_dir(path): argument
40 for file in os.listdir(path):
41 file_path = os.path.join(path, file)
42 if os.path.isdir(file_path):
45 dir_name = os.path.dirname(file_path)
69 def clear_folder_shutil(path): argument
70 if os.path.exists(path):
71 shutil.rmtree(path)
72 os.mkdir(path)
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
Dets_test_dir.py19 from pathlib import Path
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 ets_func_tests_templates(self) -> Path:
49 def gc_stress(self) -> Path:
53 def ets_es_checked(self) -> Path:
57 def ets_ts_subset(self) -> Path:
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
Dutils.py26 from os import makedirs, path, remove
27 from pathlib import Path
44 archive_file = path.join(path.sep, 'tmp', f'{name}.zip')
57 if path.exists(target_path):
62 arch.extractall(path.dirname(target_path))
72 def generate(name: str, url: str, revision: str, generated_root: Path, *, argument
77 dest_path = path.join(generated_root, stamp_name)
79 stamp_file = path.join(dest_path, f'{stamp_name}.stamp')
81 if not force_download and path.exists(stamp_file):
84 temp_path = path.join(path.sep, 'tmp', name, f'{name}-{revision}')
[all …]
/arkcompiler/runtime_core/disassembler/tests/
Dgen_pa_file.py32 '--testcase-list', help='the file path of testcase list', required=True)
36 '--output-dir', help='the output path', required=True)
41 if os.path.isabs(out_dir) and not os.path.exists(out_dir):
105 return os.path.join(root, f)
118 if os.path.basename(tc_file) is not specifier:
154 merge_abc_binary = os.path.join(build_dir, 'merge_abc')
161 out_dependency_dir = os.path.join(output_dir, 'disassember_tests', 'module')
163 out_merged_dependency_proto_dir = os.path.join(out_dependency_dir, tc_name_pre)
164 if not os.path.exists(out_merged_dependency_proto_dir):
178 frontend_binary = os.path.join(args.build_dir, 'es2abc')
[all …]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/
Dsize_compare.py27 TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
91 if not os.path.isfile(arg):
93 return os.path.abspath(arg)
97 if not os.path.isdir(arg):
99 return os.path.abspath(arg)
112 parser.add_argument('--es2abc-path', dest='es2abc_path', type=lambda arg : is_file(parser, arg),
113 help='Path to the executable program es2abc', required=True)
114 …parser.add_argument('--java-bin-path', dest='java_bin_path', type=lambda arg : is_dir(parser, arg),
115 help='Path to java bin where exists java/jar/javac command, \
117 parser.add_argument('--d8-path', dest='d8_path', type=lambda arg : is_file(parser, arg),
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/suites/
Dtest_suite.py24 from os import path
25 from pathlib import Path
51 self._list_root = Path(test_env.config.test_suite.list_root)
58 self._explicit_file: Path | None = None
59 self._explicit_list: Path | None = None
64 self.ignored_tests: list[Path] = []
65 self.excluded_tests: list[Path] = []
68 def test_root(self) -> Path:
72 …def __load_list(test_root: Path, test_list_path: Path, prefixes: list[str]) -> tuple[list[Path], l… argument
73 result: list[Path] = []
[all …]

12345678910>>...57