blob: c5ef4fe9b61e231de960cc1b2ceae3393d755e7c [file] [log] [blame]
# Copyright 2020 The Fuchsia 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 = [
'debug_symbols', 'recipe_engine/path', 'fuchsia/jiri', 'recipe_engine/json'
]
def RunSteps(api):
"""Tests for fetching and uploading debug symbols."""
project_dir = api.path['start_dir'].join('integration')
checkout_root = api.path['start_dir']
api.debug_symbols.fetch_and_upload(
project='integration',
checkout_root=checkout_root,
import_in='integration/fuchsia/flower',
remote='sso://fuchsia/integration',
project_dir=project_dir,
packages=['flutter/fuchsia-debug-symbols-arm64'],
debug_symbol_attribute='debug-symbols',
debug_symbol_gcs_buckets=['fuchsia-debug-symbols-shortlived'])
def GenTests(api):
yield api.test('default') + api.jiri.read_manifest_element(
api,
'fuchsia/prebuilts',
'package',
'flutter/fuchsia-debug-symbols-arm64',
test_output={
'path': 'prebuilt/build_ids/arm64/flutter',
'attributes': 'debug-symbols,debug-symbols-arm64',
})
yield api.test('package not in attributes') + api.jiri.read_manifest_element(
api,
'fuchsia/prebuilts',
'package',
'flutter/fuchsia-debug-symbols-arm64',
test_output={
'path': 'prebuilt/build_ids/arm64/flutter',
'attributes': 'fuchsia-arm64',
})