command-replay's options() takes any --name VALUE pair into its map, and
each subcommand reads only the names it knows, so an option a subcommand
does not take is dropped in silence: `play --name run` plays as if no
--name were given. A mistyped or retired option should be a bad command
line instead.
replay_options::every_subcommand_refuses_an_option_it_does_not_take runs
play (--name), dump (--frame), shapes (--until-frame), snippet
video-surfaces (--stream) and compare-plays (--until-frame), each with
its required options plus one it does not take, and expects exit status
2, a standard error line "--X is not an option of SUBCOMMAND", no play
report and no snippet written.
Red here: play runs on (its report is written), and dump, shapes and the
snippet run to exit 0. The fix follows.
Callers audited before refusing (development 6a7b159d95): the in-tree
tests and docs, sched/round.py and every orchestration job script that
names command-replay (54 files), the scripts in every carry repository
(136, 35 that play), and the consumer's tree (development fdc1ecbbb5: no
caller). Every option they pass is one the subcommand takes, except
--probe-dump in two 11-27 probe scripts of one lab carry (probe-424.sh,
probe-reduce.sh), an option no commit of this repository ever had: it
was dropped in silence there, and would now stop those scripts with exit
status 2.
46 lines
1.9 KiB
Rust
46 lines
1.9 KiB
Rust
//! The validation crate's integration tests, one test binary for all of them.
|
|
//!
|
|
//! Each module below was its own test binary. Every binary of this crate's tests links the whole
|
|
//! translator, the runtime, and validation, so one binary instead of sixteen saves fifteen links
|
|
//! (and their codegen and disk) on every build of the suite. nextest still runs each test in its
|
|
//! own process. A test that installs its own global allocator to measure a compile alone
|
|
//! (`ledger_call_payloads.rs`, the `ledger_coverage_<k>.rs` shards) keeps a binary of its own:
|
|
//! a binary has one global allocator, and those tests need no other test thread allocating while
|
|
//! they measure.
|
|
|
|
/// The path of this crate's binary `$name` (a string literal), read when the test runs: the
|
|
/// `NEXTEST_BIN_EXE_<name>` that cargo-nextest sets (documented from 0.9.15 under the hyphenated
|
|
/// name, with an underscored copy from 0.9.113), which points into the directory a reused archive
|
|
/// was extracted to; else the path Cargo baked in at build time, where `cargo test` finds it.
|
|
macro_rules! bin_exe {
|
|
($name:literal) => {
|
|
std::env::var_os(concat!("NEXTEST_BIN_EXE_", $name))
|
|
.map(std::path::PathBuf::from)
|
|
.unwrap_or_else(|| std::path::PathBuf::from(env!(concat!("CARGO_BIN_EXE_", $name))))
|
|
};
|
|
}
|
|
|
|
mod audit_worker;
|
|
mod authored_compile_census;
|
|
mod bins;
|
|
mod committed_public_cases_check;
|
|
mod committed_shards_keep_the_store_layout;
|
|
mod compile_worker;
|
|
mod device_worker;
|
|
mod engine_linked_cases;
|
|
mod fast_trig_within_apples_bound;
|
|
mod fixtures_assemble_with_the_pinned_llvm;
|
|
mod half_division_cases;
|
|
mod linux_gate_policy;
|
|
mod metal_coverage;
|
|
mod no_conflict_markers;
|
|
mod no_quiet_grep_under_pipefail;
|
|
mod pipeline_selection;
|
|
mod private_corpus_root;
|
|
mod public_entry_rows;
|
|
mod published_crates;
|
|
mod replay_completion_mark;
|
|
mod replay_options;
|
|
mod replay_range;
|
|
mod translation_l3_stage;
|