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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 dest="store_unexpected_output", default=True, action="store_true") | 105 dest="store_unexpected_output", default=True, action="store_true") |
106 result.add_option("--no-store-unexpected-output", | 106 result.add_option("--no-store-unexpected-output", |
107 help="Deletes the temporary JS files from tests that fails", | 107 help="Deletes the temporary JS files from tests that fails", |
108 dest="store_unexpected_output", action="store_false") | 108 dest="store_unexpected_output", action="store_false") |
109 result.add_option("--stress-only", | 109 result.add_option("--stress-only", |
110 help="Only run tests with --always-opt --stress-opt", | 110 help="Only run tests with --always-opt --stress-opt", |
111 default=False, action="store_true") | 111 default=False, action="store_true") |
112 result.add_option("--nostress", | 112 result.add_option("--nostress", |
113 help="Don't run crankshaft --always-opt --stress-op test", | 113 help="Don't run crankshaft --always-opt --stress-op test", |
114 default=False, action="store_true") | 114 default=False, action="store_true") |
115 result.add_option("--crankshaft", | |
116 help="Run with the --crankshaft flag", | |
117 default=False, action="store_true") | |
118 result.add_option("--shard-count", | 115 result.add_option("--shard-count", |
119 help="Split testsuites into this number of shards", | 116 help="Split testsuites into this number of shards", |
120 default=1, type="int") | 117 default=1, type="int") |
121 result.add_option("--shard-run", | 118 result.add_option("--shard-run", |
122 help="Run this shard from the split up tests.", | 119 help="Run this shard from the split up tests.", |
123 default=1, type="int") | 120 default=1, type="int") |
124 result.add_option("--noprof", help="Disable profiling support", | 121 result.add_option("--noprof", help="Disable profiling support", |
125 default=False) | 122 default=False) |
126 | 123 |
127 # Flags present in the original test.py that are unsupported in this wrapper: | 124 # Flags present in the original test.py that are unsupported in this wrapper: |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 if not options.suppress_dialogs: | 189 if not options.suppress_dialogs: |
193 result += ['--no-suppress-dialogs'] | 190 result += ['--no-suppress-dialogs'] |
194 if options.isolates: | 191 if options.isolates: |
195 result += ['--isolates'] | 192 result += ['--isolates'] |
196 if not options.store_unexpected_output: | 193 if not options.store_unexpected_output: |
197 result += ['--no-store-unexpected_output'] | 194 result += ['--no-store-unexpected_output'] |
198 if options.stress_only: | 195 if options.stress_only: |
199 result += ['--stress-only'] | 196 result += ['--stress-only'] |
200 if options.nostress: | 197 if options.nostress: |
201 result += ['--nostress'] | 198 result += ['--nostress'] |
202 if options.crankshaft: | |
203 result += ['--crankshaft'] | |
204 if options.shard_count != 1: | 199 if options.shard_count != 1: |
205 result += ['--shard-count=%s' % options.shard_count] | 200 result += ['--shard-count=%s' % options.shard_count] |
206 if options.shard_run != 1: | 201 if options.shard_run != 1: |
207 result += ['--shard-run=%s' % options.shard_run] | 202 result += ['--shard-run=%s' % options.shard_run] |
208 if options.noprof: | 203 if options.noprof: |
209 result += ['--noprof'] | 204 result += ['--noprof'] |
210 return result | 205 return result |
211 | 206 |
212 | 207 |
213 def Main(): | 208 def Main(): |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 shell=True, | 256 shell=True, |
262 cwd=workspace, | 257 cwd=workspace, |
263 env=env) | 258 env=env) |
264 returncodes = child.wait() | 259 returncodes = child.wait() |
265 | 260 |
266 return returncodes | 261 return returncodes |
267 | 262 |
268 | 263 |
269 if __name__ == '__main__': | 264 if __name__ == '__main__': |
270 sys.exit(Main()) | 265 sys.exit(Main()) |
OLD | NEW |