Expand description
library for target side of filesystem integrity host-target interaction tests
Modules§
- static_
tree - Generate a random directory tree that can be commited to disk all at once. The general formula goes like this -
Structs§
- Test
Server - A test server, which serves the fuchsia.blackout.test.Controller protocol.
Traits§
- Test
- The three steps the target-side of a blackout test needs to implement.
Functions§
- dev
- Returns a directory proxy connected to /dev.
- find_
dev - Find the device in /dev/class/block that represents a given topological path. Returns the full path of the device in /dev/class/block.
- find_
partition - Find an existing test partition using the device label and optional path, and connect to the controller proxy for it.
- generate_
content - Generate a Vec
of random bytes from a seed using a standard distribution. - set_
up_ partition - Set up a partition for testing using the device label and optional device path, returning the device controller for it. If the path is provided, it’s directly connected to. If a label is provided, it searches for that label, using it if found. If it’s not found, the logic attempts to create a new gpt partition to use.