fuchsia.driver.test

Added: 7

PROTOCOLS

Realm

Defined in fuchsia.driver.test/realm.fidl

This protocol is for the DriverTestRealm. It is an integration test framework for drivers.

Start

Start the realm. Calling this will cause DriverTestRealm to start servicing other protocols (like /dev/). args is used to configure the DriverTestRealm. Calling Start while the realm is already started will return ZX_ERR_ALREADY_BOUND.

Request

NameType
args RealmArgs

Response

NameType
result Realm_Start_Result

STRUCTS

DriverLog

Defined in fuchsia.driver.test/realm.fidl

FieldTypeDescriptionDefault
name DriverName No default
log_level fuchsia.diagnostics/Severity No default

Realm_Start_Response

Defined in fuchsia.driver.test/realm.fidl

<EMPTY>

TABLES

RealmArgs resource

Defined in fuchsia.driver.test/realm.fidl

A list of arguments that can be used to configure DriverTestRealm.

OrdinalFieldTypeDescription
boot fuchsia.io/Directory

This is what DriverManager will see as its boot directory. Default: DriverTestRealm's package directory

root_driver string

The URL for the driver that will be bound to root. Default: fuchsia-boot:///#driver/test-parent-sys.so NOTE: The test parent driver is not included by default. This must be included in your package to work correctly.

use_driver_framework_v2 bool

If this is true, then DriverManager will load DFv2 drivers. Default: false

driver_tests_enable_all bool

If this is true, then DriverManager will enable the unit tests for each driver that is loaded. Default: false

driver_tests_enable vector<string>

If this is true, then DriverManager will enable the unit tests for each driver in this vector. Default: empty

driver_tests_disable vector<string>

If this is true, then DriverManager will disable the unit tests for each driver in this vector. This overrides both a specific request for enabling a test and the 'driver_tests_enable_all' parameter. Default: empty

driver_log_level vector<DriverLog>

Set a log level for the specific driver. Default: Log levels are set to INFO

driver_disable vector<string>

Disable specific drivers. These drivers will not be bound or loaded. Default: empty

driver_bind_eager vector<string>

Specify drivers to bind 'eagerly'. This turns a driver that normally binds as a fallback driver into a driver that will be bound normally. Default: empty

board_name string

Specify the board name that drivers are aware of. Default: driver-integration-test

UNIONS

Realm_Start_Result strict

Defined in fuchsia.driver.test/realm.fidl

OrdinalVariantTypeDescription
response Realm_Start_Response
err zx/status

TYPE ALIASES

NameValueDescription
DriverName string[fidl/MAX]

A driver name is the name defined in ZIRCON_DRIVER_BEGIN begin macro for a specific driver.