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