| 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 import ast | 5 import ast |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 | 8 |
| 9 from slave import recipe_api | 9 from recipe_engine import recipe_api |
| 10 | 10 |
| 11 | 11 |
| 12 class SyzygyApi(recipe_api.RecipeApi): | 12 class SyzygyApi(recipe_api.RecipeApi): |
| 13 # Used for constructing URLs to the Syzygy archives. | 13 # Used for constructing URLs to the Syzygy archives. |
| 14 _SYZYGY_ARCHIVE_URL = ( | 14 _SYZYGY_ARCHIVE_URL = ( |
| 15 'https://syzygy-archive.commondatastorage.googleapis.com') | 15 'https://syzygy-archive.commondatastorage.googleapis.com') |
| 16 _SYZYGY_GS = 'gs://syzygy-archive' | 16 _SYZYGY_GS = 'gs://syzygy-archive' |
| 17 _SYZYGY_GITHUB = 'https://github.com/google/syzygy/commit/' | 17 _SYZYGY_GITHUB = 'https://github.com/google/syzygy/commit/' |
| 18 | 18 |
| 19 # Fake unittests.gypi contents. | 19 # Fake unittests.gypi contents. |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 '--overwrite', | 321 '--overwrite', |
| 322 '--verbose'] | 322 '--verbose'] |
| 323 return self.m.python('download_binaries', get_syzygy_binaries_py, args) | 323 return self.m.python('download_binaries', get_syzygy_binaries_py, args) |
| 324 | 324 |
| 325 def smoke_test(self): | 325 def smoke_test(self): |
| 326 """Returns a step that launches the smoke test script.""" | 326 """Returns a step that launches the smoke test script.""" |
| 327 smoke_test_py = self.internal_scripts_dir.join('smoke_test.py') | 327 smoke_test_py = self.internal_scripts_dir.join('smoke_test.py') |
| 328 build_dir = self.m.path['checkout'].join('build') | 328 build_dir = self.m.path['checkout'].join('build') |
| 329 args = ['--verbose', '--build-dir', build_dir] | 329 args = ['--verbose', '--build-dir', build_dir] |
| 330 return self.m.python('smoke_test', smoke_test_py, args) | 330 return self.m.python('smoke_test', smoke_test_py, args) |
| OLD | NEW |