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