| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 SUPPORTED_ARCHS = ["android_arm", | 140 SUPPORTED_ARCHS = ["android_arm", |
| 141 "android_arm64", | 141 "android_arm64", |
| 142 "android_ia32", | 142 "android_ia32", |
| 143 "android_x64", | 143 "android_x64", |
| 144 "arm", | 144 "arm", |
| 145 "ia32", | 145 "ia32", |
| 146 "x87", | 146 "x87", |
| 147 "mips", | 147 "mips", |
| 148 "mipsel", | 148 "mipsel", |
| 149 "mips64", |
| 149 "mips64el", | 150 "mips64el", |
| 150 "nacl_ia32", | 151 "nacl_ia32", |
| 151 "nacl_x64", | 152 "nacl_x64", |
| 152 "ppc", | 153 "ppc", |
| 153 "ppc64", | 154 "ppc64", |
| 154 "x64", | 155 "x64", |
| 155 "x32", | 156 "x32", |
| 156 "arm64"] | 157 "arm64"] |
| 157 # Double the timeout for these: | 158 # Double the timeout for these: |
| 158 SLOW_ARCHS = ["android_arm", | 159 SLOW_ARCHS = ["android_arm", |
| 159 "android_arm64", | 160 "android_arm64", |
| 160 "android_ia32", | 161 "android_ia32", |
| 161 "android_x64", | 162 "android_x64", |
| 162 "arm", | 163 "arm", |
| 163 "mips", | 164 "mips", |
| 164 "mipsel", | 165 "mipsel", |
| 166 "mips64", |
| 165 "mips64el", | 167 "mips64el", |
| 166 "nacl_ia32", | 168 "nacl_ia32", |
| 167 "nacl_x64", | 169 "nacl_x64", |
| 168 "x87", | 170 "x87", |
| 169 "arm64"] | 171 "arm64"] |
| 170 | 172 |
| 171 | 173 |
| 172 def BuildOptions(): | 174 def BuildOptions(): |
| 173 result = optparse.OptionParser() | 175 result = optparse.OptionParser() |
| 174 result.add_option("--arch", | 176 result.add_option("--arch", |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 options.no_i18n, | 581 options.no_i18n, |
| 580 options.random_seed, | 582 options.random_seed, |
| 581 options.no_sorting, | 583 options.no_sorting, |
| 582 options.rerun_failures_count, | 584 options.rerun_failures_count, |
| 583 options.rerun_failures_max, | 585 options.rerun_failures_max, |
| 584 options.predictable, | 586 options.predictable, |
| 585 options.no_harness) | 587 options.no_harness) |
| 586 | 588 |
| 587 # TODO(all): Combine "simulator" and "simulator_run". | 589 # TODO(all): Combine "simulator" and "simulator_run". |
| 588 simulator_run = not options.dont_skip_simulator_slow_tests and \ | 590 simulator_run = not options.dont_skip_simulator_slow_tests and \ |
| 589 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64el', \ | 591 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ |
| 590 'ppc', 'ppc64'] and \ | 592 'ppc', 'ppc64'] and \ |
| 591 ARCH_GUESS and arch != ARCH_GUESS | 593 ARCH_GUESS and arch != ARCH_GUESS |
| 592 # Find available test suites and read test cases from them. | 594 # Find available test suites and read test cases from them. |
| 593 variables = { | 595 variables = { |
| 594 "arch": arch, | 596 "arch": arch, |
| 595 "asan": options.asan, | 597 "asan": options.asan, |
| 596 "deopt_fuzzer": False, | 598 "deopt_fuzzer": False, |
| 597 "gc_stress": options.gc_stress, | 599 "gc_stress": options.gc_stress, |
| 598 "isolates": options.isolates, | 600 "isolates": options.isolates, |
| 599 "mode": MODES[mode]["status_mode"], | 601 "mode": MODES[mode]["status_mode"], |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 verbose.PrintTestDurations(suites, overall_duration) | 701 verbose.PrintTestDurations(suites, overall_duration) |
| 700 | 702 |
| 701 if num_tests == 0: | 703 if num_tests == 0: |
| 702 print("Warning: no tests were run!") | 704 print("Warning: no tests were run!") |
| 703 | 705 |
| 704 return exit_code | 706 return exit_code |
| 705 | 707 |
| 706 | 708 |
| 707 if __name__ == "__main__": | 709 if __name__ == "__main__": |
| 708 sys.exit(Main()) | 710 sys.exit(Main()) |
| OLD | NEW |