Lines Matching full:args
151 args = parser.parse_args()
152 if args.abc2program and (args.run_pgo or args.ark_aot):
154 return args
170 def excuting_npm_install(args): argument
172 if args.ark_frontend:
173 ark_frontend = args.ark_frontend
179 if args.ark_frontend_binary:
180 ark_frontend_binary = os.path.join(args.ark_frontend_binary)
201 def init(args): argument
210 get_all_skip_tests(args)
211 excuting_npm_install(args)
214 def get_all_skip_tests(args): argument
216 if args.ark_frontend and args.ark_frontend == ARK_FRONTEND_LIST[1]:
255 def __init__(self, args): argument
256 self.args = args
262 if self.args.run_jit:
269 if self.args.enable_rm and self.args.run_jit and not os.path.isfile(TEST262_JIT_LABEL):
290 if self.args.run_jit:
305 if self.args.dir:
306 if TEST_ES5_DIR in self.args.dir:
307 self.args.es51 = True
308 elif TEST_ES2015_DIR in self.args.dir:
309 self.args.es2015 = "es2015"
310 elif TEST_INTL_DIR in self.args.dir:
311 self.args.intl = "intl"
312 elif TEST_ES2021_DIR in self.args.dir:
313 self.args.es2021 = "all"
314 elif TEST_ES2022_DIR in self.args.dir:
315 self.args.es2022 = "all"
316 elif TEST_ES2023_DIR in self.args.dir:
317 self.args.es2023 = "all"
318 elif TEST_OTHERTESTS_DIR in self.args.dir:
319 self.args.other = "other"
321 if self.args.file:
322 if TEST_ES5_DIR in self.args.file:
323 self.args.es51 = True
324 elif TEST_ES2015_DIR in self.args.file:
325 self.args.es2015 = "es2015"
326 elif TEST_INTL_DIR in self.args.file:
327 self.args.intl = "intl"
328 elif TEST_ES2021_DIR in self.args.file:
329 self.args.es2021 = "all"
330 elif TEST_ES2022_DIR in self.args.file:
331 self.args.es2022 = "all"
332 elif TEST_ES2023_DIR in self.args.file:
333 self.args.es2023 = "all"
334 elif TEST_OTHERTESTS_DIR in self.args.dir:
335 self.args.other = "other"
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:
352 elif self.args.other:
358 if self.args.dir:
361 if self.args.es51:
362 self.args.dir = TEST_ES5_DIR
363 elif self.args.es2015:
364 self.args.dir = TEST_ES2015_DIR
365 elif self.args.intl:
366 self.args.dir = TEST_INTL_DIR
367 elif self.args.es2021:
368 self.args.dir = TEST_ES2021_DIR
369 elif self.args.es2022:
370 self.args.dir = TEST_ES2022_DIR
371 elif self.args.es2023:
372 self.args.dir = TEST_ES2023_DIR
373 elif self.args.other:
374 self.args.dir = TEST_OTHERTESTS_DIR
375 elif self.args.ci_build:
376 self.args.dir = TEST_CI_DIR
378 self.args.dir = os.path.join(DATA_DIR, "test")
389 if self.args.es51:
391 elif self.args.es2015:
393 elif self.args.intl:
395 elif self.args.es2021:
397 elif self.args.es2022:
399 elif self.args.es2023:
401 elif self.args.other:
403 elif self.args.ci_build:
415 if self.args.es51:
417 elif self.args.es2021 or self.args.es2022 or self.args.es2023:
436 if self.args.es2021 == "all":
440 if self.args.es2021 == "other":
450 if self.args.es2022 == "all":
456 if self.args.es2022 == "other":
468 if self.args.es2023 == "all":
475 if self.args.es2023 == "other":
488 if self.args.intl:
495 if self.args.other:
502 if self.args.es2015:
509 if self.args.es51:
512 elif self.args.es2015:
515 elif self.args.intl:
518 elif self.args.other:
521 elif self.args.es2021:
524 elif self.args.es2022:
527 elif self.args.es2023:
530 elif self.args.ci_build:
543 if self.args.es51:
546 elif self.args.es2015:
549 elif self.args.intl:
552 elif self.args.other:
555 elif self.args.es2021:
558 elif self.args.es2022:
561 elif self.args.es2023:
564 elif self.args.ci_build:
567 elif self.args.esnext:
570 if self.args.run_jit:
575 if self.args.file:
576 mkdstdir(self.args.file, src_dir, self.out_dir)
579 files = collect_files(self.args.dir)
593 def run_test262_prepare(args): argument
594 init(args)
596 test_prepare = TestPrepare(args)
608 def run_test262_mode(args): argument
609 if args.mode:
610 return modetype_to_string(args.mode)
614 def get_execute_arg(args): argument
617 if args.file:
618 execute_args = args.file
620 execute_args = os.path.join(args.dir, "**", "*.js")
624 def get_host_path_type(args): argument
627 if args.engine:
628 host_path = args.engine
629 host_type = os.path.split(args.engine.strip())[1]
633 def get_timeout(args, threads): argument
635 if args.timeout:
636 timeout = args.timeout
640 def get_threads(args): argument
642 if args.threads:
643 threads = args.threads
647 def get_host_args_of_product_name(args): argument
648 product_name = args.product_name
662 def get_host_args_of_host_type(args, host_args, ark_tool, ark_aot_tool, libs_dir, ark_frontend, argument
667 if args.ark_aot:
669 if args.run_pgo:
671 if args.enable_litecg:
673 if args.run_jit:
675 if args.run_baseline_jit:
686 if args.abc2program:
688 if args.enable_arkguard:
694 def get_host_args_of_ark_arch(args, host_args): argument
695 host_args += f"--ark-arch={args.ark_arch} "
696 host_args += f"--ark-arch-root={args.ark_arch_root} "
701 def get_disable_force_gc(host_args, args): argument
707 def get_host_args_of_stub_file(args, host_args): argument
708 host_args += f"--stub-file={args.stub_file} "
713 def get_host_args(args, host_type): argument
728 if args.product_name:
729 ark_tool, libs_dir, ark_aot_tool, merge_abc_binary = get_host_args_of_product_name(args)
731 if args.hostArgs:
732 host_args = args.hostArgs
734 if args.ark_tool:
735 ark_tool = args.ark_tool
737 if args.ark_aot_tool:
738 ark_aot_tool = args.ark_aot_tool
740 if args.libs_dir:
741 libs_dir = args.libs_dir
743 if args.ark_frontend:
744 ark_frontend = args.ark_frontend
746 if args.ark_frontend_binary:
747 ark_frontend_binary = args.ark_frontend_binary
749 if args.opt_level:
750 opt_level = args.opt_level
752 if args.es2abc_thread_count:
753 es2abc_thread_count = args.es2abc_thread_count
755 if args.merge_abc_binary:
756 merge_abc_binary = args.merge_abc_binary
758 if args.merge_abc_mode:
759 merge_abc_mode = args.merge_abc_mode
762 …host_args = get_host_args_of_host_type(args, host_args, ark_tool, ark_aot_tool, libs_dir, ark_fron…
766 if args.ark_arch != ark_arch:
767 host_args = get_host_args_of_ark_arch(args, host_args)
769 if args.stub_file != stub_file:
770 host_args = get_host_args_of_stub_file(args, host_args)
772 if args.disable_force_gc:
773 host_args = get_disable_force_gc(host_args, args)
778 def run_test262_test(args): argument
779 execute_args = get_execute_arg(args)
780 host_path, host_type = get_host_path_type(args)
781 host_args = get_host_args(args, host_type)
782 threads = get_threads(args)
783 timeout = get_timeout(args, threads)
791 test_cmd.append(f"--mode={run_test262_mode(args)}")
802 if args.babel:
812 def main(args): argument
815 run_test262_prepare(args)
816 check = Check(True, run_test262_test, args)