tree: 43f4648197994a2a9c0943409e27b049c008e5a9 [path history] [tgz]
  1. meta/
  2. src/
  3. BUILD.gn
  4. README.md
examples/components/subpackages/README.md

Subpackage Examples

The following directory hosts examples resolving components from Subpackages (RFC-0154). Subpackages are explained in the developer guide.

The tests are meant to demonstrate compilable code. This means that it will always contain the latest API surface of each of the client libraries.

Building

If these components are not present in your build, they can be added by appending --with //examples:tests to your fx set command. For example:

$ fx set core.x64 --with //examples --with //examples:tests
$ fx build

Testing

Run the tests for all languages using the subpackage-examples package.

$ fx test subpackage-examples

When successfully executed, the test output should include something similar to the following:

[00028.249197][echo_client] INFO: Server response: Hello Fuchsia!
[00028.249630][echo_client] INFO: Server response: Hello subpackaged server!