OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/python | |
2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | |
ricow1
2014/01/26 14:28:34
2014
| |
3 # for details. All rights reserved. Use of this source code is governed by a | |
4 # BSD-style license that can be found in the LICENSE file. | |
5 | |
6 """ | |
7 Dartium on Android buildbot steps. | |
8 | |
9 Runs steps after the buildbot builds Dartium on Android, | |
10 which should upload the APK to an attached device, and run | |
11 Dart and chromium tests on it. | |
12 """ | |
13 | |
14 import sys | |
15 import optparse | |
16 | |
17 def GetOptionsParser(): | |
18 parser = optparse.OptionParser("usage: %prog [options]") | |
19 parser.add_option("--build-products-dir", | |
20 help="The directory containing the products of the build.") | |
21 return parser | |
22 | |
23 def main(): | |
24 if sys.platform != 'linux2': | |
25 print "This script was only tested on linux. Please run it on linux!" | |
26 sys.exit(1) | |
27 | |
28 parser = GetOptionsParser() | |
29 (options, args) = parser.parse_args() | |
30 | |
31 if not options.build_products_dir: | |
32 die("No build products directory given.") | |
33 sys.exit(0) | |
34 | |
35 if __name__ == '__main__': | |
36 main() | |
OLD | NEW |