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 'recipe_engine/step', |
10 ] | 10 ] |
11 | 11 |
12 def RunSteps(api): | 12 def RunSteps(api): |
13 api.goma.ensure_goma() | 13 api.goma.ensure_goma() |
14 api.goma.start(env={}) | 14 api.goma.start(env={}) |
15 # build something using goma. | 15 # build something using goma. |
| 16 api.step('echo goma jobs', |
| 17 ['echo', str(api.goma.recommended_goma_jobs)]) |
| 18 api.step('echo goma jobs second', |
| 19 ['echo', str(api.goma.recommended_goma_jobs)]) |
| 20 |
16 api.goma.stop( | 21 api.goma.stop( |
17 ninja_log_outdir=api.properties.get('ninja_log_outdir'), | 22 ninja_log_outdir=api.properties.get('ninja_log_outdir'), |
18 ninja_log_compiler=api.properties.get('ninja_log_compiler'), | 23 ninja_log_compiler=api.properties.get('ninja_log_compiler'), |
19 ninja_log_command=api.properties.get('ninja_log_command'), | 24 ninja_log_command=api.properties.get('ninja_log_command'), |
20 ninja_log_exit_status=api.properties.get('ninja_log_exit_status'), | 25 ninja_log_exit_status=api.properties.get('ninja_log_exit_status'), |
21 ) | 26 ) |
22 | 27 |
23 | 28 |
24 def GenTests(api): | 29 def GenTests(api): |
25 for platform in ('linux', 'win', 'mac'): | 30 for platform in ('linux', 'win', 'mac'): |
(...skipping 10 matching lines...) Expand all Loading... |
36 properties.update({ | 41 properties.update({ |
37 'build_data_dir': 'build_data_dir', | 42 'build_data_dir': 'build_data_dir', |
38 'ninja_log_outdir': 'build_data_dir', | 43 'ninja_log_outdir': 'build_data_dir', |
39 'ninja_log_compiler': 'goma', | 44 'ninja_log_compiler': 'goma', |
40 'ninja_log_command': 'ninja -j 500', | 45 'ninja_log_command': 'ninja -j 500', |
41 'ninja_log_exit_status': '0', | 46 'ninja_log_exit_status': '0', |
42 }) | 47 }) |
43 | 48 |
44 yield (api.test('%s_upload_logs' % platform) + api.platform.name(platform) + | 49 yield (api.test('%s_upload_logs' % platform) + api.platform.name(platform) + |
45 api.properties.generic(**properties)) | 50 api.properties.generic(**properties)) |
OLD | NEW |