tree: 10bd3244516768bfc6668a1f1fbb151e4faa93fc [path history] [tgz]
  1. echo_client/
  2. echo_server/
  3. fidl/
  4. integration_tests/
  5. meta/

Routing Example

This directory contains an example of capability routing in Component Framework.


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

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


Use ffx component run to launch the components into a restricted realm for development purposes:

$ ffx component run fuchsia-pkg://

When the above command is run, you can see the following output with fx log:

[echo_client] INFO: Server response: Hello Fuchsia!


Integration tests for echo server are available in the echo_integration_test package. Use the ffx test run command to run the tests on a target device:

$ ffx test run fuchsia-pkg://

You should see the integration tests execute and pass:

Running test 'fuchsia-pkg://'
[RUNNING]	echo_integration_test
[PASSED]	echo_integration_test

1 out of 1 tests passed...