Skip to content

Add smoke tests for the native and DISM backends - #485

Merged
lostindark merged 1 commit into
lostindark:masterfrom
indep-arg:pr/smoke-tests
Oct 27, 2026
Merged

lostindark merged 1 commit into
lostindark:masterfrom
indep-arg:pr/smoke-tests

Conversation

@indep-arg

Copy link
Copy Markdown
Contributor

The unit tests never call the real backends, so a Windows change that breaks drvstore.dll or DISM would only show up in bug reports. These tests enumerate the actual driver store and check that the results make sense (oem*.inf names, an INF name, an existing folder), and that cfgmgr32 returns devices.

They don't need any third-party packages to exist, since a clean CI machine may have none. They report Inconclusive when not running elevated on Windows, so they shouldn't fail for environment reasons. They're tagged TestCategory("Smoke") in case you want to filter them.

I left PnpUtil out. On Windows Server the pnputil /e output may not be in the format the parser expects, and that's a separate question.

The unit tests never call the native (drvstore.dll) or DISM backends, so
a Windows change that breaks one of them would only show up in user
reports. These tests enumerate the real driver store and check that the
results make sense: oem*.inf names, an INF name and an existing folder.
They don't require any packages to exist, since a clean CI machine may
have none.

They need Windows and an elevated process, and report Inconclusive
otherwise (on Windows CI runners they run).
@lostindark
lostindark merged commit 6bc4060 into lostindark:master Oct 27, 2026
2 checks passed
@indep-arg
indep-arg deleted the pr/smoke-tests branch October 28, 2026 01:53
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