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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 (options, args) = parser.parse_args() | 210 (options, args) = parser.parse_args() |
211 if not ProcessOptions(options): | 211 if not ProcessOptions(options): |
212 parser.print_help() | 212 parser.print_help() |
213 return 1 | 213 return 1 |
214 | 214 |
215 workspace = abspath(join(dirname(sys.argv[0]), '..')) | 215 workspace = abspath(join(dirname(sys.argv[0]), '..')) |
216 returncodes = 0 | 216 returncodes = 0 |
217 | 217 |
218 if not options.no_presubmit: | 218 if not options.no_presubmit: |
219 print ">>> running presubmit tests" | 219 print ">>> running presubmit tests" |
220 returncodes += subprocess.call([workspace + '/tools/presubmit.py']) | 220 returncodes += subprocess.call([sys.executable, |
| 221 workspace + '/tools/presubmit.py']) |
221 | 222 |
222 args_for_children = ['python'] | 223 args_for_children = ['python'] |
223 args_for_children += [workspace + '/tools/test.py'] + PassOnOptions(options) | 224 args_for_children += [workspace + '/tools/test.py'] + PassOnOptions(options) |
224 args_for_children += ['--no-build', '--build-system=gyp'] | 225 args_for_children += ['--no-build', '--build-system=gyp'] |
225 for arg in args: | 226 for arg in args: |
226 args_for_children += [arg] | 227 args_for_children += [arg] |
227 env = os.environ | 228 env = os.environ |
228 | 229 |
229 for mode in options.mode: | 230 for mode in options.mode: |
230 for arch in options.arch: | 231 for arch in options.arch: |
(...skipping 25 matching lines...) Expand all Loading... |
256 shell=True, | 257 shell=True, |
257 cwd=workspace, | 258 cwd=workspace, |
258 env=env) | 259 env=env) |
259 returncodes = child.wait() | 260 returncodes = child.wait() |
260 | 261 |
261 return returncodes | 262 return returncodes |
262 | 263 |
263 | 264 |
264 if __name__ == '__main__': | 265 if __name__ == '__main__': |
265 sys.exit(Main()) | 266 sys.exit(Main()) |
OLD | NEW |