tools: test-native.sh fails fast without the Metal Shader Converter (… #397
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!397
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-394"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCWhat 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
@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.