blob: 8203166db94e1826da211275fd7a734a3d33aea2 [file] [log] [blame]
// Component test example which injects echo_server and launches echo_rust_client
// which is a test which connects to this injected server, tests it and
// passes back result using `fuchsia.test.Suite`
{
// Two children: a server and client. "echo_rust_client" has "eager" startup so it
// will be started along with the realm.
children: [
{
name: "echo_server",
url: "fuchsia-pkg://fuchsia.com/rust-test-runner-example#meta/echo_server.cm",
},
{
name: "echo_rust_client",
url: "fuchsia-pkg://fuchsia.com/rust-test-runner-example#meta/echo_rust_client.cm",
startup: "eager",
},
],
offer: [
{
protocol: "fidl.examples.routing.echo.Echo",
from: "#echo_server",
to: [ "#echo_rust_client" ],
},
{
protocol: "fuchsia.logger.LogSink",
from: "parent",
to: [ "#echo_rust_client" ],
},
],
expose: [
{
protocol: "fuchsia.test.Suite",
from: "#echo_rust_client",
},
],
}