Files
wiicompiled/translator/tests
Michael G 25c69ae28e Fix crash from Kamek skip-return hooks (Item Rain crash) (#182)
* fix: Kamek LR-continuation hook discovery and dispatch

* test: cover branching Kamek LR continuations

* review fix

* another review fix

fix: get the new tests to pass
test: expose LR restore and loop continuation regressions

* Update translator/src/Translator.Core/Mods/ContinuationPlanner.cs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* test: cover continuation regressions from the new path-sensitive planner

* Update translator/src/Translator.Core/Mods/ContinuationPlanner.cs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* test: cover continuation regressions from the new path-sensitive planner

* fix: preserve LR continuation analysis across large handlers and clobbers

* fix: track LR-relative r1 across update-form stack stores

* Harden LR-relative continuation test coverage

* Fix LR/SP continuation state tracking

---------

Co-authored-by: patchzyy <64382339+patchzyy@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-09-10 15:51:16 +02:00
..
2026-08-23 17:10:50 +02:00
2026-08-23 17:10:50 +02:00

Translator tests

Translator.Tests is the default binary-free suite. It covers the decoder, IR/SSA, code generation helpers, parsers with synthetic inputs, project-manifest loading, DOL-only image construction, and generic entry-point translation.

The older asset-backed and host-C++-compiler-backed test sources are intentionally retained in Translator.Tests but excluded in its project file. They mixed MKWii fixtures, several compiler selection strategies, and private-method reflection checks, which made the normal suite both slow and red on a clean Windows setup. They should become a separate opt-in integration project when that work is useful again.

An external generic DOL can be included without adding it to the repository:

$env:RECOMP_GENERIC_DOL = 'D:\path\to\main.dol'
dotnet test translator/Translator.sln -c Release

The test treats the file as a generic DOL: it reads the DOL entry point, builds a DOL-only image, and translates that entry point without game-specific addresses or bindings.