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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 "running tests locally.") | 345 "running tests locally.") |
346 options.no_network = True | 346 options.no_network = True |
347 options.command_prefix = shlex.split(options.command_prefix) | 347 options.command_prefix = shlex.split(options.command_prefix) |
348 options.extra_flags = shlex.split(options.extra_flags) | 348 options.extra_flags = shlex.split(options.extra_flags) |
349 | 349 |
350 if options.gc_stress: | 350 if options.gc_stress: |
351 options.extra_flags += GC_STRESS_FLAGS | 351 options.extra_flags += GC_STRESS_FLAGS |
352 | 352 |
353 if options.asan: | 353 if options.asan: |
354 options.extra_flags.append("--invoke-weak-callbacks") | 354 options.extra_flags.append("--invoke-weak-callbacks") |
| 355 options.extra_flags.append("--omit-quit") |
355 | 356 |
356 if options.tsan: | 357 if options.tsan: |
357 VARIANTS = ["default"] | 358 VARIANTS = ["default"] |
358 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), | 359 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), |
359 'sanitizers', 'tsan_suppressions.txt') | 360 'sanitizers', 'tsan_suppressions.txt') |
360 tsan_options = '%s suppressions=%s' % ( | 361 tsan_options = '%s suppressions=%s' % ( |
361 os.environ.get('TSAN_OPTIONS', ''), suppressions_file) | 362 os.environ.get('TSAN_OPTIONS', ''), suppressions_file) |
362 os.environ['TSAN_OPTIONS'] = tsan_options | 363 os.environ['TSAN_OPTIONS'] = tsan_options |
363 | 364 |
364 if options.j == 0: | 365 if options.j == 0: |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 exit_code = runner.Run(options.j) | 638 exit_code = runner.Run(options.j) |
638 overall_duration = time.time() - start_time | 639 overall_duration = time.time() - start_time |
639 | 640 |
640 if options.time: | 641 if options.time: |
641 verbose.PrintTestDurations(suites, overall_duration) | 642 verbose.PrintTestDurations(suites, overall_duration) |
642 return exit_code | 643 return exit_code |
643 | 644 |
644 | 645 |
645 if __name__ == "__main__": | 646 if __name__ == "__main__": |
646 sys.exit(Main()) | 647 sys.exit(Main()) |
OLD | NEW |