OLD | NEW |
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 Loading... |
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'): | 135 for toolchain in ('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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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)) | 236 sys.exit(main(sys.argv)) |
237 except KeyboardInterrupt: | 237 except KeyboardInterrupt: |
238 buildbot_common.ErrorExit('test_sdk: interrupted') | 238 buildbot_common.ErrorExit('test_sdk: interrupted') |
OLD | NEW |