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

Side by Side Diff: tools/run-tests.py

Issue 11193055: Fix test runner for Android. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 | « test/cctest/testcfg.py ('k') | tools/testrunner/local/commands.py » ('j') | 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 # Use this to run several variants of the tests. 54 # Use this to run several variants of the tests.
55 VARIANT_FLAGS = [[], 55 VARIANT_FLAGS = [[],
56 ["--stress-opt", "--always-opt"], 56 ["--stress-opt", "--always-opt"],
57 ["--nocrankshaft"]] 57 ["--nocrankshaft"]]
58 MODE_FLAGS = { 58 MODE_FLAGS = {
59 "debug" : ["--nobreak-on-abort", "--nodead-code-elimination", 59 "debug" : ["--nobreak-on-abort", "--nodead-code-elimination",
60 "--enable-slow-asserts", "--debug-code", "--verify-heap"], 60 "--enable-slow-asserts", "--debug-code", "--verify-heap"],
61 "release" : ["--nobreak-on-abort", "--nodead-code-elimination"]} 61 "release" : ["--nobreak-on-abort", "--nodead-code-elimination"]}
62 62
63 SUPPORTED_ARCHS = ["android_arm",
64 "android_ia32",
65 "arm",
66 "ia32",
67 "mipsel",
68 "x64"]
69
63 70
64 def BuildOptions(): 71 def BuildOptions():
65 result = optparse.OptionParser() 72 result = optparse.OptionParser()
66 result.add_option("--arch", 73 result.add_option("--arch",
67 help=("The architecture to run tests for, " 74 help=("The architecture to run tests for, "
68 "'auto' or 'native' for auto-detect"), 75 "'auto' or 'native' for auto-detect"),
69 default="ia32,x64,arm") 76 default="ia32,x64,arm")
70 result.add_option("--arch-and-mode", 77 result.add_option("--arch-and-mode",
71 help="Architecture and mode in the format 'arch.mode'", 78 help="Architecture and mode in the format 'arch.mode'",
72 default=None) 79 default=None)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 options.mode = tokens[1] 150 options.mode = tokens[1]
144 options.mode = options.mode.split(",") 151 options.mode = options.mode.split(",")
145 for mode in options.mode: 152 for mode in options.mode:
146 if not mode in ["debug", "release"]: 153 if not mode in ["debug", "release"]:
147 print "Unknown mode %s" % mode 154 print "Unknown mode %s" % mode
148 return False 155 return False
149 if options.arch in ["auto", "native"]: 156 if options.arch in ["auto", "native"]:
150 options.arch = ARCH_GUESS 157 options.arch = ARCH_GUESS
151 options.arch = options.arch.split(",") 158 options.arch = options.arch.split(",")
152 for arch in options.arch: 159 for arch in options.arch:
153 if not arch in ['ia32', 'x64', 'arm', 'mipsel']: 160 if not arch in SUPPORTED_ARCHS:
154 print "Unknown architecture %s" % arch 161 print "Unknown architecture %s" % arch
155 return False 162 return False
156 163
157 # Special processing of other options, sorted alphabetically. 164 # Special processing of other options, sorted alphabetically.
158 165
159 if options.buildbot: 166 if options.buildbot:
160 # Buildbots run presubmit tests as a separate step. 167 # Buildbots run presubmit tests as a separate step.
161 options.no_presubmit = True 168 options.no_presubmit = True
162 options.no_network = True 169 options.no_network = True
163 if options.command_prefix: 170 if options.command_prefix:
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 except KeyboardInterrupt: 355 except KeyboardInterrupt:
349 return 1 356 return 1
350 357
351 if options.time: 358 if options.time:
352 verbose.PrintTestDurations(suites, overall_duration) 359 verbose.PrintTestDurations(suites, overall_duration)
353 return exit_code 360 return exit_code
354 361
355 362
356 if __name__ == "__main__": 363 if __name__ == "__main__":
357 sys.exit(Main()) 364 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/cctest/testcfg.py ('k') | tools/testrunner/local/commands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698