OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 import imp | 5 import imp |
6 import os | 6 import os |
7 import sys | 7 import sys |
8 import urllib | 8 import urllib |
9 | 9 |
10 # Directory path in which to save bootstrap files. | 10 # Directory path in which to save bootstrap files. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 "loading_measurement": "loading", | 76 "loading_measurement": "loading", |
77 "media_measurement": "media", | 77 "media_measurement": "media", |
78 "memory_benchmark": "memory", | 78 "memory_benchmark": "memory", |
79 "memory_measurement": "memory", | 79 "memory_measurement": "memory", |
80 "rasterize_and_record_benchmark": "rasterize_and_record", | 80 "rasterize_and_record_benchmark": "rasterize_and_record", |
81 "rasterize_and_record_measurement": "rasterize_and_record", | 81 "rasterize_and_record_measurement": "rasterize_and_record", |
82 "robohornetpro": "robohornet_pro", | 82 "robohornetpro": "robohornet_pro", |
83 "scrolling_benchmark": "smoothness", | 83 "scrolling_benchmark": "smoothness", |
84 "smoothness_benchmark": "smoothness", | 84 "smoothness_benchmark": "smoothness", |
85 "smoothness_measurement": "smoothness", | 85 "smoothness_measurement": "smoothness", |
86 "startup_benchmark": "startup_warm", | 86 "startup_benchmark": "startup_warm_blank_page", |
87 "startup_measurement": "startup_warm", | 87 "startup_measurement": "startup", |
88 "tab_switching_measurement": "tab_switching", | 88 "tab_switching_measurement": "tab_switching", |
89 } | 89 } |
90 | 90 |
91 # There are bots that are hard-coded to run some specific named tests. | 91 # There are bots that are hard-coded to run some specific named tests. |
92 # Convert these to the current naming conventions by overriding them in the ru
nner. | 92 # Convert these to the current naming conventions by overriding them in the ru
nner. |
93 class MeasurementRunner(page_measurement_runner.PageMeasurementRunner): | 93 class MeasurementRunner(page_measurement_runner.PageMeasurementRunner): |
94 def GetModernizedTestName(self, arg): | 94 def GetModernizedTestName(self, arg): |
95 if arg not in old_benchmark_names: | 95 if arg not in old_benchmark_names: |
96 return arg | 96 return arg |
97 sys.stderr.write( | 97 sys.stderr.write( |
98 'An old name %s was given. Please use %s in the future.\n' % ( | 98 'An old name %s was given. Please use %s in the future.\n' % ( |
99 arg, | 99 arg, |
100 old_benchmark_names.get(arg))) | 100 old_benchmark_names.get(arg))) |
101 return old_benchmark_names[arg] | 101 return old_benchmark_names[arg] |
102 | 102 |
103 runner = MeasurementRunner() | 103 runner = MeasurementRunner() |
104 sys.exit(runner.Run(os.path.dirname(__file__), page_set_filenames)) | 104 sys.exit(runner.Run(os.path.dirname(__file__), page_set_filenames)) |
105 | 105 |
106 if __name__ == '__main__': | 106 if __name__ == '__main__': |
107 sys.exit(main()) | 107 sys.exit(main()) |
OLD | NEW |