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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 if options.command_prefix: | 249 if options.command_prefix: |
250 print("Specifying --command-prefix disables network distribution, " | 250 print("Specifying --command-prefix disables network distribution, " |
251 "running tests locally.") | 251 "running tests locally.") |
252 options.no_network = True | 252 options.no_network = True |
253 options.command_prefix = shlex.split(options.command_prefix) | 253 options.command_prefix = shlex.split(options.command_prefix) |
254 options.extra_flags = shlex.split(options.extra_flags) | 254 options.extra_flags = shlex.split(options.extra_flags) |
255 | 255 |
256 if options.gc_stress: | 256 if options.gc_stress: |
257 options.extra_flags += GC_STRESS_FLAGS | 257 options.extra_flags += GC_STRESS_FLAGS |
258 | 258 |
| 259 if options.asan: |
| 260 options.extra_flags.append("--send-idle-notification") |
| 261 |
259 if options.j == 0: | 262 if options.j == 0: |
260 options.j = multiprocessing.cpu_count() | 263 options.j = multiprocessing.cpu_count() |
261 | 264 |
262 while options.random_seed == 0: | 265 while options.random_seed == 0: |
263 options.random_seed = random.SystemRandom().randint(-2147483648, 2147483647) | 266 options.random_seed = random.SystemRandom().randint(-2147483648, 2147483647) |
264 | 267 |
265 def excl(*args): | 268 def excl(*args): |
266 """Returns true if zero or one of multiple arguments are true.""" | 269 """Returns true if zero or one of multiple arguments are true.""" |
267 return reduce(lambda x, y: x + y, args) <= 1 | 270 return reduce(lambda x, y: x + y, args) <= 1 |
268 | 271 |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 exit_code = runner.Run(options.j) | 502 exit_code = runner.Run(options.j) |
500 overall_duration = time.time() - start_time | 503 overall_duration = time.time() - start_time |
501 | 504 |
502 if options.time: | 505 if options.time: |
503 verbose.PrintTestDurations(suites, overall_duration) | 506 verbose.PrintTestDurations(suites, overall_duration) |
504 return exit_code | 507 return exit_code |
505 | 508 |
506 | 509 |
507 if __name__ == "__main__": | 510 if __name__ == "__main__": |
508 sys.exit(Main()) | 511 sys.exit(Main()) |
OLD | NEW |