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",
    },
    facets: {
        "fuchsia.test": { type: "cts" },
    },
}

Below is the list of capabilities provided to CTS tests:

Protocols:

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

Storage:

data
tmp
cache
custom_artifacts