| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| { |
| include: [ |
| "inspect/client.shard.cml", |
| "sys/testing/elf_test_runner.shard.cml", |
| "syslog/client.shard.cml", |
| ], |
| program: { |
| binary: "test/partition-mapping", |
| }, |
| use: [ |
| { |
| directory: "dev-class", |
| rights: [ "r*" ], |
| path: "/dev/class/block", |
| subdir: "block", |
| }, |
| { protocol: "fuchsia.hardware.block.partition.Partition" }, |
| ], |
| |
| // The test needs to examine the actual partition labels on the real storage |
| // on the device to make sure the label to zircon partition type mapping is |
| // correct. Thus we add the following to mark the test as non-hermetic. |
| // Ideally, a much preferred solution is to mock out the entire GPT storage |
| // and test in an isolated environment. |
| facets: { |
| "fuchsia.test": { type: "devices" }, |
| }, |
| } |