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

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

Issue 146213004: A64: Synchronize with r16849. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/gyp/v8.gyp ('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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 result.add_option("--extra-flags", 107 result.add_option("--extra-flags",
108 help="Additional flags to pass to each test command", 108 help="Additional flags to pass to each test command",
109 default="") 109 default="")
110 result.add_option("--isolates", help="Whether to test isolates", 110 result.add_option("--isolates", help="Whether to test isolates",
111 default=False, action="store_true") 111 default=False, action="store_true")
112 result.add_option("-j", help="The number of parallel tasks to run", 112 result.add_option("-j", help="The number of parallel tasks to run",
113 default=0, type="int") 113 default=0, type="int")
114 result.add_option("-m", "--mode", 114 result.add_option("-m", "--mode",
115 help="The test modes in which to run (comma-separated)", 115 help="The test modes in which to run (comma-separated)",
116 default="release,debug") 116 default="release,debug")
117 result.add_option("--no-i18n", "--noi18n",
118 help="Skip internationalization tests",
119 default=False, action="store_true")
117 result.add_option("--no-network", "--nonetwork", 120 result.add_option("--no-network", "--nonetwork",
118 help="Don't distribute tests on the network", 121 help="Don't distribute tests on the network",
119 default=(utils.GuessOS() != "linux"), 122 default=(utils.GuessOS() != "linux"),
120 dest="no_network", action="store_true") 123 dest="no_network", action="store_true")
121 result.add_option("--no-presubmit", "--nopresubmit", 124 result.add_option("--no-presubmit", "--nopresubmit",
122 help='Skip presubmit checks', 125 help='Skip presubmit checks',
123 default=False, dest="no_presubmit", action="store_true") 126 default=False, dest="no_presubmit", action="store_true")
124 result.add_option("--no-stress", "--nostress", 127 result.add_option("--no-stress", "--nostress",
125 help="Don't run crankshaft --always-opt --stress-op test", 128 help="Don't run crankshaft --always-opt --stress-op test",
126 default=False, dest="no_stress", action="store_true") 129 default=False, dest="no_stress", action="store_true")
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 if options.stress_only: 212 if options.stress_only:
210 VARIANT_FLAGS = [["--stress-opt", "--always-opt"]] 213 VARIANT_FLAGS = [["--stress-opt", "--always-opt"]]
211 if options.valgrind: 214 if options.valgrind:
212 run_valgrind = os.path.join("tools", "run-valgrind.py") 215 run_valgrind = os.path.join("tools", "run-valgrind.py")
213 # This is OK for distributed running, so we don't need to set no_network. 216 # This is OK for distributed running, so we don't need to set no_network.
214 options.command_prefix = (["python", "-u", run_valgrind] + 217 options.command_prefix = (["python", "-u", run_valgrind] +
215 options.command_prefix) 218 options.command_prefix)
216 if not options.flaky_tests in ["run", "skip", "dontcare"]: 219 if not options.flaky_tests in ["run", "skip", "dontcare"]:
217 print "Unknown flaky test mode %s" % options.flaky_tests 220 print "Unknown flaky test mode %s" % options.flaky_tests
218 return False 221 return False
222 if not options.no_i18n:
223 DEFAULT_TESTS.append("intl")
219 return True 224 return True
220 225
221 226
222 def ShardTests(tests, shard_count, shard_run): 227 def ShardTests(tests, shard_count, shard_run):
223 if shard_count < 2: 228 if shard_count < 2:
224 return tests 229 return tests
225 if shard_run < 1 or shard_run > shard_count: 230 if shard_run < 1 or shard_run > shard_count:
226 print "shard-run not a valid number, should be in [1:shard-count]" 231 print "shard-run not a valid number, should be in [1:shard-count]"
227 print "defaulting back to running all tests" 232 print "defaulting back to running all tests"
228 return tests 233 return tests
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 except KeyboardInterrupt: 397 except KeyboardInterrupt:
393 return 1 398 return 1
394 399
395 if options.time: 400 if options.time:
396 verbose.PrintTestDurations(suites, overall_duration) 401 verbose.PrintTestDurations(suites, overall_duration)
397 return exit_code 402 return exit_code
398 403
399 404
400 if __name__ == "__main__": 405 if __name__ == "__main__":
401 sys.exit(Main()) 406 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/gyp/v8.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698