| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 DEPS = [ | 5 DEPS = [ |
| 6 'goma', | 6 'goma', |
| 7 'recipe_engine/platform', | 7 'recipe_engine/platform', |
| 8 'recipe_engine/properties', | 8 'recipe_engine/properties', |
| 9 'recipe_engine/raw_io', |
| 9 ] | 10 ] |
| 10 | 11 |
| 11 def RunSteps(api): | 12 def RunSteps(api): |
| 12 api.goma.ensure_goma() | 13 api.goma.ensure_goma() |
| 13 api.goma.start(env={}) | 14 api.goma.start(env={}) |
| 14 # build something using goma. | 15 # build something using goma. |
| 15 api.goma.stop( | 16 api.goma.stop( |
| 16 ninja_log_outdir=api.properties.get('ninja_log_outdir'), | 17 ninja_log_outdir=api.properties.get('ninja_log_outdir'), |
| 17 ninja_log_compiler=api.properties.get('ninja_log_compiler'), | 18 ninja_log_compiler=api.properties.get('ninja_log_compiler'), |
| 18 ninja_log_command=api.properties.get('ninja_log_command'), | 19 ninja_log_command=api.properties.get('ninja_log_command'), |
| 19 ninja_log_exit_status=api.properties.get('ninja_log_exit_status'), | 20 ninja_log_exit_status=api.properties.get('ninja_log_exit_status'), |
| 20 ) | 21 ) |
| 21 | 22 |
| 22 | 23 |
| 23 def GenTests(api): | 24 def GenTests(api): |
| 24 for platform in ('linux', 'win', 'mac'): | 25 for platform in ('linux', 'win', 'mac'): |
| 25 yield api.test(platform) + api.platform.name(platform) | 26 step_data = api.step_data( |
| 27 'start cloudtail', |
| 28 stdout=api.raw_io.output('12345') |
| 29 ) |
| 30 yield api.test(platform) + api.platform.name(platform) + step_data |
| 26 | 31 |
| 27 properties = { | 32 properties = { |
| 28 'build_data_dir': 'build_data_dir', | 33 'build_data_dir': 'build_data_dir', |
| 29 'ninja_log_outdir': 'build_data_dir', | 34 'ninja_log_outdir': 'build_data_dir', |
| 30 'ninja_log_compiler': 'goma', | 35 'ninja_log_compiler': 'goma', |
| 31 'ninja_log_command': 'ninja -j 500', | 36 'ninja_log_command': 'ninja -j 500', |
| 32 'ninja_log_exit_status': 0, | 37 'ninja_log_exit_status': 0, |
| 33 } | 38 } |
| 34 | 39 |
| 35 yield (api.test('%s_upload_logs' % platform) + api.platform.name(platform) + | 40 yield (api.test('%s_upload_logs' % platform) + api.platform.name(platform) + |
| 36 api.properties.generic(**properties)) | 41 api.properties.generic(**properties) + step_data) |
| OLD | NEW |