OLD-10027: test: unit tests for tools/probe_gfx1036_vcmp16.py #1025

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

@⁠klikso on GitHub · 2026-11-24 17:01 UTC · original
klikso:carry/old-10027-probe-gfx1036-vcmp16-tests → main · +361 −0 · 1 files · 1 commits · open

Claimed in the coordination issue as: OLD-10027

What and why

Carries forward old-pr/10027 (draft #295) rebased onto current main:

  • Adds unit tests in tests/test_probe_gfx1036_vcmp16.py covering GFX1036 16-bit vector compare opcode probing, disassembly parsing, and register layout checks.

Original commit preserved: Ritolino <[email protected]>.

Tested

  • python -I tests/test_probe_gfx1036_vcmp16.py: 11/11 passed
  • python -I scripts/check_no_game_data.py tests/test_probe_gfx1036_vcmp16.py: passed (no game data)
  • python -I tests/test_text_write_line_endings.py: passed
  • python -m compileall -q make_game.py tools tests: clean

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed: n/a (no translator rule).
**@⁠klikso** on GitHub · 2026-11-24 17:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1025) `klikso:carry/old-10027-probe-gfx1036-vcmp16-tests` → `main` · +361 −0 · 1 files · 1 commits · open Claimed in the coordination issue as: OLD-10027 ### What and why Carries forward `old-pr/10027` (draft #295) rebased onto current `main`: - Adds unit tests in `tests/test_probe_gfx1036_vcmp16.py` covering GFX1036 16-bit vector compare opcode probing, disassembly parsing, and register layout checks. Original commit preserved: `Ritolino <230431388+[email protected]>`. ### Tested - `python -I tests/test_probe_gfx1036_vcmp16.py`: 11/11 passed - `python -I scripts/check_no_game_data.py tests/test_probe_gfx1036_vcmp16.py`: passed (no game data) - `python -I tests/test_text_write_line_endings.py`: passed - `python -m compileall -q make_game.py tools tests`: clean GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed: n/a (no translator rule).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:34:03 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-24 17:09 UTC · original · approved these changes

Verified on exact head f6912fa0c03091b45fba68d30f890bd8c13a2009 (base fce586c6d6). tests/test_probe_gfx1036_vcmp16.py passes 11/11; line-ending tests pass 3/3. The new test file passes the no-game-data scan and git diff --check. Coverage remains hardware-independent and exercises opcode parsing, disassembly parsing, and register layout without claiming a GPU probe.

**@⁠KernelSmoker** on GitHub · 2026-11-24 17:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1025#pullrequestreview-6043896593) · **approved these changes** Verified on exact head f6912fa0c03091b45fba68d30f890bd8c13a2009 (base fce586c6d6f74160eccff015d9806e179188d862). `tests/test_probe_gfx1036_vcmp16.py` passes 11/11; line-ending tests pass 3/3. The new test file passes the no-game-data scan and `git diff --check`. Coverage remains hardware-independent and exercises opcode parsing, disassembly parsing, and register layout without claiming a GPU probe.
Author
Owner

@⁠klikso on GitHub · 2026-11-24 17:42 UTC · original

Note for reviewers: the head moved from f6912fa0c to c7b374f32. Only the commit's committer field changed (to a GitHub noreply address); the tree, the author and the message are identical, and the base is the same. The approval above was given on f6912fa0c.

**@⁠klikso** on GitHub · 2026-11-24 17:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1025#issuecomment-7139590727) Note for reviewers: the head moved from `f6912fa0c` to `c7b374f32`. Only the commit's committer field changed (to a GitHub noreply address); the tree, the author and the message are identical, and the base is the same. The approval above was given on `f6912fa0c`.
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/1025/head:github-bot/gh-1025'
git switch 'github-bot/gh-1025'

Merge

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