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

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

Issue 2353683003: [NaCl SDK] Re-enable 32-bit sel_ldr build for mac (Closed)
Patch Set: . Created 4 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 | « native_client_sdk/src/build_tools/sdk_files.list ('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 """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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 args = ['STANDALONE=1', 'TOOLCHAIN=%s' % toolchain] 94 args = ['STANDALONE=1', 'TOOLCHAIN=%s' % toolchain]
95 args += GetSanitizerArgs(sanitizer) 95 args += GetSanitizerArgs(sanitizer)
96 if arch is not None: 96 if arch is not None:
97 args.append('NACL_ARCH=%s' % arch) 97 args.append('NACL_ARCH=%s' % arch)
98 98
99 build_projects.BuildProjectsBranch(pepperdir, test, clean=False, 99 build_projects.BuildProjectsBranch(pepperdir, test, clean=False,
100 deps=False, config=config, 100 deps=False, config=config,
101 args=args + ['run']) 101 args=args + ['run'])
102 102
103 if getos.GetPlatform() == 'win': 103 if getos.GetPlatform() == 'win':
104 # On win32 we only support running on the system 104 # On win32 we only support running on the system arch
105 # arch
106 archs = (getos.GetSystemArch('win'),) 105 archs = (getos.GetSystemArch('win'),)
107 elif getos.GetPlatform() == 'mac': 106 elif getos.GetPlatform() == 'mac':
108 # We only ship 64-bit version of sel_ldr on mac. 107 # On mac we can run both 32 and 64-bit
109 archs = ('x86_64',) 108 archs = ('x86_64', 'x86_32')
110 else: 109 else:
111 # On linux we can run both 32 and 64-bit, and arm (via qemu) 110 # On linux we can run both 32 and 64-bit, and arm (via qemu)
112 archs = ('x86_64', 'x86_32', 'arm') 111 archs = ('x86_64', 'x86_32', 'arm')
113 112
114 for root, projects in tree.iteritems(): 113 for root, projects in tree.iteritems():
115 for project in projects: 114 for project in projects:
116 if sanitizer: 115 if sanitizer:
117 sanitizer_name = '[sanitizer=%s]' % sanitizer 116 sanitizer_name = '[sanitizer=%s]' % sanitizer
118 else: 117 else:
119 sanitizer_name = '' 118 sanitizer_name = ''
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 phase_func(*phase_args) 247 phase_func(*phase_args)
249 248
250 return 0 249 return 0
251 250
252 251
253 if __name__ == '__main__': 252 if __name__ == '__main__':
254 try: 253 try:
255 sys.exit(main(sys.argv[1:])) 254 sys.exit(main(sys.argv[1:]))
256 except KeyboardInterrupt: 255 except KeyboardInterrupt:
257 buildbot_common.ErrorExit('test_sdk: interrupted') 256 buildbot_common.ErrorExit('test_sdk: interrupted')
OLDNEW
« no previous file with comments | « native_client_sdk/src/build_tools/sdk_files.list ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698