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 import optparse | 6 import optparse |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 import tarfile | 9 import tarfile |
10 | 10 |
11 import buildbot_common | 11 import buildbot_common |
12 | 12 |
13 SDK_BUILD_DIR = buildbot_common.SCRIPT_DIR | 13 SDK_BUILD_DIR = buildbot_common.SCRIPT_DIR |
14 MONO_BUILD_DIR = os.path.join(SDK_BUILD_DIR, 'mono_build') | 14 MONO_BUILD_DIR = os.path.join(SDK_BUILD_DIR, 'mono_build') |
15 MONO_DIR = os.path.join(MONO_BUILD_DIR, 'nacl-mono') | 15 MONO_DIR = os.path.join(MONO_BUILD_DIR, 'nacl-mono') |
16 | 16 |
| 17 |
17 def main(args): | 18 def main(args): |
18 parser = optparse.OptionParser() | 19 parser = optparse.OptionParser() |
19 parser.add_option('--arch', | 20 parser.add_option('--arch', |
20 help='Target architecture', | 21 help='Target architecture', |
21 dest='arch', | 22 dest='arch', |
22 default='x86-32') | 23 default='x86-32') |
23 parser.add_option('--sdk_version', | 24 parser.add_option('--sdk_version', |
24 help='SDK Version (pepper_[X], r[X])' | 25 help='SDK Version (pepper_[X], r[X])' |
25 ' (default=buildbot revision)', | 26 ' (default=buildbot revision)', |
26 dest='sdk_version', | 27 dest='sdk_version', |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 arch_to_output_folder[options.arch], # Build dir | 101 arch_to_output_folder[options.arch], # Build dir |
101 options.install_dir], | 102 options.install_dir], |
102 cwd=SDK_BUILD_DIR) | 103 cwd=SDK_BUILD_DIR) |
103 | 104 |
104 buildbot_common.BuildStep(build_prefix + 'Test Mono') | 105 buildbot_common.BuildStep(build_prefix + 'Test Mono') |
105 buildbot_common.Run(['make', 'check', '-j8'], | 106 buildbot_common.Run(['make', 'check', '-j8'], |
106 cwd=os.path.join(SDK_BUILD_DIR, arch_to_output_folder[options.arch])) | 107 cwd=os.path.join(SDK_BUILD_DIR, arch_to_output_folder[options.arch])) |
107 | 108 |
108 return 0 | 109 return 0 |
109 | 110 |
| 111 |
110 if __name__ == '__main__': | 112 if __name__ == '__main__': |
111 sys.exit(main(sys.argv)) | 113 sys.exit(main(sys.argv)) |
OLD | NEW |