| OLD | NEW |
| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 def BuildOptions(): | 93 def BuildOptions(): |
| 94 result = optparse.OptionParser() | 94 result = optparse.OptionParser() |
| 95 result.add_option("--arch", | 95 result.add_option("--arch", |
| 96 help=("The architecture to run tests for, " | 96 help=("The architecture to run tests for, " |
| 97 "'auto' or 'native' for auto-detect"), | 97 "'auto' or 'native' for auto-detect"), |
| 98 default="ia32,x64,arm") | 98 default="ia32,x64,arm") |
| 99 result.add_option("--arch-and-mode", | 99 result.add_option("--arch-and-mode", |
| 100 help="Architecture and mode in the format 'arch.mode'", | 100 help="Architecture and mode in the format 'arch.mode'", |
| 101 default=None) | 101 default=None) |
| 102 result.add_option("--asan", |
| 103 help="Regard test expectations for ASAN", |
| 104 default=False, action="store_true") |
| 102 result.add_option("--buildbot", | 105 result.add_option("--buildbot", |
| 103 help="Adapt to path structure used on buildbots", | 106 help="Adapt to path structure used on buildbots", |
| 104 default=False, action="store_true") | 107 default=False, action="store_true") |
| 105 result.add_option("--cat", help="Print the source of the tests", | 108 result.add_option("--cat", help="Print the source of the tests", |
| 106 default=False, action="store_true") | 109 default=False, action="store_true") |
| 107 result.add_option("--flaky-tests", | 110 result.add_option("--flaky-tests", |
| 108 help="Regard tests marked as flaky (run|skip|dontcare)", | 111 help="Regard tests marked as flaky (run|skip|dontcare)", |
| 109 default="dontcare") | 112 default="dontcare") |
| 110 result.add_option("--slow-tests", | 113 result.add_option("--slow-tests", |
| 111 help="Regard slow tests (run|skip|dontcare)", | 114 help="Regard slow tests (run|skip|dontcare)", |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 ctx = context.Context(arch, mode, shell_dir, | 382 ctx = context.Context(arch, mode, shell_dir, |
| 380 mode_flags, options.verbose, | 383 mode_flags, options.verbose, |
| 381 timeout, options.isolates, | 384 timeout, options.isolates, |
| 382 options.command_prefix, | 385 options.command_prefix, |
| 383 options.extra_flags, | 386 options.extra_flags, |
| 384 options.no_i18n) | 387 options.no_i18n) |
| 385 | 388 |
| 386 # Find available test suites and read test cases from them. | 389 # Find available test suites and read test cases from them. |
| 387 variables = { | 390 variables = { |
| 388 "arch": arch, | 391 "arch": arch, |
| 392 "asan": options.asan, |
| 389 "deopt_fuzzer": False, | 393 "deopt_fuzzer": False, |
| 390 "gc_stress": options.gc_stress, | 394 "gc_stress": options.gc_stress, |
| 391 "isolates": options.isolates, | 395 "isolates": options.isolates, |
| 392 "mode": mode, | 396 "mode": mode, |
| 393 "no_i18n": options.no_i18n, | 397 "no_i18n": options.no_i18n, |
| 394 "system": utils.GuessOS(), | 398 "system": utils.GuessOS(), |
| 395 } | 399 } |
| 396 all_tests = [] | 400 all_tests = [] |
| 397 num_tests = 0 | 401 num_tests = 0 |
| 398 test_id = 0 | 402 test_id = 0 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 except KeyboardInterrupt: | 471 except KeyboardInterrupt: |
| 468 raise | 472 raise |
| 469 | 473 |
| 470 if options.time: | 474 if options.time: |
| 471 verbose.PrintTestDurations(suites, overall_duration) | 475 verbose.PrintTestDurations(suites, overall_duration) |
| 472 return exit_code | 476 return exit_code |
| 473 | 477 |
| 474 | 478 |
| 475 if __name__ == "__main__": | 479 if __name__ == "__main__": |
| 476 sys.exit(Main()) | 480 sys.exit(Main()) |
| OLD | NEW |