Skip to content

test(toolchain): muscle-memory drop-in rustup passthrough tests (#331) - #504

Merged
zackees merged 1 commit into
mainfrom
feat/331-rustup-passthrough-tests
May 24, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/331-rustup-passthrough-tests

Conversation

@zackees

@zackees zackees commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

Closes the "muscle-memory drop-in tests" gap called out in #331. Adds 4 integration tests covering the rustup passthrough surface:

  • rustup component add injects --toolchain (mirrors the existing target add test path)
  • rustup toolchain list is forwarded verbatim — top-level mgmt verbs do not inject the pin
  • rustup --version is forwarded verbatim — bare flags before any positional are unscoped
  • rustup target add --toolchain=<value> equals-form preserves the user-supplied toolchain (verifies the existing equals-form guard in rustup_args_specify_toolchain)

The remaining sub-bullets of #331 (per-plugin --locked support and the per-(host, target) cross-compile lane sketch) are already shipped: PluginSpec::Detailed exposes --locked and toolchain prepare already targets the channel-pinned toolchain for component/target installs. This PR fills in the coverage gap and closes #331 for the wave-4 meta (#503).

Closes #331.
Refs #503.

Test plan

  • soldr cargo build -p soldr-cli --tests
  • soldr cargo test -p soldr-cli --test cli_toolchain rustup_passthrough_ — all 7 tests pass
  • soldr cargo fmt -- crates/soldr-cli/tests/cli_toolchain.rs

🤖 Generated with Claude Code

#331)

Closes the "muscle-memory drop-in tests" gap called out in #331:

- rustup component add injects --toolchain (parallel to target add)
- rustup toolchain list is forwarded verbatim (top-level mgmt verb)
- rustup --version is forwarded verbatim
- rustup target add --toolchain=<value> equals-form preserves user
  explicit toolchain (verifies the existing equals-form guard)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

soldr rustup: drop-in passthrough + project-level soldr toolchain prepare

1 participant