Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1779)

Side by Side Diff: tools/test-wrapper-gypbuild.py

Issue 10696048: Add Makefile targets for running tests on Android. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add quotes Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 tokens = options.arch_and_mode.split(".") 141 tokens = options.arch_and_mode.split(".")
142 options.arch = tokens[0] 142 options.arch = tokens[0]
143 options.mode = tokens[1] 143 options.mode = tokens[1]
144 options.mode = options.mode.split(',') 144 options.mode = options.mode.split(',')
145 options.arch = options.arch.split(',') 145 options.arch = options.arch.split(',')
146 for mode in options.mode: 146 for mode in options.mode:
147 if not mode.lower() in ['debug', 'release']: 147 if not mode.lower() in ['debug', 'release']:
148 print "Unknown mode %s" % mode 148 print "Unknown mode %s" % mode
149 return False 149 return False
150 for arch in options.arch: 150 for arch in options.arch:
151 if not arch in ['ia32', 'x64', 'arm', 'mips']: 151 if not arch in ['ia32', 'x64', 'arm', 'mips', 'android']:
152 print "Unknown architecture %s" % arch 152 print "Unknown architecture %s" % arch
153 return False 153 return False
154 if options.buildbot: 154 if options.buildbot:
155 # Buildbots run presubmit tests as a separate step. 155 # Buildbots run presubmit tests as a separate step.
156 options.no_presubmit = True 156 options.no_presubmit = True
157 return True 157 return True
158 158
159 159
160 def PassOnOptions(options): 160 def PassOnOptions(options):
161 result = [] 161 result = []
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 shell=True, 256 shell=True,
257 cwd=workspace, 257 cwd=workspace,
258 env=env) 258 env=env)
259 returncodes = child.wait() 259 returncodes = child.wait()
260 260
261 return returncodes 261 return returncodes
262 262
263 263
264 if __name__ == '__main__': 264 if __name__ == '__main__':
265 sys.exit(Main()) 265 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698