• Home
  • Raw
  • Download

Lines Matching full:args

165     args = parser.parse_args()
166 if args.abc2program and (args.run_pgo or args.ark_aot):
168 return args
184 def excuting_npm_install(args): argument
186 if args.ark_frontend:
187 ark_frontend = args.ark_frontend
193 if args.ark_frontend_binary:
194 ark_frontend_binary = os.path.join(args.ark_frontend_binary)
215 def init(args): argument
225 get_all_skip_tests(args)
226 excuting_npm_install(args)
229 def get_all_skip_tests(args): argument
231 if args.ark_frontend and args.ark_frontend == ARK_FRONTEND_LIST[1]:
236 if args.skip_list:
237 SKIP_LIST_FILES.append(os.path.join("test262", args.skip_list[0]))
282 def __init__(self, args): argument
283 self.args = args
294 if self.args.run_jit:
297 elif self.args.sendable == "sendable":
304 if self.args.enable_rm and self.args.run_jit and not os.path.isfile(TEST262_JIT_LABEL):
325 if self.args.run_jit:
327 elif self.args.sendable == "sendable":
342 if self.args.dir:
343 if TEST_ES5_DIR in self.args.dir:
344 self.args.es51 = True
345 elif TEST_ES2015_DIR in self.args.dir:
346 self.args.es2015 = "es2015"
347 elif TEST_INTL_DIR in self.args.dir:
348 self.args.intl = "intl"
349 elif TEST_ES2021_DIR in self.args.dir:
350 self.args.es2021 = "all"
351 elif TEST_ES2022_DIR in self.args.dir:
352 self.args.es2022 = "all"
353 elif TEST_ES2023_DIR in self.args.dir:
354 self.args.es2023 = "all"
355 elif TEST_OTHERTESTS_DIR in self.args.dir:
356 self.args.other = "other"
358 if self.args.file:
359 if TEST_ES5_DIR in self.args.file:
360 self.args.es51 = True
361 elif TEST_ES2015_DIR in self.args.file:
362 self.args.es2015 = "es2015"
363 elif TEST_INTL_DIR in self.args.file:
364 self.args.intl = "intl"
365 elif TEST_ES2021_DIR in self.args.file:
366 self.args.es2021 = "all"
367 elif TEST_ES2022_DIR in self.args.file:
368 self.args.es2022 = "all"
369 elif TEST_ES2023_DIR in self.args.file:
370 self.args.es2023 = "all"
371 elif TEST_OTHERTESTS_DIR in self.args.file:
372 self.args.other = "other"
375 if self.args.es51:
377 elif self.args.es2015:
379 elif self.args.intl:
381 elif self.args.es2021:
383 elif self.args.es2022:
385 elif self.args.es2023:
387 elif self.args.ci_build:
389 elif self.args.sendable:
391 elif self.args.other:
397 if self.args.dir:
400 if self.args.es51:
401 self.args.dir = TEST_ES5_DIR
402 elif self.args.es2015:
403 self.args.dir = TEST_ES2015_DIR
404 elif self.args.intl:
405 self.args.dir = TEST_INTL_DIR
406 elif self.args.es2021:
407 self.args.dir = TEST_ES2021_DIR
408 elif self.args.sendable:
409 self.args.dir = TEST_SENDABLE_DIR
410 elif self.args.es2022:
411 self.args.dir = TEST_ES2022_DIR
412 elif self.args.es2023:
413 self.args.dir = TEST_ES2023_DIR
414 elif self.args.other:
415 self.args.dir = TEST_OTHERTESTS_DIR
416 elif self.args.ci_build:
417 self.args.dir = TEST_CI_DIR
419 self.args.dir = os.path.join(DATA_DIR, "test")
430 if self.args.es51:
432 elif self.args.es2015:
434 elif self.args.intl:
436 elif self.args.es2021:
438 elif self.args.sendable:
440 elif self.args.es2022:
442 elif self.args.es2023:
444 elif self.args.other:
446 elif self.args.ci_build:
458 if self.args.es51:
460 elif self.args.es2021 or self.args.es2022 or self.args.es2023:
474 if self.args.es2021 == "all":
478 if self.args.es2021 == "other":
487 if self.args.sendable == "sendable":
494 if self.args.es2022 == "all":
500 if self.args.es2022 == "other":
512 if self.args.es2023 == "all":
519 if self.args.es2023 == "other":
532 if self.args.intl:
539 if self.args.other:
546 if self.args.es2015:
553 if self.args.es51:
556 elif self.args.es2015:
559 elif self.args.intl:
562 elif self.args.other:
565 elif self.args.es2021:
568 elif self.args.es2022:
571 elif self.args.es2023:
574 elif self.args.sendable:
577 elif self.args.ci_build:
591 if self.args.es51:
594 elif self.args.es2015:
597 elif self.args.intl:
600 elif self.args.other:
603 elif self.args.es2021:
606 elif self.args.sendable:
609 elif self.args.es2022:
612 elif self.args.es2023:
615 elif self.args.ci_build:
618 elif self.args.esnext:
621 if self.args.run_jit:
626 if self.args.file:
627 mkdstdir(self.args.file, src_dir, self.out_dir)
631 if ':' in self.args.dir:
632 path = self.args.dir.split(':')
636 files = collect_files(self.args.dir)
660 def run_test262_mode(args): argument
661 if args.mode:
662 return modetype_to_string(args.mode)
666 def get_execute_arg(args) -> list[str]: argument
669 if args.file:
670 execute_args.append(args.file)
672 path = args.dir.split(':')
681 def get_host_path_type(args): argument
684 if args.engine:
685 host_path = args.engine
686 host_type = os.path.split(args.engine.strip())[1]
690 def get_timeout(args, threads): argument
692 if args.timeout:
693 timeout = args.timeout
697 def get_threads(args): argument
699 if args.threads:
700 threads = args.threads
704 def get_host_args_of_product_name(args): argument
705 product_name = args.product_name
719 def get_host_args_of_host_type(args, host_args, ark_tool, ark_aot_tool, libs_dir, ark_frontend, argument
724 if args.ark_aot:
726 if args.run_pgo:
728 if args.enable_litecg:
730 if args.run_jit:
732 if args.run_baseline_jit:
744 if args.abc2program:
746 if args.enable_arkguard:
751 def get_host_args_of_ark_arch(args, host_args): argument
752 host_args += f"--ark-arch={args.ark_arch} "
753 host_args += f"--ark-arch-root={args.ark_arch_root} "
758 def get_disable_force_gc(host_args, args): argument
763 def get_multi_context(args, host_args): argument
768 def get_host_args_of_stub_file(args, host_args): argument
769 host_args += f"--stub-file={args.stub_file} "
774 def get_host_args(args, host_type): argument
790 if args.product_name:
791 ark_tool, libs_dir, ark_aot_tool, merge_abc_binary = get_host_args_of_product_name(args)
793 if args.hostArgs:
794 host_args = args.hostArgs
796 if args.ark_tool:
797 ark_tool = args.ark_tool
799 if args.ark_aot_tool:
800 ark_aot_tool = args.ark_aot_tool
802 if args.libs_dir:
803 libs_dir = args.libs_dir
805 if args.ark_frontend:
806 ark_frontend = args.ark_frontend
808 if args.ark_frontend_binary:
809 ark_frontend_binary = args.ark_frontend_binary
811 if args.opt_level:
812 opt_level = args.opt_level
814 if args.es2abc_thread_count:
815 es2abc_thread_count = args.es2abc_thread_count
817 if args.merge_abc_binary:
818 merge_abc_binary = args.merge_abc_binary
820 if args.icu_data_path:
821 icu_data_path = args.icu_data_path
822 if args.merge_abc_mode:
823 merge_abc_mode = args.merge_abc_mode
826 …host_args = get_host_args_of_host_type(args, host_args, ark_tool, ark_aot_tool, libs_dir, ark_fron…
830 if args.ark_arch != ark_arch:
831 host_args = get_host_args_of_ark_arch(args, host_args)
833 if args.stub_file != stub_file:
834 host_args = get_host_args_of_stub_file(args, host_args)
836 if args.disable_force_gc:
837 host_args = get_disable_force_gc(host_args, args)
839 if args.multi_context:
840 host_args = get_multi_context(args, host_args)
845 def run_test262_test(args): argument
846 execute_args = get_execute_arg(args)
847 host_path, host_type = get_host_path_type(args)
848 host_args = get_host_args(args, host_type)
849 threads = get_threads(args)
850 timeout = get_timeout(args, threads)
858 test_cmd.append(f"--mode={run_test262_mode(args)}")
868 if args.test_list:
870 if args.babel:
880 def prepare_test_list(args) -> List[str]: argument
881 if not os.path.exists(args.test_list):
882 args.test_list = os.path.join("test262", args.test_list)
883 test_list = TestPrepare.get_tests_from_file(args.test_list)
891 def reset_args(args): argument
892 args.es51 = None
893 args.es2015 = None
894 args.intl = None
895 args.other = None
896 args.es2021 = None
897 args.es2022 = None
898 args.es2023 = None
899 args.ci_build = None
900 args.esnext = None
901 args.dir = None
904 def prepare_file_from_test_list(args, test_prepare): argument
905 folders = prepare_test_list(args)
907 reset_args(args)
908 args.dir = folder
910 args.file = args.test_list
913 def run(args): argument
914 init(args)
916 test_prepare = TestPrepare(args)
918 if args.test_list:
919 prepare_file_from_test_list(args, test_prepare)
922 check = Check(True, run_test262_test, args)
926 def main(args): argument
929 run(args)