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

Side by Side Diff: scripts/slave/v8/v8testing.py

Issue 23691069: V8 Buildbot: Make testing i18n the default. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build@master
Patch Set: Deactivate i18n for nacl. Created 7 years, 3 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
« no previous file with comments | « scripts/master/factory/v8_factory.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 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """A tool to run the v8 tests. 6 """A tool to run the v8 tests.
7 7
8 For a list of command-line options, call this script with '--help'. 8 For a list of command-line options, call this script with '--help'.
9 """ 9 """
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 help='Command prefix passed tools/run-test.py') 58 help='Command prefix passed tools/run-test.py')
59 option_parser.add_option('--isolates', 59 option_parser.add_option('--isolates',
60 default=None, 60 default=None,
61 help='Run isolates tests') 61 help='Run isolates tests')
62 option_parser.add_option('--buildbot', 62 option_parser.add_option('--buildbot',
63 default='True', 63 default='True',
64 help='Resolve paths to executables for buildbots') 64 help='Resolve paths to executables for buildbots')
65 option_parser.add_option('--no-presubmit', 65 option_parser.add_option('--no-presubmit',
66 default=False, action='store_true', 66 default=False, action='store_true',
67 help='Skip presubmit checks') 67 help='Skip presubmit checks')
68 option_parser.add_option("--no-i18n", "--noi18n",
69 default=False, action='store_true',
70 help='Skip internationalization tests')
68 option_parser.add_option('--flaky-tests', 71 option_parser.add_option('--flaky-tests',
69 help=('Regard tests marked as flaky ' 72 help=('Regard tests marked as flaky '
70 '(run|skip|dontcare)')) 73 '(run|skip|dontcare)'))
71 74
72 options, args = option_parser.parse_args() 75 options, args = option_parser.parse_args()
73 if args: 76 if args:
74 option_parser.error('Unsupported arguments: %s' % args) 77 option_parser.error('Unsupported arguments: %s' % args)
75 78
76 os.environ['LD_LIBRARY_PATH'] = os.environ.get('PWD') 79 os.environ['LD_LIBRARY_PATH'] = os.environ.get('PWD')
77 80
78 if options.testname == 'presubmit': 81 if options.testname == 'presubmit':
79 cmd = ['python', 'tools/presubmit.py'] 82 cmd = ['python', 'tools/presubmit.py']
80 else: 83 else:
81 cmd = ['python', 'tools/run-tests.py', 84 cmd = ['python', 'tools/run-tests.py',
82 '--progress=verbose', 85 '--progress=verbose',
83 '--outdir=' + outdir, 86 '--outdir=' + outdir,
84 '--arch=' + options.arch, 87 '--arch=' + options.arch,
85 '--mode=' + options.target] 88 '--mode=' + options.target]
86 if options.buildbot == 'True': 89 if options.buildbot == 'True':
87 cmd.extend(['--buildbot']) 90 cmd.extend(['--buildbot'])
88 if options.no_presubmit: 91 if options.no_presubmit:
89 cmd.extend(['--no-presubmit']) 92 cmd.extend(['--no-presubmit'])
93 if options.no_i18n:
94 cmd.extend(['--no-i18n'])
90 if options.testname: 95 if options.testname:
91 cmd.extend([options.testname]) 96 cmd.extend([options.testname])
92 if options.testname == 'test262': 97 if options.testname == 'test262':
93 cmd.extend(['--download-data']) 98 cmd.extend(['--download-data'])
94 if options.testname == 'mozilla': 99 if options.testname == 'mozilla':
95 # Mozilla tests requires a number of tests to timeout, set it a bit lower. 100 # Mozilla tests requires a number of tests to timeout, set it a bit lower.
96 if options.arch in ('arm', 'mipsel'): 101 if options.arch in ('arm', 'mipsel'):
97 cmd.extend(['--timeout=180']) 102 cmd.extend(['--timeout=180'])
98 else: 103 else:
99 cmd.extend(['--timeout=120']) 104 cmd.extend(['--timeout=120'])
(...skipping 20 matching lines...) Expand all
120 125
121 if options.shard_count > 1: 126 if options.shard_count > 1:
122 cmd.extend(['--shard-count=%s' % options.shard_count, 127 cmd.extend(['--shard-count=%s' % options.shard_count,
123 '--shard-run=%s' % options.shard_run]) 128 '--shard-run=%s' % options.shard_run])
124 129
125 return chromium_utils.RunCommand(cmd) 130 return chromium_utils.RunCommand(cmd)
126 131
127 132
128 if __name__ == '__main__': 133 if __name__ == '__main__':
129 sys.exit(main()) 134 sys.exit(main())
OLDNEW
« no previous file with comments | « scripts/master/factory/v8_factory.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698