commit | d2833a5d90f28423f0c7422adafedc88945a3610 | [log] [tgz] |
---|---|---|
author | Jerry Belton <jcecil@google.com> | Mon Feb 26 21:25:50 2024 +0000 |
committer | Jerry Belton <jcecil@google.com> | Mon Feb 26 21:25:50 2024 +0000 |
tree | b7f3416b8a2e86d1ac2e16299a719c78ba5ba478 | |
parent | fd525f2ccc68b6c1d2653817e1787bff00ff746f [diff] |
[template] Add work-on script to driver template. The user-guide references the work-on script, but it's currently not in the template repo. Adding it here. Change-Id: Iae23ecb9a893e35d0e9adb5e100a3a3d32280795 Reviewed-on: https://fuchsia-review.googlesource.com/c/template/driver/+/997520 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>