| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 options.extra_flags.append("--omit-quit") |
| 356 | 356 |
| 357 if options.msan: |
| 358 VARIANTS = ["default"] |
| 359 |
| 357 if options.tsan: | 360 if options.tsan: |
| 358 VARIANTS = ["default"] | 361 VARIANTS = ["default"] |
| 359 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), | 362 suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), |
| 360 'sanitizers', 'tsan_suppressions.txt') | 363 'sanitizers', 'tsan_suppressions.txt') |
| 361 tsan_options = '%s suppressions=%s' % ( | 364 tsan_options = '%s suppressions=%s' % ( |
| 362 os.environ.get('TSAN_OPTIONS', ''), suppressions_file) | 365 os.environ.get('TSAN_OPTIONS', ''), suppressions_file) |
| 363 os.environ['TSAN_OPTIONS'] = tsan_options | 366 os.environ['TSAN_OPTIONS'] = tsan_options |
| 364 | 367 |
| 365 if options.j == 0: | 368 if options.j == 0: |
| 366 options.j = multiprocessing.cpu_count() | 369 options.j = multiprocessing.cpu_count() |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 exit_code = runner.Run(options.j) | 641 exit_code = runner.Run(options.j) |
| 639 overall_duration = time.time() - start_time | 642 overall_duration = time.time() - start_time |
| 640 | 643 |
| 641 if options.time: | 644 if options.time: |
| 642 verbose.PrintTestDurations(suites, overall_duration) | 645 verbose.PrintTestDurations(suites, overall_duration) |
| 643 return exit_code | 646 return exit_code |
| 644 | 647 |
| 645 | 648 |
| 646 if __name__ == "__main__": | 649 if __name__ == "__main__": |
| 647 sys.exit(Main()) | 650 sys.exit(Main()) |
| OLD | NEW |