Note: Compatibility testing documents are being overhauled in Q2 2024. Some information in this document is out of date. See https://fxbug.dev/339893257 for details.
CTF tests run in a special collection which is meant to isolate any capabilities that are required only for CTF testing. CTF tests must declare the following facet so they run in this collection:
// my_test.cml { include: [ {{ '<strong>' }}"//sdk/ctf/test_realm/meta/test-collection.shard.cml",{{ '</strong>' }} "//src/sys/test_runners/rust/default.shard.cml", ], program: { binary: "bin/my_test_binary", }, }
The system capabilities offered to CTF tests can be found in //sdk/ctf/test_realm/meta/test-collection.shard.cml.