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

Side by Side Diff: native_client_sdk/src/build_tools/test_sdk.py

Issue 924253002: [NaCL SDK] Add initial support for nacl-clang (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 """Script for a testing an existing SDK. 6 """Script for a testing an existing SDK.
7 7
8 This script is normally run immediately after build_sdk.py. 8 This script is normally run immediately after build_sdk.py.
9 """ 9 """
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 # compiler. 125 # compiler.
126 if getos.GetPlatform() == 'linux': 126 if getos.GetPlatform() == 'linux':
127 if sanitizer: 127 if sanitizer:
128 configs = ('Debug',) 128 configs = ('Debug',)
129 for config in configs: 129 for config in configs:
130 RunTest(location, 'linux', config) 130 RunTest(location, 'linux', config)
131 131
132 if sanitizer: 132 if sanitizer:
133 continue 133 continue
134 134
135 for toolchain in ('newlib', 'glibc', 'pnacl'): 135 for toolchain in ('clang-newlib', 'newlib', 'glibc', 'pnacl'):
136 for arch in archs: 136 for arch in archs:
137 for config in configs: 137 for config in configs:
138 RunTest(location, toolchain, config, arch) 138 RunTest(location, toolchain, config, arch)
139 139
140 140
141 def StepRunBrowserTests(toolchains, experimental): 141 def StepRunBrowserTests(toolchains, experimental):
142 buildbot_common.BuildStep('Run Tests') 142 buildbot_common.BuildStep('Run Tests')
143 143
144 args = [ 144 args = [
145 sys.executable, 145 sys.executable,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 try: 180 try:
181 import optcomplete 181 import optcomplete
182 optcomplete.autocomplete(parser) 182 optcomplete.autocomplete(parser)
183 except ImportError: 183 except ImportError:
184 pass 184 pass
185 185
186 options = parser.parse_args(args) 186 options = parser.parse_args(args)
187 187
188 pepper_ver = str(int(build_version.ChromeMajorVersion())) 188 pepper_ver = str(int(build_version.ChromeMajorVersion()))
189 pepperdir = os.path.join(OUT_DIR, 'pepper_' + pepper_ver) 189 pepperdir = os.path.join(OUT_DIR, 'pepper_' + pepper_ver)
190 toolchains = ['newlib', 'glibc', 'pnacl'] 190 toolchains = ['clang-newlib', 'newlib', 'glibc', 'pnacl']
191 toolchains.append(getos.GetPlatform()) 191 toolchains.append(getos.GetPlatform())
192 192
193 if options.verbose: 193 if options.verbose:
194 build_projects.verbose = True 194 build_projects.verbose = True
195 195
196 phases = [ 196 phases = [
197 ('build_examples', StepBuildExamples, pepperdir), 197 ('build_examples', StepBuildExamples, pepperdir),
198 ('copy_tests', StepCopyTests, pepperdir, toolchains, options.experimental), 198 ('copy_tests', StepCopyTests, pepperdir, toolchains, options.experimental),
199 ('build_tests', StepBuildTests, pepperdir), 199 ('build_tests', StepBuildTests, pepperdir),
200 ('sel_ldr_tests', StepRunSelLdrTests, pepperdir, None), 200 ('sel_ldr_tests', StepRunSelLdrTests, pepperdir, None),
(...skipping 28 matching lines...) Expand all
229 phase_func(*phase_args) 229 phase_func(*phase_args)
230 230
231 return 0 231 return 0
232 232
233 233
234 if __name__ == '__main__': 234 if __name__ == '__main__':
235 try: 235 try:
236 sys.exit(main(sys.argv[1:])) 236 sys.exit(main(sys.argv[1:]))
237 except KeyboardInterrupt: 237 except KeyboardInterrupt:
238 buildbot_common.ErrorExit('test_sdk: interrupted') 238 buildbot_common.ErrorExit('test_sdk: interrupted')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698