Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Side by Side Diff: tools/run-tests.py

Issue 486853004: test262.status: ES6 tests pass when harmony Base URL: git@github.com:smikes/v8.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 result.add_option("--isolates", help="Whether to test isolates", 145 result.add_option("--isolates", help="Whether to test isolates",
146 default=False, action="store_true") 146 default=False, action="store_true")
147 result.add_option("-j", help="The number of parallel tasks to run", 147 result.add_option("-j", help="The number of parallel tasks to run",
148 default=0, type="int") 148 default=0, type="int")
149 result.add_option("-m", "--mode", 149 result.add_option("-m", "--mode",
150 help="The test modes in which to run (comma-separated)", 150 help="The test modes in which to run (comma-separated)",
151 default="release,debug") 151 default="release,debug")
152 result.add_option("--no-i18n", "--noi18n", 152 result.add_option("--no-i18n", "--noi18n",
153 help="Skip internationalization tests", 153 help="Skip internationalization tests",
154 default=False, action="store_true") 154 default=False, action="store_true")
155 result.add_option("--harmony", help="Run with ES6 features enabled (--harmony) ",
156 default=False, action="store_true")
155 result.add_option("--no-network", "--nonetwork", 157 result.add_option("--no-network", "--nonetwork",
156 help="Don't distribute tests on the network", 158 help="Don't distribute tests on the network",
157 default=(utils.GuessOS() != "linux"), 159 default=(utils.GuessOS() != "linux"),
158 dest="no_network", action="store_true") 160 dest="no_network", action="store_true")
159 result.add_option("--no-presubmit", "--nopresubmit", 161 result.add_option("--no-presubmit", "--nopresubmit",
160 help='Skip presubmit checks', 162 help='Skip presubmit checks',
161 default=False, dest="no_presubmit", action="store_true") 163 default=False, dest="no_presubmit", action="store_true")
162 result.add_option("--no-snap", "--nosnap", 164 result.add_option("--no-snap", "--nosnap",
163 help='Test a build compiled without snapshot.', 165 help='Test a build compiled without snapshot.',
164 default=False, dest="no_snap", action="store_true") 166 default=False, dest="no_snap", action="store_true")
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 ctx = context.Context(arch, mode, shell_dir, 444 ctx = context.Context(arch, mode, shell_dir,
443 mode_flags, options.verbose, 445 mode_flags, options.verbose,
444 timeout, options.isolates, 446 timeout, options.isolates,
445 options.command_prefix, 447 options.command_prefix,
446 options.extra_flags, 448 options.extra_flags,
447 options.no_i18n, 449 options.no_i18n,
448 options.random_seed, 450 options.random_seed,
449 options.no_sorting, 451 options.no_sorting,
450 options.rerun_failures_count, 452 options.rerun_failures_count,
451 options.rerun_failures_max, 453 options.rerun_failures_max,
452 options.predictable) 454 options.predictable,
455 options.harmony)
453 456
454 # TODO(all): Combine "simulator" and "simulator_run". 457 # TODO(all): Combine "simulator" and "simulator_run".
455 simulator_run = not options.dont_skip_simulator_slow_tests and \ 458 simulator_run = not options.dont_skip_simulator_slow_tests and \
456 arch in ['arm64', 'arm', 'mips'] and ARCH_GUESS and arch != ARCH_GUESS 459 arch in ['arm64', 'arm', 'mips'] and ARCH_GUESS and arch != ARCH_GUESS
457 # Find available test suites and read test cases from them. 460 # Find available test suites and read test cases from them.
458 variables = { 461 variables = {
459 "arch": arch, 462 "arch": arch,
460 "asan": options.asan, 463 "asan": options.asan,
461 "deopt_fuzzer": False, 464 "deopt_fuzzer": False,
462 "gc_stress": options.gc_stress, 465 "gc_stress": options.gc_stress,
466 "harmony": options.harmony,
463 "isolates": options.isolates, 467 "isolates": options.isolates,
464 "mode": mode, 468 "mode": mode,
465 "no_i18n": options.no_i18n, 469 "no_i18n": options.no_i18n,
466 "no_snap": options.no_snap, 470 "no_snap": options.no_snap,
467 "simulator_run": simulator_run, 471 "simulator_run": simulator_run,
468 "simulator": utils.UseSimulator(arch), 472 "simulator": utils.UseSimulator(arch),
469 "system": utils.GuessOS(), 473 "system": utils.GuessOS(),
470 "tsan": options.tsan, 474 "tsan": options.tsan,
471 } 475 }
472 all_tests = [] 476 all_tests = []
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 exit_code = runner.Run(options.j) 545 exit_code = runner.Run(options.j)
542 overall_duration = time.time() - start_time 546 overall_duration = time.time() - start_time
543 547
544 if options.time: 548 if options.time:
545 verbose.PrintTestDurations(suites, overall_duration) 549 verbose.PrintTestDurations(suites, overall_duration)
546 return exit_code 550 return exit_code
547 551
548 552
549 if __name__ == "__main__": 553 if __name__ == "__main__":
550 sys.exit(Main()) 554 sys.exit(Main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698