OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Copyright 2009 Google Inc. All Rights Reserved. | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | |
4 | 5 |
5 """Dromaeo benchmark automation script. | 6 """Dromaeo benchmark automation script. |
6 | 7 |
7 Script runs dromaeo tests in browsers specified by --browser switch and saves | 8 Script runs dromaeo tests in browsers specified by --browser switch and saves |
8 results to a spreadsheet on docs.google.com. | 9 results to a spreadsheet on docs.google.com. |
9 | 10 |
10 Prerequisites: | 11 Prerequisites: |
11 1. Install Google Data APIs Python Client Library from | 12 1. Install Google Data APIs Python Client Library from |
12 http://code.google.com/p/gdata-python-client. | 13 http://code.google.com/p/gdata-python-client. |
13 2. Checkout Dromaeo benchmark from | 14 2. Checkout Dromaeo benchmark from |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
250 benchmark_results.ProcessBrowserPostData(server.post_data) | 251 benchmark_results.ProcessBrowserPostData(server.post_data) |
251 # Kill browser. | 252 # Kill browser. |
252 KillProcessByName(browser) | 253 KillProcessByName(browser) |
253 browser_process.wait() | 254 browser_process.wait() |
254 | 255 |
255 # Insert test results into spreadsheet. | 256 # Insert test results into spreadsheet. |
256 for (test_name, test_data) in benchmark_results.data.iteritems(): | 257 for (test_name, test_data) in benchmark_results.data.iteritems(): |
257 spreadsheet_writer.WriteBrowserBenchmarkResults(test_name, test_data) | 258 spreadsheet_writer.WriteBrowserBenchmarkResults(test_name, test_data) |
258 | 259 |
259 server.socket.close() | 260 server.socket.close() |
260 | 261 |
Alexander Potapenko
2011/11/24 07:53:02
2 blank lines here
| |
261 if __name__ == '__main__': | 262 if __name__ == '__main__': |
262 main() | 263 main() |
263 | |
OLD | NEW |