mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #1618] [CLOSED] vk_device_filter_tools: run the cross build's PE harnesses through wine (TEST-DEVICE-FILTER-TOOLS-WINE) #1632
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1632
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1618
Author: @PierreEbele
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:wine-device-filter-tools📝 Commits (1)
26b95e9vk_device_filter_tools: run the cross build's PE harnesses through wine📊 Changes
2 files changed (+139 additions, -2 deletions)
View changed files
📝
runtime/test/check_device_filter_tools.py(+32 -2)➕
tests/test_check_device_filter_tools.py(+107 -0)📄 Description
Claimed in the coordination issue as: TEST-DEVICE-FILTER-TOOLS-WINE (#1608)
What and why
On Linux, the Windows cross build's
vk_descriptor_benchandvk_sandboxare PE executables.runtime/test/check_device_filter_tools.pystarted them as they were, so thevk_device_filter_toolsctest entry always died withOSError: [Errno 8] Exec format error, and the TEST-1141 check that both tools refuse aLEONIDA_VK_DEVICEfilter matching no GPU never ran under Wine.Now a PE on a host that can't run one goes through the wine that runs the suite: the
WINEoverride ofscripts/run_wine_tests.py, elsewineonPATH. A run with no wine at all skips with 77, like a machine with no Vulkan device. Native Windows and native Linux tools are started as before.tests/test_check_device_filter_tools.pycovers the three cases (native tool, PE through wine, no wine: skip 77) with fake tools and a stub wine.Tested
python3 -I tests/test_check_device_filter_tools.py: 5 tests OK.main's checker: exit 1,OSError: [Errno 8] Exec format error: '.../vk_descriptor_bench.exe'ok: vk_descriptor_bench refuses LEONIDA_VK_DEVICE=leonida-no-such-gpu (exit 1)and the same forvk_sandbox.AI-assisted (written with Mistral Vibe, reviewed and tested with Claude Code).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.