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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 SUPPORTED_ARCHS = ["android_arm", | 68 SUPPORTED_ARCHS = ["android_arm", |
69 "android_ia32", | 69 "android_ia32", |
70 "arm", | 70 "arm", |
71 "ia32", | 71 "ia32", |
72 "ppc", | 72 "ppc", |
73 "ppc64", | 73 "ppc64", |
74 "s390", | 74 "s390", |
75 "s390x", | 75 "s390x", |
76 "mipsel", | 76 "mipsel", |
77 "nacl_ia32", | |
78 "nacl_x64", | |
79 "x64"] | 77 "x64"] |
80 # Double the timeout for these: | 78 # Double the timeout for these: |
81 SLOW_ARCHS = ["android_arm", | 79 SLOW_ARCHS = ["android_arm", |
82 "android_ia32", | 80 "android_ia32", |
83 "arm", | 81 "arm", |
84 "mipsel", | 82 "mipsel"] |
85 "nacl_ia32", | |
86 "nacl_x64"] | |
87 MAX_DEOPT = 1000000000 | 83 MAX_DEOPT = 1000000000 |
88 DISTRIBUTION_MODES = ["smooth", "random"] | 84 DISTRIBUTION_MODES = ["smooth", "random"] |
89 | 85 |
90 | 86 |
91 class RandomDistribution: | 87 class RandomDistribution: |
92 def __init__(self, seed=None): | 88 def __init__(self, seed=None): |
93 seed = seed or random.randint(1, sys.maxint) | 89 seed = seed or random.randint(1, sys.maxint) |
94 print "Using random distribution with seed %d" % seed | 90 print "Using random distribution with seed %d" % seed |
95 self._random = random.Random(seed) | 91 self._random = random.Random(seed) |
96 | 92 |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests) | 486 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests) |
491 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() | 487 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() |
492 runner = execution.Runner(suites, progress_indicator, ctx) | 488 runner = execution.Runner(suites, progress_indicator, ctx) |
493 | 489 |
494 code = runner.Run(options.j) | 490 code = runner.Run(options.j) |
495 return exit_code or code | 491 return exit_code or code |
496 | 492 |
497 | 493 |
498 if __name__ == "__main__": | 494 if __name__ == "__main__": |
499 sys.exit(Main()) | 495 sys.exit(Main()) |
OLD | NEW |