| # Copyright 2023 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| DEPS = [ |
| 'flutter/signing', |
| 'recipe_engine/assertions', |
| 'recipe_engine/platform', |
| 'recipe_engine/properties', |
| 'recipe_engine/raw_io', |
| ] |
| |
| |
| def RunSteps(api): |
| files_to_sign = ['file1.zip'] |
| api.signing.code_sign(files_to_sign=files_to_sign) |
| |
| def GenTests(api): |
| yield api.test( |
| 'non_mac', |
| api.platform.name('linux'), |
| ) |
| yield api.test( |
| 'mac_require_signing', |
| api.platform.name('mac'), |
| ) |
| yield api.test( |
| 'failure_uploads_logs', |
| api.platform.name('mac'), |
| api.step_data( |
| "Codesign unsigned_file1.zip.codesign Apple engine binaries", |
| # TODO(fujino): migrate this from deprecated retcode to use exc_result |
| retcode=1, |
| ), |
| status='FAILURE', |
| ) |