Expand description
This computer as machine setup reads it: its OS, its CPU and its package manager, each a closed
set, and the files detection reads (KVM’s device, UTM’s bundle, the kernel’s module list…).
It is worked out once (Host::here) and handed to every rule that depends on it. A rule
matches on these enums (the OS and CPU are the runner’s HostOs and Arch), never on
std::env::consts strings: an OS, CPU or package manager added is a compile error at every
rule that doesn’t say what it does there yet.
A test builds its own (Host { os, arch, packages, devices: Devices::under(dir) }), so each
OS’s rules run on any machine.
Modules§
- tool_
path - The folders a process searches for the tools machine setup and a run start, worked out as a
value its caller puts on its own
PATH: the crate never sets a variable.
Structs§
- Devices
- The files and the one local service detection reads instead of running a tool: each a path a
test points into a folder of its own (
Devices::under), so no test reads the machine running it. - Host
- This computer: its OS, its CPU, the package manager setup goes through here (
None: a Mac without Homebrew, a Linux distribution with neither apt nor dnf), and the files detection reads.
Enums§
- Arch
- The OS and the CPU machine setup runs on: the runner’s (
isothrum_runner::this_host,isothrum_runner::this_arch), written as the runner writes them (macos,amd64). A CPU architecture. - HostOs
- The OS and the CPU machine setup runs on: the runner’s (
isothrum_runner::this_host,isothrum_runner::this_arch), written as the runner writes them (macos,amd64). A host operating system. - Linux
Packages - A Linux distribution’s package manager setup goes through.
- Packages
- The package manager setup installs and removes tools through.
Constants§
- ALL_
ARCHES - Every CPU.
- ALL_
OSES - Every OS.
- VMWARE_
UTILITY_ PORT - The port the Vagrant VMware Utility’s service listens on.
Functions§
- os_name
os’s name as people write it (macOS).- qemu_
system - QEMU’s system emulator for a CPU
arch(qemu-system-x86_64). - usual_
packages - The package manager setup installs through on
oswhen the machine has it: the one to name when it is missing (Linux’s first, apt).