OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Set of utilities to add commands to a buildbot factory. | 5 """Set of utilities to add commands to a buildbot factory. |
6 | 6 |
7 This is based on commands.py and adds chromium-specific commands.""" | 7 This is based on commands.py and adds chromium-specific commands.""" |
8 | 8 |
9 import logging | 9 import logging |
10 import os | 10 import os |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 | 544 |
545 def AddAnnotatedV8BenchmarkTests(self, factory_properties=None): | 545 def AddAnnotatedV8BenchmarkTests(self, factory_properties=None): |
546 options = ['--gtest_print_time', '--run-v8-benchmark'] | 546 options = ['--gtest_print_time', '--run-v8-benchmark'] |
547 | 547 |
548 self.AddAnnotatedPerfStep('v8_benchmark', 'V8Benchmark*.*', 'graphing', | 548 self.AddAnnotatedPerfStep('v8_benchmark', 'V8Benchmark*.*', 'graphing', |
549 cmd_options=options, | 549 cmd_options=options, |
550 factory_properties=factory_properties) | 550 factory_properties=factory_properties) |
551 | 551 |
552 def AddDromaeoTests(self, factory_properties=None): | 552 def AddDromaeoTests(self, factory_properties=None): |
553 factory_properties = factory_properties or {} | 553 factory_properties = factory_properties or {} |
554 tests = ['DOMCore', 'JSLib'] | 554 tests = ['DOMCoreAttr', 'DOMCoreModify', 'DOMCoreQuery', 'DOMCoreTraverse', |
| 555 'JSLibAttrJquery', 'JSLibAttrPrototype', 'JSLibEventJquery', |
| 556 'JSLibEventPrototype', 'JSLibModifyJquery', 'JSLibModifyPrototype', |
| 557 'JSLibStyleJquery', 'JSLibStylePrototype', 'JSLibTraverseJquery', |
| 558 'JSLibTraversePrototype'] |
555 for test in tests: | 559 for test in tests: |
556 cls = self.GetPerfStepClass(factory_properties, | 560 cls = self.GetPerfStepClass(factory_properties, |
557 'dromaeo_%s' % test.lower(), | 561 'dromaeo_%s' % test.lower(), |
558 process_log.GraphingLogProcessor) | 562 process_log.GraphingLogProcessor) |
559 options = ['--gtest_filter=Dromaeo*Test.%sPerf' % test, | 563 options = ['--gtest_filter=Dromaeo*Test.%sPerf' % test, |
560 '--gtest_print_time', '--run-dromaeo-benchmark'] | 564 '--gtest_print_time', '--run-dromaeo-benchmark'] |
561 cmd = self.GetTestCommand('performance_ui_tests', arg_list=options, | 565 cmd = self.GetTestCommand('performance_ui_tests', arg_list=options, |
562 factory_properties=factory_properties) | 566 factory_properties=factory_properties) |
563 self.AddTestStep(cls, 'dromaeo_%s_test' % test.lower(), cmd, | 567 self.AddTestStep(cls, 'dromaeo_%s_test' % test.lower(), cmd, |
564 do_step_if=self.TestStepFilter) | 568 do_step_if=self.TestStepFilter) |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) | 1454 return '%s/%s/%s' % (config.Master.archive_url, archive_type, builder_name) |
1451 | 1455 |
1452 | 1456 |
1453 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): | 1457 def _GetSnapshotUrl(factory_properties=None, builder_name='%(build_name)s'): |
1454 if not factory_properties or 'gs_bucket' not in factory_properties: | 1458 if not factory_properties or 'gs_bucket' not in factory_properties: |
1455 return (_GetArchiveUrl('snapshots', builder_name), None) | 1459 return (_GetArchiveUrl('snapshots', builder_name), None) |
1456 gs_bucket = factory_properties['gs_bucket'] | 1460 gs_bucket = factory_properties['gs_bucket'] |
1457 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', | 1461 gs_bucket = re.sub(r'^gs://', 'http://commondatastorage.googleapis.com/', |
1458 gs_bucket) | 1462 gs_bucket) |
1459 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') | 1463 return ('%s/index.html?path=%s' % (gs_bucket, builder_name), '/') |
OLD | NEW |