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 12 matching lines...) Expand all Loading... |
23 SDK_SRC_DIR = os.path.dirname(SCRIPT_DIR) | 23 SDK_SRC_DIR = os.path.dirname(SCRIPT_DIR) |
24 SDK_LIBRARY_DIR = os.path.join(SDK_SRC_DIR, 'libraries') | 24 SDK_LIBRARY_DIR = os.path.join(SDK_SRC_DIR, 'libraries') |
25 SDK_DIR = os.path.dirname(SDK_SRC_DIR) | 25 SDK_DIR = os.path.dirname(SDK_SRC_DIR) |
26 SRC_DIR = os.path.dirname(SDK_DIR) | 26 SRC_DIR = os.path.dirname(SDK_DIR) |
27 OUT_DIR = os.path.join(SRC_DIR, 'out') | 27 OUT_DIR = os.path.join(SRC_DIR, 'out') |
28 | 28 |
29 sys.path.append(os.path.join(SDK_SRC_DIR, 'tools')) | 29 sys.path.append(os.path.join(SDK_SRC_DIR, 'tools')) |
30 import getos | 30 import getos |
31 | 31 |
32 def StepBuildExamples(pepperdir): | 32 def StepBuildExamples(pepperdir): |
| 33 build_sdk.BuildStepMakeAll(pepperdir, 'getting_started', |
| 34 'Build Getting Started', |
| 35 deps=False, config='Release') |
| 36 |
33 for config in ('Debug', 'Release'): | 37 for config in ('Debug', 'Release'): |
34 build_sdk.BuildStepMakeAll(pepperdir, 'examples', | 38 build_sdk.BuildStepMakeAll(pepperdir, 'examples', |
35 'Build Examples (%s)' % config, | 39 'Build Examples (%s)' % config, |
36 deps=False, config=config) | 40 deps=False, config=config) |
37 | 41 |
38 | 42 |
39 def StepCopyTests(pepperdir, toolchains, build_experimental): | 43 def StepCopyTests(pepperdir, toolchains, build_experimental): |
40 buildbot_common.BuildStep('Copy Tests') | 44 buildbot_common.BuildStep('Copy Tests') |
41 | 45 |
42 # Update test libraries and test apps | 46 # Update test libraries and test apps |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 phase_func(*phase_args) | 168 phase_func(*phase_args) |
165 | 169 |
166 return 0 | 170 return 0 |
167 | 171 |
168 | 172 |
169 if __name__ == '__main__': | 173 if __name__ == '__main__': |
170 try: | 174 try: |
171 sys.exit(main(sys.argv)) | 175 sys.exit(main(sys.argv)) |
172 except KeyboardInterrupt: | 176 except KeyboardInterrupt: |
173 buildbot_common.ErrorExit('test_sdk: interrupted') | 177 buildbot_common.ErrorExit('test_sdk: interrupted') |
OLD | NEW |