tools: test native-binary.sh's find_rustup PATH handling, and wire it into CI #504

Open
opened 2026-11-27 22:24:13 +00:00 by AnastasisKon · 4 comments
AnastasisKon commented 2026-11-27 22:24:13 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T22:24:13Z.


What

tools/macos/native-binary.sh's find_rustup (shared by native-setup.sh and run-native.sh) has three paths — rustup already on PATH, rustup only in CARGO_HOME/bin or Homebrew's keg-only opt dir (PATH gains it, rustup_found names the folder), and no rustup (returns 1) — and no test. The existing tools/macos/tests/ harness covers its siblings (console-default, target-directory) but not this one, and ci.yml lists each test by name.

What this changes

One change, tools-only: new tools/macos/tests/rustup-path.sh covering the three paths with stub rustup binaries and a scratch CARGO_HOME/HOMEBREW_PREFIX, plus one step in .github/workflows/ci.yml running it (Bash 3.2) next to the others.

How it was tested

  • /bin/bash tools/macos/tests/rustup-path.sh
  • all tools/macos/tests/*.sh + run-summary.sh --self-test
  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask, windows clippy gate, cargo xtask policy (no Rust change, run anyway)
  • Game run: not needed (tools-only).
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6655410024 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/504). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T22:24:13Z. --- ## What `tools/macos/native-binary.sh`'s `find_rustup` (shared by native-setup.sh and run-native.sh) has three paths — rustup already on PATH, rustup only in CARGO_HOME/bin or Homebrew's keg-only opt dir (PATH gains it, `rustup_found` names the folder), and no rustup (returns 1) — and no test. The existing `tools/macos/tests/` harness covers its siblings (console-default, target-directory) but not this one, and ci.yml lists each test by name. ## What this changes One change, tools-only: new `tools/macos/tests/rustup-path.sh` covering the three paths with stub rustup binaries and a scratch CARGO_HOME/HOMEBREW_PREFIX, plus one step in `.github/workflows/ci.yml` running it (Bash 3.2) next to the others. ## How it was tested - `/bin/bash tools/macos/tests/rustup-path.sh` - all `tools/macos/tests/*.sh` + `run-summary.sh --self-test` - `cargo test -p victory-hle -p victory -p victory-gpu -p xtask`, windows clippy gate, `cargo xtask policy` (no Rust change, run anyway) - Game run: not needed (tools-only).
AnastasisKon commented 2026-11-27 22:24:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-27T22:24:19Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7229300199 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/504#issuecomment-7229300199). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T22:24:19Z. --- /claim
github-actions[bot] commented 2026-11-27 22:24:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T22:24:29Z.


Claimed by @AnastasisKon. Open a draft pull request with Refs #504 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7229302401 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/504#issuecomment-7229302401). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-27T22:24:29Z. --- Claimed by @AnastasisKon. Open a draft pull request with `Refs #504` in its description within 24 hours, or the claim expires.
AnastasisKon commented 2026-11-28 12:47:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T12:47:26Z.


/release - done: PR #505 is merged upstream (2026-11-28T01:37Z), so this one is finished on main itself, not only in my fork. Freeing the claim so the queue shows the truth.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239468224 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/504#issuecomment-7239468224). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T12:47:26Z. --- /release - done: PR #505 is merged upstream (2026-11-28T01:37Z), so this one is finished on `main` itself, not only in my fork. Freeing the claim so the queue shows the truth.
github-actions[bot] commented 2026-11-28 12:47:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T12:47:35Z.


Released. This issue is free to claim.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7239469962 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/504#issuecomment-7239469962). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T12:47:35Z. --- Released. This issue is free to claim.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS#504
No description provided.