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

Side by Side Diff: tools/testing/webdriver_test_setup.py

Issue 10829408: Smarter "new interesting code" detection. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/testing/perf_testing/run_perf_tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 # Run to install the necessary components to run webdriver on the buildbots or 7 # Run to install the necessary components to run webdriver on the buildbots or
8 # on your local machine. 8 # on your local machine.
9 # Note: The setup steps can be done fairly easily by hand. This script is 9 # Note: The setup steps can be done fairly easily by hand. This script is
10 # intended to simply and reduce the time for setup since there are a fair number 10 # intended to simply and reduce the time for setup since there are a fair number
(...skipping 20 matching lines...) Expand all
31 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, 31 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
32 stdin=subprocess.PIPE, shell=True) 32 stdin=subprocess.PIPE, shell=True)
33 output, stderr = p.communicate(input=stdin) 33 output, stderr = p.communicate(input=stdin)
34 if output: 34 if output:
35 print output 35 print output
36 if stderr: 36 if stderr:
37 print stderr 37 print stderr
38 38
39 def parse_args(): 39 def parse_args():
40 parser = optparse.OptionParser() 40 parser = optparse.OptionParser()
41 parser.add_option('--firefox', '-f', dest='firefox', help="Don't install " 41 parser.add_option('--firefox', '-f', dest='firefox',
42 "Firefox", action='store_true', default=False) 42 help="Don't install Firefox", action='store_true', default=False)
43 parser.add_option('--chromedriver', '-c', dest='chromedriver', help="Don't " 43 parser.add_option('--chromedriver', '-c', dest='chromedriver',
44 "install chromedriver.", action='store_true', default=False) 44 help="Don't install chromedriver.", action='store_true', default=False)
45 parser.add_option('--seleniumrc', '-s', dest='seleniumrc', help="Don't " 45 parser.add_option('--seleniumrc', '-s', dest='seleniumrc',
46 "install the Selenium RC server (used for Safari and Opera tests).", 46 help="Don't install the Selenium RC server (used for Safari and Opera "
47 action='store_true', default=False) 47 "tests).", action='store_true', default=False)
48 parser.add_option('--python', '-p', dest='python', help="Don't " 48 parser.add_option('--python', '-p', dest='python',
49 "install Selenium python bindings.", action='store_true', default=False) 49 help="Don't install Selenium python bindings.", action='store_true',
50 default=False)
50 parser.add_option('--buildbot', '-b', dest='buildbot', action='store_true', 51 parser.add_option('--buildbot', '-b', dest='buildbot', action='store_true',
51 help='Perform a buildbot selenium setup (buildbots have a different' + \ 52 help='Perform a buildbot selenium setup (buildbots have a different' +
52 'location for their python executable).', default=False) 53 'location for their python executable).', default=False)
53 args, ignored = parser.parse_args() 54 args, ignored = parser.parse_args()
54 return args 55 return args
55 56
56 def find_depot_tools_location(is_buildbot): 57 def find_depot_tools_location(is_buildbot):
57 """Depot_tools is our default install location for chromedriver, so we find 58 """Depot_tools is our default install location for chromedriver, so we find
58 its location on the filesystem. 59 its location on the filesystem.
59 Arguments: 60 Arguments:
60 is_buildbot - True if we are running buildbot machine setup (we can't detect 61 is_buildbot - True if we are running buildbot machine setup (we can't detect
61 this automatically because this script is not run at build time). 62 this automatically because this script is not run at build time).
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 lambda x: 'chromedriver_%(os)s_%(version)s.zip' % x).run() 280 lambda x: 'chromedriver_%(os)s_%(version)s.zip' % x).run()
280 if not args.seleniumrc: 281 if not args.seleniumrc:
281 GoogleCodeInstaller('selenium', os.path.dirname(os.path.abspath(__file__)), 282 GoogleCodeInstaller('selenium', os.path.dirname(os.path.abspath(__file__)),
282 lambda x: 'selenium-server-standalone-%(version)s.jar' % x).run() 283 lambda x: 'selenium-server-standalone-%(version)s.jar' % x).run()
283 284
284 if not args.firefox: 285 if not args.firefox:
285 FirefoxInstaller().run() 286 FirefoxInstaller().run()
286 287
287 if __name__ == '__main__': 288 if __name__ == '__main__':
288 main() 289 main()
OLDNEW
« no previous file with comments | « tools/testing/perf_testing/run_perf_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698