| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 105 # arch | 105 # arch |
| 106 archs = (getos.GetSystemArch('win'),) | 106 archs = (getos.GetSystemArch('win'),) |
| 107 elif getos.GetPlatform() == 'mac': | 107 elif getos.GetPlatform() == 'mac': |
| 108 # We only ship 32-bit version of sel_ldr on mac. | 108 # We only ship 64-bit version of sel_ldr on mac. |
| 109 archs = ('x86_32',) | 109 archs = ('x86_64',) |
| 110 else: | 110 else: |
| 111 # On linux we can run both 32 and 64-bit, and arm (via qemu) | 111 # On linux we can run both 32 and 64-bit, and arm (via qemu) |
| 112 archs = ('x86_64', 'x86_32', 'arm') | 112 archs = ('x86_64', 'x86_32', 'arm') |
| 113 | 113 |
| 114 for root, projects in tree.iteritems(): | 114 for root, projects in tree.iteritems(): |
| 115 for project in projects: | 115 for project in projects: |
| 116 if sanitizer: | 116 if sanitizer: |
| 117 sanitizer_name = '[sanitizer=%s]' % sanitizer | 117 sanitizer_name = '[sanitizer=%s]' % sanitizer |
| 118 else: | 118 else: |
| 119 sanitizer_name = '' | 119 sanitizer_name = '' |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 phase_func(*phase_args) | 244 phase_func(*phase_args) |
| 245 | 245 |
| 246 return 0 | 246 return 0 |
| 247 | 247 |
| 248 | 248 |
| 249 if __name__ == '__main__': | 249 if __name__ == '__main__': |
| 250 try: | 250 try: |
| 251 sys.exit(main(sys.argv[1:])) | 251 sys.exit(main(sys.argv[1:])) |
| 252 except KeyboardInterrupt: | 252 except KeyboardInterrupt: |
| 253 buildbot_common.ErrorExit('test_sdk: interrupted') | 253 buildbot_common.ErrorExit('test_sdk: interrupted') |
| OLD | NEW |