Google is committed to advancing racial equity for Black communities. See how.

fuchsia.device.test

PROTOCOLS

Device

Defined in fuchsia.device.test/test.fidl

Interface for controlling a device created via RootDevice.CreateDevice

Destroy

Unload this device.

Request

NameType

RunTests

Execute the tests for this device. Returns the status from the test. If used as part of the Device protocol then Test output will be streamed to the socket set by SetOutputSocket().

Request

NameType

Response

NameType
status zx/status
report TestReport

SetChannel

Set a channel for the test to use in a test-specific manner.

Request

NameType
chan handle<channel>

SetOutputSocket

Set a socket to stream test output to.

Request

NameType
sock handle<socket>

RootDevice

Defined in fuchsia.device.test/test.fidl

Interface for creating devices within a devhost.

CreateDevice

Create a device with the given name that is a child of this device. If name contains a trailing ".so", it will be removed.

If device_request is given, it is connected to the newly created device.

On success, path will be the filesystem path of the new device.

Request

NameType
name string[31]
device_request handle<channel>?

Response

NameType
status zx/status
path string[1024]?

Test

Defined in fuchsia.device.test/test.fidl

RunTests

Execute the tests for this device. Returns the status from the test. If used as part of the Device protocol then Test output will be streamed to the socket set by SetOutputSocket().

Request

NameType

Response

NameType
status zx/status
report TestReport

STRUCTS

TestReport

Defined in fuchsia.device.test/test.fidl

Returns the result summary of a test run

NameTypeDescriptionDefault
test_count uint32

Total number of tests

No default
success_count uint32

Number of successful tests

No default
failure_count uint32

Number of failed tests

No default

CONSTANTS

NameValueTypeDescription
CONTROL_DEVICE /dev/test/test String

The path which can be used to open the control device

MAX_DEVICE_NAME_LEN 31 uint32

Maximum device name len. This value must match ZX_DEVICE_NAME_MAX.

MAX_DEVICE_PATH_LEN 1024 uint32

Maximum device path len