Skip to content

Make hardware smoke tests GPU-agnostic - #202

Closed
ZyyXD1 wants to merge 1 commit into
Lemxy:mainfrom
ZyyXD1:test/gpu-agnostic
Closed

ZyyXD1 wants to merge 1 commit into
Lemxy:mainfrom
ZyyXD1:test/gpu-agnostic

Conversation

@ZyyXD1

@ZyyXD1 ZyyXD1 commented Nov 27, 2026

Copy link
Copy Markdown

Problem

The hardware smoke tests assume specific hardware, such as an NVIDIA card with over 4 GB of dedicated memory. That does not hold on integrated GPUs or other machines.

Changes (test code only)

  • gpu.rs: removed the requirements for an NVIDIA GPU, over 4 GB of dedicated memory, a PCI location and a readable temperature. The test still checks that adapters are found and have a name and a DirectX description. Renamed to real_adapters_have_names_and_directx.
  • hw.rs: removed the 512 MiB minimum for video memory. The driver version is checked when a GPU name is available.

No production behaviour changes.

Coverage tradeoff

gpu.rs no longer verifies temperature reading or PCI location. The conditional NVIDIA temperature check in hw.rs remains.

Testing

  • cargo test -p rtaskmgr-win32 passes

@Lemxy

Lemxy commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Thank you! Merged into the dev branch as a squash commit with you credited as co-author (Co-authored-by), and added you to CONTRIBUTORS.md; it goes to main and the next release from there. Closing here only because GitHub does not see squash merges as merged.

@Lemxy Lemxy closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants