• Home
  • Raw
  • Download

Lines Matching full:args

163     args = parser.parse_args()
164 if args.abc2program and (args.run_pgo or args.ark_aot):
166 return args
182 def excuting_npm_install(args): argument
184 if args.ark_frontend:
185 ark_frontend = args.ark_frontend
191 if args.ark_frontend_binary:
192 ark_frontend_binary = os.path.join(args.ark_frontend_binary)
213 def init(args): argument
223 get_all_skip_tests(args)
224 excuting_npm_install(args)
227 def get_all_skip_tests(args): argument
229 if args.ark_frontend and args.ark_frontend == ARK_FRONTEND_LIST[1]:
234 if args.skip_list:
235 SKIP_LIST_FILES.append(os.path.join("test262", args.skip_list[0]))
280 def __init__(self, args): argument
281 self.args = args
292 if self.args.run_jit:
295 elif self.args.sendable == "sendable":
302 if self.args.enable_rm and self.args.run_jit and not os.path.isfile(TEST262_JIT_LABEL):
323 if self.args.run_jit:
325 elif self.args.sendable == "sendable":
340 if self.args.dir:
341 if TEST_ES5_DIR in self.args.dir:
342 self.args.es51 = True
343 elif TEST_ES2015_DIR in self.args.dir:
344 self.args.es2015 = "es2015"
345 elif TEST_INTL_DIR in self.args.dir:
346 self.args.intl = "intl"
347 elif TEST_ES2021_DIR in self.args.dir:
348 self.args.es2021 = "all"
349 elif TEST_ES2022_DIR in self.args.dir:
350 self.args.es2022 = "all"
351 elif TEST_ES2023_DIR in self.args.dir:
352 self.args.es2023 = "all"
353 elif TEST_OTHERTESTS_DIR in self.args.dir:
354 self.args.other = "other"
356 if self.args.file:
357 if TEST_ES5_DIR in self.args.file:
358 self.args.es51 = True
359 elif TEST_ES2015_DIR in self.args.file:
360 self.args.es2015 = "es2015"
361 elif TEST_INTL_DIR in self.args.file:
362 self.args.intl = "intl"
363 elif TEST_ES2021_DIR in self.args.file:
364 self.args.es2021 = "all"
365 elif TEST_ES2022_DIR in self.args.file:
366 self.args.es2022 = "all"
367 elif TEST_ES2023_DIR in self.args.file:
368 self.args.es2023 = "all"
369 elif TEST_OTHERTESTS_DIR in self.args.file:
370 self.args.other = "other"
373 if self.args.es51:
375 elif self.args.es2015:
377 elif self.args.intl:
379 elif self.args.es2021:
381 elif self.args.es2022:
383 elif self.args.es2023:
385 elif self.args.ci_build:
387 elif self.args.sendable:
389 elif self.args.other:
395 if self.args.dir:
398 if self.args.es51:
399 self.args.dir = TEST_ES5_DIR
400 elif self.args.es2015:
401 self.args.dir = TEST_ES2015_DIR
402 elif self.args.intl:
403 self.args.dir = TEST_INTL_DIR
404 elif self.args.es2021:
405 self.args.dir = TEST_ES2021_DIR
406 elif self.args.sendable:
407 self.args.dir = TEST_SENDABLE_DIR
408 elif self.args.es2022:
409 self.args.dir = TEST_ES2022_DIR
410 elif self.args.es2023:
411 self.args.dir = TEST_ES2023_DIR
412 elif self.args.other:
413 self.args.dir = TEST_OTHERTESTS_DIR
414 elif self.args.ci_build:
415 self.args.dir = TEST_CI_DIR
417 self.args.dir = os.path.join(DATA_DIR, "test")
428 if self.args.es51:
430 elif self.args.es2015:
432 elif self.args.intl:
434 elif self.args.es2021:
436 elif self.args.sendable:
438 elif self.args.es2022:
440 elif self.args.es2023:
442 elif self.args.other:
444 elif self.args.ci_build:
456 if self.args.es51:
458 elif self.args.es2021 or self.args.es2022 or self.args.es2023:
472 if self.args.es2021 == "all":
476 if self.args.es2021 == "other":
485 if self.args.sendable == "sendable":
492 if self.args.es2022 == "all":
498 if self.args.es2022 == "other":
510 if self.args.es2023 == "all":
517 if self.args.es2023 == "other":
530 if self.args.intl:
537 if self.args.other:
544 if self.args.es2015:
551 if self.args.es51:
554 elif self.args.es2015:
557 elif self.args.intl:
560 elif self.args.other:
563 elif self.args.es2021:
566 elif self.args.es2022:
569 elif self.args.es2023:
572 elif self.args.sendable:
575 elif self.args.ci_build:
589 if self.args.es51:
592 elif self.args.es2015:
595 elif self.args.intl:
598 elif self.args.other:
601 elif self.args.es2021:
604 elif self.args.sendable:
607 elif self.args.es2022:
610 elif self.args.es2023:
613 elif self.args.ci_build:
616 elif self.args.esnext:
619 if self.args.run_jit:
624 if self.args.file:
625 mkdstdir(self.args.file, src_dir, self.out_dir)
629 if ':' in self.args.dir:
630 path = self.args.dir.split(':')
634 files = collect_files(self.args.dir)
658 def run_test262_mode(args): argument
659 if args.mode:
660 return modetype_to_string(args.mode)
664 def get_execute_arg(args) -> list[str]: argument
667 if args.file:
668 execute_args.append(args.file)
670 path = args.dir.split(':')
679 def get_host_path_type(args): argument
682 if args.engine:
683 host_path = args.engine
684 host_type = os.path.split(args.engine.strip())[1]
688 def get_timeout(args, threads): argument
690 if args.timeout:
691 timeout = args.timeout
695 def get_threads(args): argument
697 if args.threads:
698 threads = args.threads
702 def get_host_args_of_product_name(args): argument
703 product_name = args.product_name
717 def get_host_args_of_host_type(args, host_args, ark_tool, ark_aot_tool, libs_dir, ark_frontend, argument
722 if args.ark_aot:
724 if args.run_pgo:
726 if args.enable_litecg:
728 if args.run_jit:
730 if args.run_baseline_jit:
742 if args.abc2program:
744 if args.enable_arkguard:
749 def get_host_args_of_ark_arch(args, host_args): argument
750 host_args += f"--ark-arch={args.ark_arch} "
751 host_args += f"--ark-arch-root={args.ark_arch_root} "
756 def get_disable_force_gc(host_args, args): argument
762 def get_host_args_of_stub_file(args, host_args): argument
763 host_args += f"--stub-file={args.stub_file} "
768 def get_host_args(args, host_type): argument
784 if args.product_name:
785 ark_tool, libs_dir, ark_aot_tool, merge_abc_binary = get_host_args_of_product_name(args)
787 if args.hostArgs:
788 host_args = args.hostArgs
790 if args.ark_tool:
791 ark_tool = args.ark_tool
793 if args.ark_aot_tool:
794 ark_aot_tool = args.ark_aot_tool
796 if args.libs_dir:
797 libs_dir = args.libs_dir
799 if args.ark_frontend:
800 ark_frontend = args.ark_frontend
802 if args.ark_frontend_binary:
803 ark_frontend_binary = args.ark_frontend_binary
805 if args.opt_level:
806 opt_level = args.opt_level
808 if args.es2abc_thread_count:
809 es2abc_thread_count = args.es2abc_thread_count
811 if args.merge_abc_binary:
812 merge_abc_binary = args.merge_abc_binary
814 if args.icu_data_path:
815 icu_data_path = args.icu_data_path
816 if args.merge_abc_mode:
817 merge_abc_mode = args.merge_abc_mode
820 …host_args = get_host_args_of_host_type(args, host_args, ark_tool, ark_aot_tool, libs_dir, ark_fron…
824 if args.ark_arch != ark_arch:
825 host_args = get_host_args_of_ark_arch(args, host_args)
827 if args.stub_file != stub_file:
828 host_args = get_host_args_of_stub_file(args, host_args)
830 if args.disable_force_gc:
831 host_args = get_disable_force_gc(host_args, args)
836 def run_test262_test(args): argument
837 execute_args = get_execute_arg(args)
838 host_path, host_type = get_host_path_type(args)
839 host_args = get_host_args(args, host_type)
840 threads = get_threads(args)
841 timeout = get_timeout(args, threads)
849 test_cmd.append(f"--mode={run_test262_mode(args)}")
859 if args.test_list:
861 if args.babel:
871 def prepare_test_list(args) -> List[str]: argument
872 if not os.path.exists(args.test_list):
873 args.test_list = os.path.join("test262", args.test_list)
874 test_list = TestPrepare.get_tests_from_file(args.test_list)
882 def reset_args(args): argument
883 args.es51 = None
884 args.es2015 = None
885 args.intl = None
886 args.other = None
887 args.es2021 = None
888 args.es2022 = None
889 args.es2023 = None
890 args.ci_build = None
891 args.esnext = None
892 args.dir = None
895 def prepare_file_from_test_list(args, test_prepare): argument
896 folders = prepare_test_list(args)
898 reset_args(args)
899 args.dir = folder
901 args.file = args.test_list
904 def run(args): argument
905 init(args)
907 test_prepare = TestPrepare(args)
909 if args.test_list:
910 prepare_file_from_test_list(args, test_prepare)
913 check = Check(True, run_test262_test, args)
917 def main(args): argument
920 run(args)