| { |
| "program": { |
| "binary": "bin/test_manager", |
| }, |
| children: [ |
| { |
| name: "gtest_runner", |
| url: "fuchsia-pkg://fuchsia.com/gtest_runner#meta/gtest_runner.cm" |
| }, |
| { |
| name: "memfs", |
| url: "fuchsia-pkg://fuchsia.com/test_manager#meta/memfs.cm" |
| } |
| ], |
| "collections": [ |
| { |
| "name": "tests", |
| "durability": "transient", |
| }, |
| ], |
| storage: [ |
| { |
| name: "test_storage", |
| from: "#memfs", |
| path: "/memfs" |
| } |
| ], |
| "use": [ |
| { "runner": "elf" }, |
| { |
| "protocol": "/svc/fuchsia.logger.LogSink", |
| }, |
| { |
| "protocol": "/svc/fuchsia.sys2.Realm", |
| "from": "framework", |
| }, |
| ], |
| "offer": [ |
| // Offer the ELF runner to children. |
| { |
| "runner": "elf", |
| "from": "realm", |
| "to": [ |
| "#tests", |
| "#gtest_runner", |
| "#memfs", |
| ] |
| }, |
| { |
| "protocol": "/svc/fuchsia.logger.LogSink", |
| "from": "realm", |
| "to": [ |
| "#tests", |
| "#gtest_runner", |
| "#memfs", |
| ] |
| }, |
| { |
| "protocol": "/svc/fuchsia.process.Launcher", |
| "from": "realm", |
| "to": [ |
| "#gtest_runner", |
| ] |
| }, |
| { |
| runner: "gtest_runner", |
| from: "#gtest_runner", |
| to: ["#tests"] |
| }, |
| { |
| storage: "data", |
| from: "#test_storage", |
| to: ["#gtest_runner"] |
| }, |
| ], |
| "expose": [ |
| { |
| "protocol": "/svc/fuchsia.test.manager.Harness", |
| "from": "self", |
| } |
| ], |
| } |