Index: tools/bots/dartium_android.py |
diff --git a/tools/bots/dartium_android.py b/tools/bots/dartium_android.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9aaefa26f8e027b67addbca562db2f0739149f75 |
--- /dev/null |
+++ b/tools/bots/dartium_android.py |
@@ -0,0 +1,36 @@ |
+#!/usr/bin/python |
+# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
ricow1
2014/01/26 14:28:34
2014
|
+# for details. All rights reserved. Use of this source code is governed by a |
+# BSD-style license that can be found in the LICENSE file. |
+ |
+""" |
+Dartium on Android buildbot steps. |
+ |
+Runs steps after the buildbot builds Dartium on Android, |
+which should upload the APK to an attached device, and run |
+Dart and chromium tests on it. |
+""" |
+ |
+import sys |
+import optparse |
+ |
+def GetOptionsParser(): |
+ parser = optparse.OptionParser("usage: %prog [options]") |
+ parser.add_option("--build-products-dir", |
+ help="The directory containing the products of the build.") |
+ return parser |
+ |
+def main(): |
+ if sys.platform != 'linux2': |
+ print "This script was only tested on linux. Please run it on linux!" |
+ sys.exit(1) |
+ |
+ parser = GetOptionsParser() |
+ (options, args) = parser.parse_args() |
+ |
+ if not options.build_products_dir: |
+ die("No build products directory given.") |
+ sys.exit(0) |
+ |
+if __name__ == '__main__': |
+ main() |