[PR #1618] [CLOSED] vk_device_filter_tools: run the cross build's PE harnesses through wine (TEST-DEVICE-FILTER-TOOLS-WINE) #1632

Closed
opened 2026-11-26 20:21:55 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 26b95e9 vk_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_bench and vk_sandbox are PE executables. runtime/test/check_device_filter_tools.py started them as they were, so the vk_device_filter_tools ctest entry always died with OSError: [Errno 8] Exec format error, and the TEST-1141 check that both tools refuse a LEONIDA_VK_DEVICE filter 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 WINE override of scripts/run_wine_tests.py, else wine on PATH. 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.py covers 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.
  • Against the real Windows cross-build tools (clang-cl + xwin) under Wine 10.0, GTX 1050 Ti / NVIDIA 555.58:
    • main's checker: exit 1, OSError: [Errno 8] Exec format error: '.../vk_descriptor_bench.exe'
    • this branch: exit 0, ok: vk_descriptor_bench refuses LEONIDA_VK_DEVICE=leonida-no-such-gpu (exit 1) and the same for vk_sandbox.
  • Native Windows: not run (the change only adds the wine path; the native branch is unchanged).

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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1618 **Author:** [@PierreEbele](https://github.com/PierreEbele) **Created:** 11/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `wine-device-filter-tools` --- ### 📝 Commits (1) - [`26b95e9`](https://github.com/ubiquitarianism/leonida/commit/26b95e9b4896a9aab284b7105eb1b51c1678dca5) vk_device_filter_tools: run the cross build's PE harnesses through wine ### 📊 Changes **2 files changed** (+139 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/check_device_filter_tools.py` (+32 -2) ➕ `tests/test_check_device_filter_tools.py` (+107 -0) </details> ### 📄 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_bench` and `vk_sandbox` are PE executables. `runtime/test/check_device_filter_tools.py` started them as they were, so the `vk_device_filter_tools` ctest entry always died with `OSError: [Errno 8] Exec format error`, and the TEST-1141 check that both tools refuse a `LEONIDA_VK_DEVICE` filter 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 `WINE` override of `scripts/run_wine_tests.py`, else `wine` on `PATH`. 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.py` covers 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. - Against the real Windows cross-build tools (clang-cl + xwin) under Wine 10.0, GTX 1050 Ti / NVIDIA 555.58: - `main`'s checker: exit 1, `OSError: [Errno 8] Exec format error: '.../vk_descriptor_bench.exe'` - this branch: exit 0, `ok: vk_descriptor_bench refuses LEONIDA_VK_DEVICE=leonida-no-such-gpu (exit 1)` and the same for `vk_sandbox`. - Native Windows: not run (the change only adds the wine path; the native branch is unchanged). AI-assisted (written with Mistral Vibe, reviewed and tested with Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:21:55 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1632
No description provided.