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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 # predefined arch_and_mode since it is more expressive than arch and mode. | 260 # predefined arch_and_mode since it is more expressive than arch and mode. |
261 if not options.arch_and_mode: | 261 if not options.arch_and_mode: |
262 options.arch_and_mode = itertools.product(options.arch, options.mode) | 262 options.arch_and_mode = itertools.product(options.arch, options.mode) |
263 | 263 |
264 # Special processing of other options, sorted alphabetically. | 264 # Special processing of other options, sorted alphabetically. |
265 | 265 |
266 if options.buildbot: | 266 if options.buildbot: |
267 # Buildbots run presubmit tests as a separate step. | 267 # Buildbots run presubmit tests as a separate step. |
268 options.no_presubmit = True | 268 options.no_presubmit = True |
269 options.no_network = True | 269 options.no_network = True |
| 270 |
| 271 # FIXME(machenbach): Temporary hack to debug landmines on buildbot. |
| 272 # Hardcoded for make/ninja. |
| 273 src_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) |
| 274 out_dir = os.path.join(src_dir, 'out', options.mode, '.landmines') |
| 275 if os.path.exists(out_dir): |
| 276 print "[INFO] Landmines tracker exists." |
270 if options.command_prefix: | 277 if options.command_prefix: |
271 print("Specifying --command-prefix disables network distribution, " | 278 print("Specifying --command-prefix disables network distribution, " |
272 "running tests locally.") | 279 "running tests locally.") |
273 options.no_network = True | 280 options.no_network = True |
274 options.command_prefix = shlex.split(options.command_prefix) | 281 options.command_prefix = shlex.split(options.command_prefix) |
275 options.extra_flags = shlex.split(options.extra_flags) | 282 options.extra_flags = shlex.split(options.extra_flags) |
276 | 283 |
277 if options.gc_stress: | 284 if options.gc_stress: |
278 options.extra_flags += GC_STRESS_FLAGS | 285 options.extra_flags += GC_STRESS_FLAGS |
279 | 286 |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 exit_code = runner.Run(options.j) | 548 exit_code = runner.Run(options.j) |
542 overall_duration = time.time() - start_time | 549 overall_duration = time.time() - start_time |
543 | 550 |
544 if options.time: | 551 if options.time: |
545 verbose.PrintTestDurations(suites, overall_duration) | 552 verbose.PrintTestDurations(suites, overall_duration) |
546 return exit_code | 553 return exit_code |
547 | 554 |
548 | 555 |
549 if __name__ == "__main__": | 556 if __name__ == "__main__": |
550 sys.exit(Main()) | 557 sys.exit(Main()) |
OLD | NEW |