Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: tools/bots/dartium_android.py

Issue 137623008: Add testing script to test Dartium on Android devices. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Flesh out testing script. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698