| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 from recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'depot_tools/bot_update', | 8 'depot_tools/bot_update', |
| 9 'depot_tools/infra_paths', |
| 9 'chromium', | 10 'chromium', |
| 10 'file', | 11 'file', |
| 11 'gsutil', | 12 'gsutil', |
| 12 'recipe_engine/path', | 13 'recipe_engine/path', |
| 13 'recipe_engine/platform', | 14 'recipe_engine/platform', |
| 14 'recipe_engine/properties', | 15 'recipe_engine/properties', |
| 15 'recipe_engine/python', | 16 'recipe_engine/python', |
| 16 'recipe_engine/step', | 17 'recipe_engine/step', |
| 17 ] | 18 ] |
| 18 | 19 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 path_to_binary += '.exe' | 77 path_to_binary += '.exe' |
| 77 | 78 |
| 78 api.step('gn version', [path_to_binary, '--version']) | 79 api.step('gn version', [path_to_binary, '--version']) |
| 79 | 80 |
| 80 api.chromium.runtest('gn_unittests') | 81 api.chromium.runtest('gn_unittests') |
| 81 | 82 |
| 82 if not api.platform.is_win: | 83 if not api.platform.is_win: |
| 83 api.m.step('gn strip', cmd=['strip', path_to_binary]) | 84 api.m.step('gn strip', cmd=['strip', path_to_binary]) |
| 84 | 85 |
| 85 api.python('upload', | 86 api.python('upload', |
| 86 api.path['depot_tools'].join('upload_to_google_storage.py'), | 87 api.infra_paths['depot_tools'].join('upload_to_google_storage.py'), |
| 87 ['-b', 'chromium-gn', path_to_binary]) | 88 ['-b', 'chromium-gn', path_to_binary]) |
| 88 | 89 |
| 89 sha1 = api.file.read('gn sha1', path_to_binary + '.sha1', | 90 sha1 = api.file.read('gn sha1', path_to_binary + '.sha1', |
| 90 test_data='0123456789abcdeffedcba987654321012345678') | 91 test_data='0123456789abcdeffedcba987654321012345678') |
| 91 api.step.active_result.presentation.step_text = sha1 | 92 api.step.active_result.presentation.step_text = sha1 |
| 92 | 93 |
| 93 | 94 |
| 94 def GenTests(api): | 95 def GenTests(api): |
| 95 for test in api.chromium.gen_tests_for_builders(BUILDERS): | 96 for test in api.chromium.gen_tests_for_builders(BUILDERS): |
| 96 yield test | 97 yield test |
| OLD | NEW |