test: skip translated draw variants without Vulkan #2161

Open
github-bot wants to merge 1 commit from github-bot/gh-2161 into main AGit
Owner

@⁠Joaco9020 on GitHub · 2026-11-26 00:36 UTC · original
Joaco9020:fix/translated-draw-ctest-skips → main · +12 −1 · 2 files · 1 commits · draft

Claimed as TEST-TRANSLATED-DRAW-SKIP-CODES in the coordination thread.

Summary

The translated-draw executable returns 77 when no usable Vulkan device is available. The base d3d12_translated_draw test already marks that code as a CTest skip, but its three sibling variants did not. Mark all four variants with SKIP_RETURN_CODE 77 and pin the sibling registrations in the CTest registration unit test.

Verification

  • python -I tests/test_ctest_registration.py -v — 7 passed.
  • python -I scripts/check_no_game_data.py runtime/CMakeLists.txt tests/test_ctest_registration.py — passed.
  • git diff --check — clean.
  • cmake -S runtime -B runtime/build -A x64 — configured. The translated-draw executable was not generated because this machine lacks llvm-mc and spirv-as/spirv-val.

No game files or GPU data are included. GPU execution is not needed for this CTest registration change. AI-assisted: yes.

  • One topic; no game data.
  • Based on current main.
**@⁠Joaco9020** on GitHub · 2026-11-26 00:36 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2161) `Joaco9020:fix/translated-draw-ctest-skips` → `main` · +12 −1 · 2 files · 1 commits · draft Claimed as `TEST-TRANSLATED-DRAW-SKIP-CODES` in [the coordination thread](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608). ## Summary The translated-draw executable returns `77` when no usable Vulkan device is available. The base `d3d12_translated_draw` test already marks that code as a CTest skip, but its three sibling variants did not. Mark all four variants with `SKIP_RETURN_CODE 77` and pin the sibling registrations in the CTest registration unit test. ## Verification - `python -I tests/test_ctest_registration.py -v` — 7 passed. - `python -I scripts/check_no_game_data.py runtime/CMakeLists.txt tests/test_ctest_registration.py` — passed. - `git diff --check` — clean. - `cmake -S runtime -B runtime/build -A x64` — configured. The translated-draw executable was not generated because this machine lacks `llvm-mc` and `spirv-as`/`spirv-val`. No game files or GPU data are included. GPU execution is not needed for this CTest registration change. AI-assisted: yes. - [x] One topic; no game data. - [x] Based on current `main`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:20:46 +00:00
Author
Owner

@⁠real-rusher on GitHub · 2026-11-26 10:20 UTC · original

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. python -I tests/test_ctest_registration.py: OK with this PR; the same file against main's runtime/CMakeLists.txt: 1 failure, so the new check fails on main and passes with the change. compileall clean.

AI-assisted: yes (Claude Code)

**@⁠real-rusher** on GitHub · 2026-11-26 10:20 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2161#issuecomment-7189230712) Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly. python -I tests/test_ctest_registration.py: OK with this PR; the same file against main's runtime/CMakeLists.txt: 1 failure, so the new check fails on main and passes with the change. compileall clean. AI-assisted: yes (Claude Code)
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2161/head:github-bot/gh-2161'
git switch 'github-bot/gh-2161'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2161'
git switch 'github-bot/gh-2161'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2161'
git switch 'github-bot/gh-2161'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2161'
git switch 'main'
git merge --squash 'github-bot/gh-2161'
git switch 'main'
git merge --ff-only 'github-bot/gh-2161'
git switch 'main'
git merge 'github-bot/gh-2161'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.