| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| { |
| include: [ |
| "//src/sys/test_runners/rust/default.shard.cml", |
| "inspect/client.shard.cml", |
| |
| // Depends on fuchsia.hardware.pty.Device which is a system capability. |
| // TODO(https://fxbug.dev/42180278): Remove this once the test is hermetic. |
| "syslog/client.shard.cml", |
| ], |
| program: { |
| binary: "bin/terminal_lib_lib_test", |
| }, |
| children: [ |
| { |
| name: "ptysvc", |
| url: "ptysvc#meta/ptysvc.cm", |
| }, |
| ], |
| use: [ |
| { |
| directory: "boot", |
| rights: [ "rx*" ], |
| path: "/boot/bin", |
| subdir: "bin", |
| }, |
| { |
| protocol: [ "fuchsia.hardware.pty.Device" ], |
| from: "#ptysvc", |
| }, |
| { |
| protocol: [ |
| "fuchsia.process.Launcher", |
| "fuchsia.ui.input.ImeService", |
| "fuchsia.ui.input3.Keyboard", |
| "fuchsia.ui.scenic.Scenic", |
| ], |
| }, |
| ], |
| offer: [ |
| { |
| protocol: [ "fuchsia.boot.WriteOnlyLog" ], |
| from: "parent", |
| to: "#ptysvc", |
| }, |
| ], |
| } |