commit | 0451f9a2ed3089f6d1c8b2b5e75aa89a5fe11054 | [log] [tgz] |
---|---|---|
author | global-integration-roller <global-integration-roller@fuchsia-infra.iam.gserviceaccount.com> | Wed Jan 18 11:03:58 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 18 11:03:58 2023 +0000 |
tree | 7b9e56d4f83724e39cd62ce3e436381c7526466c | |
parent | a7ec93354111c675df062b17ab0ad1045baaea88 [diff] |
[roll] Update submodules Roller-URL: https://ci.chromium.org/b/8791636874473854241 CQ-Do-Not-Cancel-Tryjobs: true Change-Id: Iba56a93c2ca4ccd4f5a3913d60ce3efe8ecf4283 Reviewed-on: https://fuchsia-review.googlesource.com/c/sdk-samples/fortune-teller/+/790903 Commit-Queue: GI Roller <global-integration-roller@fuchsia-infra.iam.gserviceaccount.com>
This repository contains instructions and source code to build, package and run Fuchsia samples using only the Fuchsia SDK.
Make sure this repository has the required submodules:
git submodule update --recursive --init
Run bootstrap to download bazel
scripts/bootstrap.sh
Ensure that there are Fuchsia SSH keys in your host machine. You will need them for running the Fuchsia emulator.
[[ -f "${HOME}/.ssh/fuchsia_ed25519" ]] || ssh-keygen -P "" -t ed25519 -f "${HOME}/.ssh/fuchsia_ed25519" -C "${USER}@$(hostname -f) Shared SSH Key for Fuchsia" [[ -f "${HOME}/.ssh/fuchsia_authorized_keys" ]] || ssh-keygen -y -f "${HOME}/.ssh/fuchsia_ed25519" > "${HOME}/.ssh/fuchsia_authorized_keys"
Now the repository is ready to build the sample.
Prepare the development environment
tools/bazel run :ws_emu_development
(optional) Verify that your enviroment is correctly set up
tools/bazel run :ws_emu_development.status
1.. (optional) watch the device log in a separate window
tools/ffx log
1.. Run the fortune-teller component
bazel run //src/fortune_teller:pkg.component
Watch that your fortune is printed in the log.
Start emulator (see step #1 above)
Run tests
bazel test --config=fuchsia_x64 //src/fortune_teller:test_pkg