Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 966 Bytes

test_realm.md

File metadata and controls

48 lines (39 loc) · 966 Bytes

The CTS Test Realm

CTS tests run in a special realm which is meant to isolate any capabilities that are required only for CTS testing. Tests must opt-in to the realm by declaring a facet in their component manifests, as shown below.

// my_test.cml

{
    include: [
        "//src/sys/test_runners/rust/default.shard.cml",
    ],
    program: {
        binary: "bin/my_test_binary",
    },
    {{ '<strong>' }}facets: {
        "fuchsia.test": { type: "cts" },
    },{{ '</strong>' }}
}

Below is the list of capabilities provided to CTS tests: {# Update the list when modifying //sdk/cts/test_realm/meta/cts_test_realm.shard.cml #}

Protocols:

fuchsia.hwinfo.Board
fuchsia.hwinfo.Device
fuchsia.hwinfo.Product
fuchsia.logger.LogSink
fuchsia.process.Launcher
fuchsia.process.Resolver
fuchsia.settings.Privacy
fuchsia.sys2.EventSource

Storage:

data
tmp
cache
custom_artifacts