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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 args = [ | 146 args = [ |
147 sys.executable, | 147 sys.executable, |
148 os.path.join(SCRIPT_DIR, 'test_projects.py'), | 148 os.path.join(SCRIPT_DIR, 'test_projects.py'), |
149 '--retry-times=3', | 149 '--retry-times=3', |
150 ] | 150 ] |
151 | 151 |
152 if experimental: | 152 if experimental: |
153 args.append('-x') | 153 args.append('-x') |
154 for toolchain in toolchains: | 154 for toolchain in toolchains: |
| 155 # TODO(sbc): Re-enable brower tests for native PPAPI platforms: |
| 156 # http://crbug.com/646666 |
| 157 if toolchain in ['mac', 'linux', 'win']: |
| 158 continue |
155 args.extend(['-t', toolchain]) | 159 args.extend(['-t', toolchain]) |
156 | 160 |
157 try: | 161 try: |
158 subprocess.check_call(args) | 162 subprocess.check_call(args) |
159 except subprocess.CalledProcessError: | 163 except subprocess.CalledProcessError: |
160 buildbot_common.ErrorExit('Error running tests.') | 164 buildbot_common.ErrorExit('Error running tests.') |
161 | 165 |
162 | 166 |
163 def main(args): | 167 def main(args): |
164 parser = argparse.ArgumentParser(description=__doc__) | 168 parser = argparse.ArgumentParser(description=__doc__) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 phase_func(*phase_args) | 248 phase_func(*phase_args) |
245 | 249 |
246 return 0 | 250 return 0 |
247 | 251 |
248 | 252 |
249 if __name__ == '__main__': | 253 if __name__ == '__main__': |
250 try: | 254 try: |
251 sys.exit(main(sys.argv[1:])) | 255 sys.exit(main(sys.argv[1:])) |
252 except KeyboardInterrupt: | 256 except KeyboardInterrupt: |
253 buildbot_common.ErrorExit('test_sdk: interrupted') | 257 buildbot_common.ErrorExit('test_sdk: interrupted') |
OLD | NEW |