tree: f18546623727256058ab8b19a6372536c17e5e6b [path history] [tgz]
  1. lib/
  2. tests/
  3. bootstrap.sh
  4. build_and_copy_engine_artifacts.sh
  5. build_and_run_example.sh
  6. install_hooks.sh
  7. README.md
  8. sync_engine_artifacts_to_revision.sh
  9. update_dependencies.sh
  10. update_fuchsia_sdk.sh
scripts/README.md

Workflow scripts

This folder contains several scripts for handling common workflows in the embedder directory.

Each script in //scripts should be runnable following instructions documented at the top of the script. Helper variables and functions should go under //scripts/lib/ instead.

Testing changes

Because some of these workflows involve mutating the state of this repository and other repositories like the Flutter Engine repository, we recommend backing up your local changes first before running these tests.

To locally verify that common workflows are still working correctly after changes to the scripts, run:

$FUCHSIA_EMBEDDER_DIR/scripts/tests/run_all.sh

This will run all scripts called tests/*_test.sh, testing various workflows and failing at the first error.

You can also run local tests for a specific workflow script by running the corresponding *_test.sh script. For example:

$FUCHSIA_EMBEDDER_DIR/scripts/tests/bootstrap_test.sh

Because these workflow tests make frequent calls to the internet, they do not run on CQ. If you're interested in running workflow tests on CQ, see https://fxrev.dev/735770 for a WIP prototype of testing the workflows using Bazel.