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

Manually merged
github merged 1 commit from github-bot/gh-505 into main 2026-11-28 01:42:43 +00:00 AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 22:25 UTC · original
AnastasisKon:vibe/rustup-path-test-1705ac → main · +54 −0 · 2 files · 1 commits · merged 2026-11-28 01:37 UTC

What this changes

Refs #508. 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
**@⁠AnastasisKon** on GitHub · 2026-11-27 22:25 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/505) `AnastasisKon:vibe/rustup-path-test-1705ac` → `main` · +54 −0 · 2 files · 1 commits · merged 2026-11-28 01:37 UTC ## What this changes Refs #508. 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
Refs #504. rustup-path.sh covers the three paths (already on PATH; only in
CARGO_HOME/bin or Homebrew's keg-only opt dir, with PATH extended and
rustup_found set; nowhere, returning 1) using stub binaries and a scratch
CARGO_HOME/HOMEBREW_PREFIX. ci.yml runs it with the other Bash 3.2 script
tests.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:28:45 +00:00
github manually merged commit 876f7956f8 into main 2026-11-28 01:42:43 +00:00
Author
Owner

@⁠Olima34 on GitHub · 2026-11-28 01:36 UTC · original · approved these changes

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 (#401 #403 #426 #471 #475 #479 #483 #485 #490 #493 #498 #502 #509 #515). 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!

**@⁠Olima34** on GitHub · 2026-11-28 01:36 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/505#pullrequestreview-6094926990) · **approved these changes** 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 (#401 #403 #426 #471 #475 #479 #483 #485 #490 #493 #498 #502 #509 #515). 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!
This discussion has been locked. Commenting is limited to contributors.
No description provided.