| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 |
| 6 from master import master_config |
| 7 from master.factory import annotator_factory |
| 8 |
| 9 defaults = {} |
| 10 |
| 11 helper = master_config.Helper(defaults) |
| 12 B = helper.Builder |
| 13 F = helper.Factory |
| 14 |
| 15 # TODO(kbr): it would be better if this waterfall were refactored so |
| 16 # that we could access the slaves_list here. |
| 17 gpu_bot_info = [ |
| 18 { |
| 19 'builder': 'GPU Win7 (NVIDIA)', |
| 20 'perf_id': 'gpu-webkit-win7-nvidia', |
| 21 'factory_id': 'f_gpu_win_rel', |
| 22 }, |
| 23 { |
| 24 'builder': 'GPU Win7 (dbg) (NVIDIA)', |
| 25 'factory_id': 'f_gpu_win_dbg', |
| 26 }, |
| 27 { |
| 28 'builder': 'GPU Mac10.7', |
| 29 'perf_id': 'gpu-webkit-mac', |
| 30 'factory_id': 'f_gpu_mac_rel', |
| 31 }, |
| 32 { |
| 33 'builder': 'GPU Mac10.7 (dbg)', |
| 34 'factory_id': 'f_gpu_mac_dbg', |
| 35 }, |
| 36 { |
| 37 'builder': 'GPU Linux (NVIDIA)', |
| 38 'perf_id': 'gpu-webkit-linux-nvidia', |
| 39 'factory_id': 'f_gpu_linux_rel', |
| 40 }, |
| 41 { |
| 42 'builder': 'GPU Linux (dbg) (NVIDIA)', |
| 43 'factory_id': 'f_gpu_linux_dbg', |
| 44 }, |
| 45 ] |
| 46 |
| 47 m_annotator = annotator_factory.AnnotatorFactory() |
| 48 |
| 49 defaults['category'] = 'gpu' |
| 50 |
| 51 for bot in gpu_bot_info: |
| 52 factory_properties = { |
| 53 'test_results_server': 'test-results.appspot.com', |
| 54 'generate_gtest_json': True, |
| 55 'build_config': 'Debug' |
| 56 } |
| 57 if 'perf_id' in bot: |
| 58 factory_properties['show_perf_results'] = True |
| 59 factory_properties['perf_id'] = bot['perf_id'] |
| 60 factory_properties['build_config'] = 'Release' |
| 61 B(bot['builder'], bot['factory_id'], scheduler='global_scheduler') |
| 62 F(bot['factory_id'], m_annotator.BaseFactory('gpu', factory_properties)) |
| 63 |
| 64 |
| 65 def Update(_config, _active_master, c): |
| 66 return helper.Update(c) |
| OLD | NEW |