Lines Matching full:args
121 def excuting_npm_install(args): argument
123 if args.ark_frontend:
124 ark_frontend = args.ark_frontend
130 if args.ark_frontend_binary:
131 ark_frontend_binary = os.path.join(args.ark_frontend_binary)
155 def init(args): argument
162 get_all_skip_tests(args)
163 excuting_npm_install(args)
166 def get_all_skip_tests(args): argument
168 if args.ark_frontend and args.ark_frontend == ARK_FRONTEND_LIST[1]:
207 def __init__(self, args): argument
208 self.args = args
245 if self.args.dir:
246 if TEST_ES5_DIR in self.args.dir:
247 self.args.es51 = True
248 elif TEST_ES2015_DIR in self.args.dir:
249 self.args.es2015 = "es2015"
250 elif TEST_INTL_DIR in self.args.dir:
251 self.args.intl = "intl"
252 elif TEST_ES2021_DIR in self.args.dir:
253 self.args.es2021 = "all"
255 if self.args.file:
256 if TEST_ES5_DIR in self.args.file:
257 self.args.es51 = True
258 elif TEST_ES2015_DIR in self.args.file:
259 self.args.es2015 = "es2015"
260 elif TEST_INTL_DIR in self.args.file:
261 self.args.intl = "intl"
262 elif TEST_ES2021_DIR in self.args.file:
263 self.args.es2021 = "all"
266 if self.args.es51:
268 elif self.args.es2015:
270 elif self.args.intl:
272 elif self.args.es2021:
274 elif self.args.ci_build:
280 if self.args.dir:
283 if self.args.es51:
284 self.args.dir = TEST_ES5_DIR
285 elif self.args.es2015:
286 self.args.dir = TEST_ES2015_DIR
287 elif self.args.intl:
288 self.args.dir = TEST_INTL_DIR
289 elif self.args.es2021:
290 self.args.dir = TEST_ES2021_DIR
291 elif self.args.ci_build:
292 self.args.dir = TEST_CI_DIR
294 self.args.dir = os.path.join(DATA_DIR, "test")
305 if self.args.es51:
307 elif self.args.es2015:
309 elif self.args.intl:
311 elif self.args.es2021:
313 elif self.args.ci_build:
327 if self.args.es51:
329 elif self.args.es2021:
348 if self.args.es2021 == "all":
357 if self.args.intl:
364 if self.args.es2015:
371 if self.args.es51:
374 elif self.args.es2015:
377 elif self.args.intl:
380 elif self.args.es2021:
383 elif self.args.ci_build:
400 if self.args.es51:
403 elif self.args.es2015:
406 elif self.args.intl:
409 elif self.args.es2021:
412 elif self.args.ci_build:
415 elif self.args.esnext:
420 if self.args.file:
421 mkdstdir(self.args.file, src_dir, self.out_dir)
424 files = collect_files(self.args.dir)
438 def run_test262_prepare(args): argument
439 init(args)
441 test_prepare = TestPrepare(args)
453 def run_test262_mode(args): argument
454 if args.mode:
455 return modetype_to_string(args.mode)
459 def get_execute_arg(args): argument
462 if args.file:
463 execute_args = args.file
465 execute_args = os.path.join(args.dir, "**", "*.js")
469 def get_host_path_type(args): argument
472 if args.engine:
473 host_path = args.engine
474 host_type = os.path.split(args.engine.strip())[1]
478 def get_timeout(args, threads): argument
480 if args.timeout:
481 timeout = args.timeout
485 def get_threads(args): argument
487 if args.threads:
488 threads = args.threads
492 def get_host_args(args, host_type): argument
505 if args.hostArgs:
506 host_args = args.hostArgs
508 if args.ark_tool:
509 ark_tool = args.ark_tool
511 if args.ark_aot_tool:
512 ark_aot_tool = args.ark_aot_tool
514 if args.libs_dir:
515 libs_dir = args.libs_dir
517 if args.ark_frontend:
518 ark_frontend = args.ark_frontend
520 if args.ark_frontend_binary:
521 ark_frontend_binary = args.ark_frontend_binary
523 if args.opt_level:
524 opt_level = args.opt_level
526 if args.es2abc_thread_count:
527 es2abc_thread_count = args.es2abc_thread_count
529 if args.merge_abc_binary:
530 merge_abc_binary = args.merge_abc_binary
532 if args.merge_abc_mode:
533 merge_abc_mode = args.merge_abc_mode
538 if args.ark_aot:
549 if args.ark_arch != ark_arch:
550 host_args += f"--ark-arch={args.ark_arch} "
551 host_args += f"--ark-arch-root={args.ark_arch_root} "
556 def run_test262_test(args): argument
557 execute_args = get_execute_arg(args)
558 host_path, host_type = get_host_path_type(args)
559 host_args = get_host_args(args, host_type)
560 threads = get_threads(args)
561 timeout = get_timeout(args, threads)
569 test_cmd.append(f"--mode={run_test262_mode(args)}")
580 if args.babel:
591 def main(args): argument
594 run_test262_prepare(args)
595 check = Check(True, run_test262_test, args)