Lines Matching full:args
139 def excuting_npm_install(args): argument
141 if args.ark_frontend:
142 ark_frontend = args.ark_frontend
148 if args.ark_frontend_binary:
149 ark_frontend_binary = os.path.join(args.ark_frontend_binary)
170 def init(args): argument
179 get_all_skip_tests(args)
180 excuting_npm_install(args)
183 def get_all_skip_tests(args): argument
185 if args.ark_frontend and args.ark_frontend == ARK_FRONTEND_LIST[1]:
224 def __init__(self, args): argument
225 self.args = args
262 if self.args.dir:
263 if TEST_ES5_DIR in self.args.dir:
264 self.args.es51 = True
265 elif TEST_ES2015_DIR in self.args.dir:
266 self.args.es2015 = "es2015"
267 elif TEST_INTL_DIR in self.args.dir:
268 self.args.intl = "intl"
269 elif TEST_ES2021_DIR in self.args.dir:
270 self.args.es2021 = "all"
271 elif TEST_ES2022_DIR in self.args.dir:
272 self.args.es2022 = "all"
273 elif TEST_ES2023_DIR in self.args.dir:
274 self.args.es2023 = "all"
276 if self.args.file:
277 if TEST_ES5_DIR in self.args.file:
278 self.args.es51 = True
279 elif TEST_ES2015_DIR in self.args.file:
280 self.args.es2015 = "es2015"
281 elif TEST_INTL_DIR in self.args.file:
282 self.args.intl = "intl"
283 elif TEST_ES2021_DIR in self.args.file:
284 self.args.es2021 = "all"
285 elif TEST_ES2022_DIR in self.args.file:
286 self.args.es2022 = "all"
287 elif TEST_ES2023_DIR in self.args.file:
288 self.args.es2023 = "all"
291 if self.args.es51:
293 elif self.args.es2015:
295 elif self.args.intl:
297 elif self.args.es2021:
299 elif self.args.es2022:
301 elif self.args.es2023:
303 elif self.args.ci_build:
309 if self.args.dir:
312 if self.args.es51:
313 self.args.dir = TEST_ES5_DIR
314 elif self.args.es2015:
315 self.args.dir = TEST_ES2015_DIR
316 elif self.args.intl:
317 self.args.dir = TEST_INTL_DIR
318 elif self.args.es2021:
319 self.args.dir = TEST_ES2021_DIR
320 elif self.args.es2022:
321 self.args.dir = TEST_ES2022_DIR
322 elif self.args.es2023:
323 self.args.dir = TEST_ES2023_DIR
324 elif self.args.ci_build:
325 self.args.dir = TEST_CI_DIR
327 self.args.dir = os.path.join(DATA_DIR, "test")
338 if self.args.es51:
340 elif self.args.es2015:
342 elif self.args.intl:
344 elif self.args.es2021:
346 elif self.args.es2022:
348 elif self.args.es2023:
350 elif self.args.ci_build:
362 if self.args.es51:
364 elif self.args.es2021 or self.args.es2022 or self.args.es2023:
383 if self.args.es2021 == "all":
392 if self.args.es2022 == "all":
403 if self.args.es2023 == "all":
415 if self.args.intl:
422 if self.args.es2015:
429 if self.args.es51:
432 elif self.args.es2015:
435 elif self.args.intl:
438 elif self.args.es2021:
441 elif self.args.es2022:
444 elif self.args.es2023:
447 elif self.args.ci_build:
460 if self.args.es51:
463 elif self.args.es2015:
466 elif self.args.intl:
469 elif self.args.es2021:
472 elif self.args.es2022:
475 elif self.args.es2023:
478 elif self.args.ci_build:
481 elif self.args.esnext:
486 if self.args.file:
487 mkdstdir(self.args.file, src_dir, self.out_dir)
490 files = collect_files(self.args.dir)
504 def run_test262_prepare(args): argument
505 init(args)
507 test_prepare = TestPrepare(args)
519 def run_test262_mode(args): argument
520 if args.mode:
521 return modetype_to_string(args.mode)
525 def get_execute_arg(args): argument
528 if args.file:
529 execute_args = args.file
531 execute_args = os.path.join(args.dir, "**", "*.js")
535 def get_host_path_type(args): argument
538 if args.engine:
539 host_path = args.engine
540 host_type = os.path.split(args.engine.strip())[1]
544 def get_timeout(args, threads): argument
546 if args.timeout:
547 timeout = args.timeout
551 def get_threads(args): argument
553 if args.threads:
554 threads = args.threads
558 def get_host_args(args, host_type): argument
572 if args.product_name:
573 product_name = args.product_name
584 if args.hostArgs:
585 host_args = args.hostArgs
587 if args.ark_tool:
588 ark_tool = args.ark_tool
590 if args.ark_aot_tool:
591 ark_aot_tool = args.ark_aot_tool
593 if args.libs_dir:
594 libs_dir = args.libs_dir
596 if args.ark_frontend:
597 ark_frontend = args.ark_frontend
599 if args.ark_frontend_binary:
600 ark_frontend_binary = args.ark_frontend_binary
602 if args.opt_level:
603 opt_level = args.opt_level
605 if args.es2abc_thread_count:
606 es2abc_thread_count = args.es2abc_thread_count
608 if args.merge_abc_binary:
609 merge_abc_binary = args.merge_abc_binary
611 if args.merge_abc_mode:
612 merge_abc_mode = args.merge_abc_mode
616 if args.ark_aot:
618 if args.run_pgo:
630 if args.ark_arch != ark_arch:
631 host_args += f"--ark-arch={args.ark_arch} "
632 host_args += f"--ark-arch-root={args.ark_arch_root} "
637 def run_test262_test(args): argument
638 execute_args = get_execute_arg(args)
639 host_path, host_type = get_host_path_type(args)
640 host_args = get_host_args(args, host_type)
641 threads = get_threads(args)
642 timeout = get_timeout(args, threads)
650 test_cmd.append(f"--mode={run_test262_mode(args)}")
661 if args.babel:
672 def main(args): argument
675 run_test262_prepare(args)
676 check = Check(True, run_test262_test, args)