commit | a3a9423a4d1a4566fb600caa1fd2ec9d7f33201f | [log] [tgz] |
---|---|---|
author | Dave Schuyler <dschuyler@chromium.org> | Fri Jan 05 19:27:40 2024 +0000 |
committer | Dave Schuyler <dschuyler@google.com> | Fri Jan 05 19:27:40 2024 +0000 |
tree | 6a7acfcc3c704608ee1ad45044ca035ff4444a5b | |
parent | cd77aa2582fd0eb5d974a9d0dd5d9356cfb9eada [diff] |
[template] update readme Adds introductory steps to cloning the source repository. Adds Building and Testing section from RTC driver. Change-Id: I8451b7838ed106ae4c5d80378560dfcaf4c38a4c Reviewed-on: https://fuchsia-review.googlesource.com/c/template/driver/+/960541 Reviewed-by: Dave Schuyler <dschuyler@google.com> Reviewed-by: Sam Hansen <hansens@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>