/arkcompiler/ets_frontend/test262/ |
H A D | config.py | 30 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") 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") 49 TEST_OTHERTESTS_DIR = os.path.join(DATA_DI [all...] |
H A D | run_test262.py | 188 ark_frontend_binary = os.path.join(ARK_FRONTEND_BINARY_LIST[0]) 190 ark_frontend_binary = os.path.join(args.ark_frontend_binary) 192 ts2abc_build_dir = os.path.join(os.path.dirname( 195 if not os.path.exists(os.path.join(ts2abc_build_dir, "package.json")) and \ 196 not os.path.exists(os.path.join(ts2abc_build_dir, "..", "package.json")): 199 if os.path.exists(os.path.join(ts2abc_build_dir, "..", "package.json")) and \ 200 not os.path.exists(os.path.join(ts2abc_build_dir, "package.json")): 201 ts2abc_build_dir = os.path.join(ts2abc_build_dir, "..") 203 deps_dir = os.path.join(ts2abc_build_dir, "deps") 206 shutil.copyfile(OHOS_TYPESCRIPT_TGZ_PATH, os.path.join(deps_di [all...] |
/arkcompiler/ets_frontend/testTs/ |
H A D | config.py | 28 EXPECT_DIR = os.path.join("testTs", "expect")
29 OUT_DIR = os.path.join("out")
30 OUT_TEST_DIR = os.path.join("out", "testTs")
31 OUT_RESULT_FILE = os.path.join("out", "testTs", "result.txt")
32 TEST_DIR = os.path.join("testTs")
33 TS_CASES_DIR = os.path.join(".", "testTs", "test")
34 SKIP_FILE_PATH = os.path.join("testTs", "skip_tests.json")
36 IMPORT_FILE_PATH = os.path.join(CUR_FILE_DIR, "import_tests.json")
37 CODE_ROOT = os.path.abspath(os.path.join(CUR_FILE_DIR, "../../.."))
45 DEFAULT_ARK_FRONTEND_TOOL = os.path.join(ARK_DI [all...] |
H A D | utils.py | 82 ark_frontend_tool = os.path.join(DEFAULT_ARK_FRONTEND_TOOL)
84 ark_frontend_tool = os.path.join(args.ark_frontend_tool)
86 ts2abc_build_dir = os.path.join(os.path.dirname(os.path.realpath(ark_frontend_tool)), "..")
87 if os.path.exists(os.path.join(ts2abc_build_dir, "package.json")):
89 elif os.path.exists(os.path.join(ts2abc_build_dir, "..", "package.json")):
90 npm_install(os.path.join(ts2abc_build_dir, ".."))
|
/arkcompiler/ets_frontend/test/scripts/performance_test/ |
H A D | performance_config.py | 33 self.cmd_prefix = os.path.join(self.deveco_path, 'tools', 'hvigor', 'bin', 'hvigorw.js') 34 self.node_js_path = os.path.join(self.deveco_path, 'tools', 'node', 'node.exe') 35 self.jbr_path = os.path.join(self.deveco_path, 'jbr') 168 mail_data_path = os.path.join( 173 html_file_path = os.path.join( 178 attach_path = os.path.join( 186 LogType.FULL: os.path.join(mail_data_path, 'debug_full_time.csv'), 187 LogType.INCREMENTAL: os.path.join(mail_data_path, 'debug_incremental_time.csv'), 188 LogType.PREVIEW: os.path.join(mail_data_path, 'debug_preview_model_build_time.csv'), 189 LogType.SIZE: os.path.join(mail_data_pat [all...] |
/arkcompiler/ets_frontend/test/scripts/sdk_test/ |
H A D | preparation.py | 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') 45 os.environ['PATH'] = os.pathsep.join( [all...] |
H A D | execution.py | 73 modify_file = os.path.join(task.path, *task.inc_modify_file) 100 modify_file = os.path.join(task.path, *task.inc_modify_file) 239 oh_package_json_path = os.path.join(task.path, *task.hap_module_path, 'oh-package.json5') 276 output_file_name = '-'.join(output_file_name_items) 277 new_module_name_output_file = os.path.join( 297 abc_path = os.path.join(uncompressed_output_file, 'ets') 298 modules_abc_path = os.path.join(abc_path, 'modules.abc') 340 cache_path = os.path.join( 345 cache_path = os.path.join( 381 modify_file = os.path.join(tas [all...] |
/arkcompiler/ets_runtime/test/regresstest/ |
H A D | regress_test_config.py | 29 CODE_ROOT = os.path.abspath(os.path.join(TEST_TOOL_FILE_DIR, "../../../..")) 30 PROJECT_ROOT = os.path.abspath(os.path.join(TEST_TOOL_FILE_DIR, "../..")) 36 PROJECT_BASE_OUT_DIR = os.path.join(PROJECT_ROOT, "out") 37 REGRESS_BASE_TEST_DIR = os.path.join(PROJECT_ROOT, "test", "regresstest") 38 REGRESS_TEST_CASE_DIR = os.path.join(REGRESS_BASE_TEST_DIR, REGRESS_GIT_REPO) 39 REGRESS_TEST_TOOL_DIR = os.path.join(REGRESS_TEST_CASE_DIR, TEST_TOOL_FILE_JS_NAME) 40 SKIP_LIST_FILE = os.path.join(REGRESS_BASE_TEST_DIR, "regresstest_skip_tests.json") 41 REGRESS_TEST_OPTIONS = os.path.join(REGRESS_BASE_TEST_DIR, "regress_options.json")
|
/arkcompiler/ets_runtime/test/moduletest/arrayjoin/ |
H A D | arrayjoin.js | 18 * @tc.desc:test Array.join 22 var a = new Array(1).join(" "); 24 var str1 = JSON.stringify(Array(3).join("0")); 26 var str2 = JSON.stringify(new Array(3).join("0")); 30 var str3 = JSON.stringify(arr.join("0")); 69 Array.prototype.join.call(aa,bb) 75 Object.getOwnPropertyDescriptors(Array(1e9).join('c')) 80 ([11])["join"]('쏄'); 96 print(v5.join(String.fromCodePoint(0))); 101 print(v6.join(Strin [all...] |
/arkcompiler/ets_frontend/es2panda/test/benchmark/ |
H A D | config.py | 22 DEFAULT_ES2ABC_TOOL = os.path.join(CUR_FILE_DIR, 'es2abc') 23 REPORT_DIR = os.path.join(CUR_FILE_DIR, 'output') 25 DEFAULT_OUTPUT_DIR = os.path.join(CUR_FILE_DIR, 'es2abc_output') 26 HERMES_CODE_PATH = os.path.join(CUR_FILE_DIR, 'hermes_workingdir') 27 DEFAULT_HERMES_PATH = os.path.join(HERMES_CODE_PATH, 'build', "bin", 'hermes') 28 HERMES_BUILD_PATH = os.path.join(HERMES_CODE_PATH, "build") 29 HERMES_BUILD_LOG_PATH = os.path.join(HERMES_CODE_PATH, "build.log") 30 HERMES_CLONE_PATH = os.path.join(HERMES_CODE_PATH, "hermes")
|
/arkcompiler/ets_frontend/test/scripts/utils/commit_message/ |
H A D | result.py | 30 table_rows = ''.join([table_rows, f"<tr><td rowspan='{len(items)}'>{project}</td>"]) 32 table_rows = ''.join([table_rows, "<tr>"]) 35 table_rows = ''.join([table_rows, f"<td colspan=4 style='color: #FF9671;'>{item['title']}</td>"]) 37 table_rows = ''.join([table_rows, f"<td>{item['title']}</td>"]) 38 table_rows = ''.join([table_rows, f"<td>{item['committer']}</td>"]) 39 table_rows = ''.join([table_rows, f"<td>{item['commit_time_str']}</td>"]) 40 table_rows = ''.join([table_rows, f"<td><a href='https://gitee.com/{item['pr_link']}'>点击查看</a></td></tr>\n"]) 137 data_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data.txt') 153 commit_log_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'commit_log.html')
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/test/multiple_config_test/ |
H A D | multiple_config_test.py | 48 [os.path.join(self.current_folder, "config-1.yaml")] 79 os.path.join(self.current_folder, "config-1.yaml"), 80 os.path.join(self.current_folder, "config-2.yaml") 116 os.path.join(self.current_folder, "config-1.yaml"), 117 os.path.join(self.current_folder, "config-3.yaml") 151 os.path.join(self.current_folder, "config-3.yaml"), 152 os.path.join(self.current_folder, "config-1.yaml"), 186 os.path.join(self.current_folder, "config-1.yaml"), 187 os.path.join(self.current_folder, "config-4.yaml") 222 os.path.join(sel [all...] |
/arkcompiler/runtime_core/disassembler/tests/ |
H A D | gen_pa_file.py | 67 cmd_string = " ".join(cmd_args) 105 return os.path.join(root, f) 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) 178 frontend_binary = os.path.join(args.build_dir, 'es2abc') 183 tc_file = os.path.join(tc_dir, testcase) 184 out_file = os.path.join(out_dir, tc_name_pre + '.abc') 196 out_dependency_abc_dir = os.path.join(args.output_dir, 'disassember_tests', 'dynamic-import') 198 out_dependency_abc_dir = os.path.join(arg [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | futex_test.cpp | 130 thr.join(); in TEST() 148 thr.join(); in TEST() 163 thr.join(); in TEST() 164 thr2.join(); in TEST() 165 thr3.join(); in TEST() 166 thr4.join(); in TEST() 167 thr5.join(); in TEST() 188 thr.join(); in TEST() 216 thr.join(); in TEST() 230 thr.join(); in TEST() [all...] |
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/ |
H A D | size_compare.py | 133 args.d8_path = os.path.join(d8_path, D8_EXECUTABLE_PROGRAM_PATH) 143 args.r8_path = os.path.join(r8_path, R8_EXECUTABLE_PROGRAM_PATH) 144 args.rt_path = os.path.join(r8_path, RT_JAR_PATH) 158 report_path = os.path.join(TEST_ROOT, SIZE_COMPARISON_REPORT) 162 HTML_CONTENT = ''.join([HTML_CONTENT, f""" 180 HTML_CONTENT = ''.join([HTML_CONTENT, "</table></body></html>"]) 212 dir_path = os.path.join(TEST_ROOT, dir_name) 235 case_path = os.path.join(TEST_ROOT, case_path) 242 directory = os.path.join(TEST_ROOT, directory) 243 glob_expression = os.path.join(o [all...] |
/arkcompiler/ets_frontend/ets2panda/public/headers_parser/ |
H A D | runtime_collections.py | 37 "log_file": os.path.join(LIB_GEN_FOLDER, "./gen/logs/unreachable.txt"), 41 "log_file": os.path.join(LIB_GEN_FOLDER, "./gen/logs/skip.txt"), 45 "log_file": os.path.join(LIB_GEN_FOLDER, "./gen/logs/generated_yamls.txt"), 52 "yaml_file": os.path.join(LIB_GEN_FOLDER, "./gen/headers/allEnums.yaml"), 56 "yaml_file": os.path.join(LIB_GEN_FOLDER, "./gen/headers/pathsToHeaders.yaml"), 76 headers_path = os.path.join(LIB_GEN_FOLDER, "./gen/headers") 91 logs_path = os.path.join(LIB_GEN_FOLDER, "./gen/logs")
|
/arkcompiler/toolchain/test/autotest/aw/ |
H A D | utils.py | 74 logging.info('Mount finish: ' + ' '.join(mount_cmd)) 82 logging.info(' '.join(cmd)) 92 logging.info(' '.join(cmd)) 104 logging.info(' '.join(cmd)) 110 logging.info(' '.join(cmd)) 115 logging.info(' '.join(cmd)) 120 logging.info(' '.join(cmd)) 125 logging.info(' '.join(cmd)) 130 logging.info(' '.join(cmd)) 135 logging.info(' '.join(cm [all...] |
/arkcompiler/toolchain/build/prebuilts_download/ |
H A D | prebuilts_download.py | 59 check_sha256_cmd = ''.join(['curl -s -k ', check_url, '.sha256']) 60 local_sha256_cmd = ''.join(['sha256sum ', local_file, "|cut -d ' ' -f1"]) 66 check_sha256_cmd = ''.join(['curl -s -k ', check_url, '.sha256']) 68 mark_file_dir = os.path.join(code_dir, unzip_dir) 69 mark_file_name = ''.join([check_sha256, '.', unzip_filename, '.mark']) 70 mark_file_path = os.path.join(mark_file_dir, mark_file_name) 76 huaweicloud_url = ''.join([tool_repo, config.get('file_path')]) 78 md5_huaweicloud_url_cmd = ''.join(['echo ', huaweicloud_url, "|md5sum|cut -d ' ' -f1"]) 84 dest_dir = os.path.join(code_dir, unzip_dir) 145 abs_unzip_dir = os.path.join(code_di [all...] |
/arkcompiler/ets_frontend/es2panda/scripts/ |
H A D | ts2abc.js | 31 if (fs.existsSync(path.join(arkDir, 'build-win'))) { 33 } else if (fs.existsSync(path.join(arkDir, 'build-mac'))) { 35 } else if (!fs.existsSync(path.join(arkDir, 'build'))) { 40 es2abc = path.join(arkDir, 'build-win', 'bin', 'es2abc.exe'); 42 es2abc = path.join(arkDir, 'build-mac', 'bin', 'es2abc'); 44 es2abc = path.join(arkDir, 'build', 'bin', 'es2abc');
|
/arkcompiler/runtime_core/verifier/tests/ |
H A D | verify_es2panda_test_abc.py | 41 yield os.path.join(root, file) 49 dest_path = os.path.join(dest_dir, os.path.basename(file_path)) 54 temp_files_dir = os.path.join(script_dir, "temp_files") 55 temp_js_ts_dir = os.path.join(temp_files_dir, "temp_js_ts") 56 temp_abc_dir = os.path.join(temp_files_dir, "temp_abc") 70 abc_output_path = os.path.join(temp_abc_dir, abc_filename) 78 verifier_command = [os.path.join(verifier_dir, "ark_verifier"), "--input_file", abc_output_path] 112 js_ts_dir = args.js_ts_dir if args.js_ts_dir else os.path.join(script_dir, "../../../ets_frontend/es2panda/test/") 121 es2abc_path = os.path.join(args.es2abc_dir, "es2abc")
|
H A D | verify_sys_hap_abc.py | 41 destination_path = os.path.join(out_folder, file_path.replace(".hap", ".zip")) 42 shutil.copy(os.path.join(hap_folder, file_path), destination_path) 90 abc_path = os.path.join(root, file) 113 zip_path = os.path.join(hap_folder, file) 114 extract_folder = os.path.join(hap_folder, file.replace(".zip", "")) 118 ets_path = os.path.join(extract_folder, "ets") 122 modules_abc_path = os.path.join(ets_path, "modules.abc") 177 ark_verifier_path = os.path.abspath(os.path.join(args.verifier_dir, "ark_verifier")) 180 out_folder = os.path.join(script_dir, "out") 197 report_file = os.path.join(script_di [all...] |
/arkcompiler/ets_runtime/tools/ap_file_viewer/ |
H A D | webpack.config.js | 68 const outPath = path.normalize(path.join(__dirname, '/', 'dist')); 71 let pa = path.join(__dirname, value); 74 distPath = path.join(outPath, value.substring(4, value.length + 1)); 76 distPath = path.join(outPath, value.substring(7, value.length + 1)); 81 let filePath = path.join(__dirname, value); 84 distFile = path.join(outPath, value.substring(4, value.length + 1)); 86 distFile = path.join(outPath, value.substring(7, value.length + 1));
|
/arkcompiler/runtime_core/static_core/scripts/cmake-checker/ |
H A D | cmake_checker.py | 46 ignore_files = [os.path.join(directory, s) for s in ignore_files] 59 if root.startswith(os.path.join(directory, white_path)): 64 if root.startswith(os.path.join(directory, ignore_path)) or "third_party" in root: 73 if file == "CMakeLists.txt" or file.endswith(".cmake") and os.path.join(root, file) not in ignore_files: 74 cmake_files.append(os.path.join(root, file)) 100 source_file = os.path.join(directory, "CMakeLists.txt") 103 temp_file = os.path.join(temp_dir, "CMakeLists.txt")
|
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/ |
H A D | run_javar8.py | 82 case_path = os.path.join(self.test_root, case_path) 89 directory = os.path.join(self.test_root, directory) 90 glob_expression = os.path.join(os.path.abspath(directory), "**/*%s" % (extension)) 96 dex_size_data = os.path.join(self.test_root, DEX_SIZE_DATA) 97 source_size_data = os.path.join(self.test_root, SOURCE_SIZE_DATA) 110 javac_path = '/'.join([java_bin_path, 'javac']) 111 jar_path = '/'.join([java_bin_path, 'jar']) 112 java_path = '/'.join([java_bin_path, 'java']) 118 jar_name = ''.join([child_path, '/', case_name, '.jar']) 132 dex_file = os.path.join(child_pat [all...] |
/arkcompiler/ets_runtime/test/jsperftest/ |
H A D | run_js_test.py | 58 TMP_PATH = os.path.join(os.getcwd(), "tmp")
105 main_key = '/'.join([elements[0], elements[1] + '.js', elements[2]]).lower()
183 js_case_name = '/'.join([class_name, api_name])
208 jis_case_file_name_with_class = Constants.JS_FILE_SUPER_LINK_DICT['/'.join([class_name, api_name])]
209 js_file_super_link = '/'.join([Constants.HYPERLINK_HEAD, jis_case_file_name_with_class])
243 run_cmd += " " + os.path.join(Constants.DEVICE_WORKDIR, "ark_js_vm")
244 run_cmd += " --stub-file " + os.path.join(Constants.DEVICE_WORKDIR, "lib", "stub.an")
245 run_cmd += " --icu-data-path " + os.path.join(Constants.DEVICE_WORKDIR, "data")
262 fangzhou_test_path = os.path.join(Constants.TMP_PATH, "fangzhou_test") # for abc file
266 class_folder_path = os.path.join(fangzhou_test_pat [all...] |