| #!/bin/bash |
| # Copyright 2026 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. |
| |
| set -euxo pipefail |
| |
| # First and only positional argument is the path to the built cipd package file. |
| pkg="$1" |
| tempdir="$(mktemp -d)" |
| trap "rm -rf $tempdir" EXIT |
| |
| # Unpack the package |
| cipd pkg-deploy "$pkg" -root "$tempdir" |
| |
| # Verify contents |
| if [[ ! -f "$tempdir/bzImage" ]]; then |
| echo "Error: bzImage missing from package!" |
| find "$tempdir" -maxdepth 2 |
| exit 1 |
| fi |
| |
| echo "Verification successful: bzImage found." |