Skip to main content

Module driver

Module driver 

Source
Expand description

Runs the whole pipeline on a cargo package: copy -> instrument -> build once -> trace run -> plan -> run the infected mutants.

The user’s tree is never modified: everything happens in a copy under <target dir>/tmt/.

Re-exports§

pub use crate::report::CargoConfig;

Structs§

Options
StageExternal
An external file or directory staged relative to the isolated workspace copy, for monorepo packages whose build.rs or include_str! references parent paths.
TestSelection

Enums§

BaselineError
Structured error returned when baseline test execution fails or exceeds its timeout budget.

Functions§

run
run_packages
Collect the original aggregate report for callers that want it.
run_packages_each
Emit each completed package before starting the next one.
run_packages_each_with
Emit each completed package before starting the next one, resolving per-package options via options_for_package.
run_packages_with
Collect the aggregate report, allowing per-package option customisation (e.g. from tmt.toml).
select_single_package_name
Returns the Cargo package name that run would select for dir when no --package is given (including a single-member virtual workspace with glob members).
summarize_baseline_log
Extracts high-signal failure/panic lines from a baseline test log (libtest, nextest, or generic test output), bounded by line count, per-line byte limit, and total byte budget.