PROTOCOLS
Device
Defined in fuchsia.device.test/test.fidl
Interface for controlling a device created via RootDevice.CreateDevice
Destroy
Unload this device.
Request
Name | Type |
---|
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
Name | Type |
---|
Response
Name | Type |
---|---|
status |
zx/status
|
report |
TestReport
|
SetChannel
Set a channel for the test to use in a test-specific manner.
Request
Name | Type |
---|---|
chan |
handle<channel>
|
SetOutputSocket
Set a socket to stream test output to.
Request
Name | Type |
---|---|
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
Name | Type |
---|---|
name |
string[31]
|
device_request |
handle<channel>?
|
Response
Name | Type |
---|---|
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
Name | Type |
---|
Response
Name | Type |
---|---|
status |
zx/status
|
report |
TestReport
|
STRUCTS
TestReport
Defined in fuchsia.device.test/test.fidl
Returns the result summary of a test run
Name | Type | Description | Default |
---|---|---|---|
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
Name | Value | Type | Description |
---|---|---|---|
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 |
MAX_DEVICE_PATH_LEN |
1024
|
uint32 |
Maximum device path len |