Repository navigation
vk_device_filter_tools: run the cross build's PE harnesses through wine (TEST-DEVICE-FILTER-TOOLS-WINE) - #1618
Closed
PierreEbele wants to merge 1 commit into
Closed
PierreEbele wants to merge 1 commit into
PierreEbele wants to merge 1 commit into
Conversation
On Linux the Windows tree's vk_descriptor_bench and vk_sandbox are PE executables; check_device_filter_tools.py started them as they were, so every run of the ctest entry died with "OSError: [Errno 8] Exec format error" and the LEONIDA_VK_DEVICE refusal of TEST-1141 was never checked there. A PE on a host that cannot run one now goes through the wine that runs the suite (the WINE override of scripts/run_wine_tests.py, else the wine on PATH), a run without any wine skips with 77 like a machine with no Vulkan device, and tests/test_check_device_filter_tools.py keeps the three behaviours with fake tools and a stub wine. Under Wine 10.0 the ctest entry passes again (both tools refuse the filter). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Contributor
Author
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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