tools: test native-binary.sh's find_rustup PATH handling, wired into CI (#504) #505

Merged
AnastasisKon merged 1 commit from upstream-pr/505 into main 2026-11-28 01:37:00 +00:00
AnastasisKon commented 2026-11-27 22:25:44 +00:00 (Migrated from github.com)

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


What this changes

Refs #504. Tools-only. New tools/macos/tests/rustup-path.sh pins find_rustup's three paths with stub rustup binaries and a scratch CARGO_HOME/HOMEBREW_PREFIX: already on PATH (found, rustup_found empty); only in $CARGO_HOME/bin or $HOMEBREW_PREFIX/opt/rustup/bin (PATH extended, rustup_found names the folder); nowhere (returns 1, rustup_found empty). One new step in .github/workflows/ci.yml runs it with the other Bash 3.2 script tests.

How it was tested

  • /bin/bash tools/macos/tests/rustup-path.sh — ok
  • all tools/macos/tests/*.sh + run-summary.sh --self-test — pass (Bash 3.2)
  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask — pass (RC=0; no Rust change)
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — pass (RC=0, 0 errors)
  • cargo xtask policy — pass (399 files ok)
  • Ran the game: not needed (tools-only)

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour — n/a
  • New diagnostics behind a VICTORY_* variable — n/a, none added
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5533890983 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/505). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-27T22:25:44Z. --- ## What this changes Refs #504. Tools-only. New `tools/macos/tests/rustup-path.sh` pins `find_rustup`'s three paths with stub rustup binaries and a scratch CARGO_HOME/HOMEBREW_PREFIX: already on PATH (found, `rustup_found` empty); only in `$CARGO_HOME/bin` or `$HOMEBREW_PREFIX/opt/rustup/bin` (PATH extended, `rustup_found` names the folder); nowhere (returns 1, `rustup_found` empty). One new step in `.github/workflows/ci.yml` runs it with the other Bash 3.2 script tests. ## How it was tested - [x] `/bin/bash tools/macos/tests/rustup-path.sh` — ok - [x] all `tools/macos/tests/*.sh` + `run-summary.sh --self-test` — pass (Bash 3.2) - [x] `cargo test -p victory-hle -p victory -p victory-gpu -p xtask` — pass (RC=0; no Rust change) - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings` — pass (RC=0, 0 errors) - [x] `cargo xtask policy` — pass (399 files ok) - [x] Ran the game: not needed (tools-only) ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour — n/a - [x] New diagnostics behind a `VICTORY_*` variable — n/a, none added
Olima34 commented 2026-11-28 01:36:57 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:36:57Z.

Review: APPROVED


Check report (helping the maintainer clear the queue):

  • CI: check and macos-scripts green on the current head.
  • Read: the whole diff. It adds a Bash 3.2 test of native-binary.sh's find_rustup (on PATH, in CARGO_HOME, in Homebrew's keg-only dir, nowhere) and one CI step that runs it. It touches no other workflow line.
  • Local check: current main (226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#397 #399 #422 #467 #471 #475 #479 #481 #486 #489 #494 #498 #505 #511). On it, the victory-gpu (arm64), victory-shader, victory-backend, victory-metal and victory tests pass, as do the macOS script tests (rustup-path.sh, run-summary-compare.sh, run-summary.sh --self-test), Windows clippy (-D warnings) and cargo xtask policy. One victory-gpu run in four failed main's own multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately. That test also flakes on main alone, so it isn't from this batch.
  • Not checked: no game run (the maintainer asked us to work on GitHub only).

Thanks @AnastasisKon!

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6094926990 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/505#pullrequestreview-6094926990). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T01:36:57Z. **Review:** APPROVED --- Check report (helping the maintainer clear the queue): - **CI:** `check` and `macos-scripts` green on the current head. - **Read:** the whole diff. It adds a Bash 3.2 test of `native-binary.sh`'s `find_rustup` (on PATH, in `CARGO_HOME`, in Homebrew's keg-only dir, nowhere) and one CI step that runs it. It touches no other workflow line. - **Local check:** current main (226645f9) merged with this PR and the other test/docs/tools PRs we're landing in this batch (#397 #399 #422 #467 #471 #475 #479 #481 #486 #489 #494 #498 #505 #511). On it, the `victory-gpu` (arm64), `victory-shader`, `victory-backend`, `victory-metal` and `victory` tests pass, as do the macOS script tests (`rustup-path.sh`, `run-summary-compare.sh`, `run-summary.sh --self-test`), Windows clippy (`-D warnings`) and `cargo xtask policy`. One `victory-gpu` run in four failed main's own `multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately`. That test also flakes on main alone, so it isn't from this batch. - **Not checked:** no game run (the maintainer asked us to work on GitHub only). Thanks @AnastasisKon!
Sign in to join this conversation.
No reviewers
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!505
No description provided.