fuchsia.device.test

PROTOCOLS

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

Device

Defined in fuchsia.device.test/test.fidl

Interface for controlling a device created via RootDevice.CreateDevice

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

SetOutputSocket

Set a socket to stream test output to.

Request

NameType
sock handle<socket>

SetChannel

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

Request

NameType
chan handle<channel>

Destroy

Unload this device.

Request

NameType

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.

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

Request

NameType
name string[31]

Response

NameType
status zx/status
path string[1024]?

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