tooling: discover the local Leonida backend in TTPF tests #813
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!813
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/813/head"
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?
@stan495 on GitHub · 2026-11-23 07:20 UTC · original
stan495:codex/ttpf-test-tools-path→main· +7 −4 · 1 files · 1 commits · merged 2026-11-23 08:08 UTCChange
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.