tooling: discover the local Leonida backend in TTPF tests #807
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/813"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-23T07:20:28Z.
Change
Use
out/Leonida/toolsfor the real TTPF exporter check when neitherTTPF_TOOLS_DIRnorBCPACK_REFERENCE_TOOLSis set. The test passes the discovered path to bothload_tools()andbatch_export(). In the absence of explicit configuration, a missingttpf_mips.pyskips the optional check.Refs #798 and #458.
Verification
Tested the patch in
d9a9f25on Windows with Python 3.12. From the repository root, run:The Python check produced these results in isolated copies of the test and its dependencies:
out/Leonida/tools, both environment variables unset66669bbfailed withtools module could not be loaded. The patched test passed all 9 cases.TTPF_TOOLS_DIRorBCPACK_REFERENCE_TOOLSout/Leonida/toolsdirectory, both environment variables unsetCTest passed its registered test with 8 Python cases passing and the optional backend case skipped.
git diff --checkpassed.Evidence and follow-up
The optional check uses the existing generated RDS5 fixture and Leonida revision
b0befb4b88d6640354940117448ea19d52507584. The real-backend runs verify DDS output against the independent BC1 and BC7 pixel references. An empty default directory is the control for the skip condition.Checklist
AI-assisted.