blob: b9f170ca45b7f42140e6c1157682a3f7aa10e950 [file] [log] [blame]
#!/bin/bash
# Copyright 2022 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 -e
# This script is used by infra to validate the package can be built and tests
# can pass.
# TODO(fxbug.dev/106189): Delete this script once infra has built-in support for
# running tests.
readonly REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/..
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/run_bazel.sh || exit $?
cd "${REPO_ROOT}"
scripts/build.sh
$(run_bazel info bazel-bin)/src/run_tests.sh