Omit artifact-only --out-dir when running check-mode cases
Problem
A valid mode=check source is turned into an invalid wavec check command by the test runner.
Reproduction and evidence
Audited canonical master 69a67c6e0fb700f37ee6114f5a66d37ee13771a5 (0.0.1-alpha-dev). Matching checkout-built compiler/std were used for compiler probes on Linux amd64 with Rust 1.89.0 and LLVM 21.1.8. Artifact inspection, mocked/projection checks and foreign-target object emission are identified below and are not native execution on those operating systems.
// wave-test: mode=check
fun main(){}
target/debug/wavec check repro.wave
target/debug/wave-tools test --wavec target/debug/wavec --target-id linux-amd64 --source repro.wave --report-json report.json
Direct check exits 0. Runner check phase exits 2: unknown option for check: --out-dir.
Scope
Construct check command vectors without options that only apply to emitted artifacts.
Starting points: tools/src/runner.rs:560.
Completion criteria
- [ ] A valid check-only source passes through the actual CLI.
- [ ] An invalid source still fails with the source diagnostic.
- [ ] Build/run output-path behavior is preserved.
This is a bounded newcomer task with the starting point and focused negative/positive checks above.
Related: #994, #1022. Related broad trackers or completed implementations are context, not claims that their entire scope is unfinished.