tools: test-native.sh fails fast without the Metal Shader Converter (… #397

Manually merged
github merged 1 commit from github-bot/gh-394 into main 2026-11-27 16:29:45 +00:00 AGit
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 16:22 UTC · original
AnastasisKon:vibe/msc-fail-fast-12a6b33 → main · +92 −1 · 5 files · 1 commits · merged 2026-11-27 16:27 UTC

What this changes
Adds tools/macos/test-native.sh, a cargo test wrapper for the native macOS host that fails fast with the install steps when the Metal Shader Converter is missing (VICTORY_MSC_DYLIB or the installed default), instead of letting the shader-translating tests panic inside the converter's dlopen or as "no mesh pipeline". Regression: tools/macos/tests/msc-check.sh (stubbed rustup/cargo: fail-fast message and exit code, cargo not run without the converter, arguments passed through with it), wired into the macos-scripts CI job. CONTRIBUTING.md and native-setup.sh point at it. Refs #382

How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory — not run here (Linux sandbox); no Rust code changed
cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — rc=0 (rustc 1.98.1)
Ran the game — not needed (tools/docs only)
/bin/bash tools/macos/tests/msc-check.sh — "test-native converter check: ok" (Linux bash; script is Bash 3.2-safe, CI runs it under /bin/bash); bash -n on all touched scripts; cargo xtask policy 386 files ok; cargo test -p victory-shader -p xtask 372+6 pass
Checklist
No game files, game code, disassembly listings or SDK files are included
Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md — n/a, no emulator code
New diagnostics are behind a VICTORY_* variable and documented — n/a; the check reads the existing VICTORY_MSC_DYLIB

**@⁠AnastasisKon** on GitHub · 2026-11-27 16:22 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/394) `AnastasisKon:vibe/msc-fail-fast-12a6b33` → `main` · +92 −1 · 5 files · 1 commits · merged 2026-11-27 16:27 UTC What this changes Adds tools/macos/test-native.sh, a cargo test wrapper for the native macOS host that fails fast with the install steps when the Metal Shader Converter is missing (VICTORY_MSC_DYLIB or the installed default), instead of letting the shader-translating tests panic inside the converter's dlopen or as "no mesh pipeline". Regression: tools/macos/tests/msc-check.sh (stubbed rustup/cargo: fail-fast message and exit code, cargo not run without the converter, arguments passed through with it), wired into the macos-scripts CI job. CONTRIBUTING.md and native-setup.sh point at it. Refs #382 How it was tested cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory — not run here (Linux sandbox); no Rust code changed cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings — rc=0 (rustc 1.98.1) Ran the game — not needed (tools/docs only) /bin/bash tools/macos/tests/msc-check.sh — "test-native converter check: ok" (Linux bash; script is Bash 3.2-safe, CI runs it under /bin/bash); bash -n on all touched scripts; cargo xtask policy 386 files ok; cargo test -p victory-shader -p xtask 372+6 pass Checklist No game files, game code, disassembly listings or SDK files are included Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md — n/a, no emulator code New diagnostics are behind a VICTORY_* variable and documented — n/a; the check reads the existing VICTORY_MSC_DYLIB
cargo test -p victory-gpu on a Mac without the converter lets the
shader-translating tests panic inside the converter's dlopen (or as
"no mesh pipeline"), which looks like a GPU bug. tools/macos/test-native.sh
checks VICTORY_MSC_DYLIB / the installed default first and exits with the
install steps. Regression: tools/macos/tests/msc-check.sh, wired into the
macos-scripts CI job. CONTRIBUTING and native-setup.sh point at it.

Co-authored-by: AnastasisKon <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 16:23:16 +00:00
github manually merged commit b998bb6527 into main 2026-11-27 16:29:45 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-27 16:27 UTC · original

Merged in b998bb65. It overlaps #392 a little (both check for the converter), which is fine for now. Ran its script test locally. Thanks.

**@⁠LakshanSivakumar** on GitHub · 2026-11-27 16:27 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/394#issuecomment-7223291283) Merged in b998bb65. It overlaps #392 a little (both check for the converter), which is fine for now. Ran its script test locally. Thanks.
This discussion has been locked. Commenting is limited to contributors.
No description provided.