OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2011 the V8 project authors. All rights reserved. | 3 # Copyright 2011 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 if options.report: | 162 if options.report: |
163 result += ['--report'] | 163 result += ['--report'] |
164 if options.suite != []: | 164 if options.suite != []: |
165 for suite in options.suite: | 165 for suite in options.suite: |
166 result += ['--suite=../../test/' + suite] | 166 result += ['--suite=../../test/' + suite] |
167 if options.timeout != 60: | 167 if options.timeout != 60: |
168 result += ['--timeout=%s' % options.timeout] | 168 result += ['--timeout=%s' % options.timeout] |
169 if options.snapshot: | 169 if options.snapshot: |
170 result += ['--snapshot'] | 170 result += ['--snapshot'] |
171 if options.special_command: | 171 if options.special_command: |
172 result += ['--special-command=' + options.special_command] | 172 result += ['--special-command="%s"' % options.special_command] |
173 if options.valgrind: | 173 if options.valgrind: |
174 result += ['--valgrind'] | 174 result += ['--valgrind'] |
175 if options.cat: | 175 if options.cat: |
176 result += ['--cat'] | 176 result += ['--cat'] |
177 if options.warn_unused: | 177 if options.warn_unused: |
178 result += ['--warn-unused'] | 178 result += ['--warn-unused'] |
179 if options.j != 1: | 179 if options.j != 1: |
180 result += ['-j%s' % options.j] | 180 result += ['-j%s' % options.j] |
181 if options.time: | 181 if options.time: |
182 result += ['--time'] | 182 result += ['--time'] |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 shell=True, | 246 shell=True, |
247 cwd=workspace, | 247 cwd=workspace, |
248 env=env) | 248 env=env) |
249 returncodes = child.wait() | 249 returncodes = child.wait() |
250 | 250 |
251 return returncodes | 251 return returncodes |
252 | 252 |
253 | 253 |
254 if __name__ == '__main__': | 254 if __name__ == '__main__': |
255 sys.exit(Main()) | 255 sys.exit(Main()) |
OLD | NEW |