commit | 5fd062a59f88c5c23c4a0b308262aa268c1561ba | [log] [tgz] |
---|---|---|
author | Darren Chan <chandarren@google.com> | Fri Mar 08 18:55:03 2024 +0000 |
committer | Darren Chan <chandarren@google.com> | Fri Mar 08 18:55:03 2024 +0000 |
tree | e7832ef05625503f499362c44bc73ad4bcfe63f9 | |
parent | d2833a5d90f28423f0c7422adafedc88945a3610 [diff] |
[bazel_sdk] Prevent roller race condition. See attached bug for details. Bug: 328784638 Change-Id: Id495c9b25a63e8165c19f86fc22303336ea86064 Reviewed-on: https://fuchsia-review.googlesource.com/c/template/driver/+/1003835 Reviewed-by: Chase Latta <chaselatta@google.com>
<change_me: This repository is a template that we will use when creating new driver repositories for Fuchsia>.
Template repository is located in: https://fuchsia.googlesource.com/template/driver/
To perform an initial bootstrap, execute the following:
In a terminal, clone the repository:
git clone https://fuchsia.googlesource.com/drivers/<change_me>
Change to that directory:
cd <change_me>
Fetch all git submodules:
git submodule init && git submodule update --recursive
Bootstrap the build environment:
scripts/bootstrap.sh
Fetch and build the SDK:
tools/bazel build @fuchsia_sdk//:fuchsia_toolchain_sdk
See the getting started guide for more info.
Run the full test-suite with:
tools/bazel test :tests
Run only the <change_me> driver tests with:
tools/bazel test <change_me>:<fuchsia_unittest_package_name>