Testing Policy
ZeroVDD separates deterministic host tests, Windows WDK/build validation, and bare-metal Windows 11 hardware-in-the-loop (HIL) checks into three verification tiers.
Verification Tiers
Section titled “Verification Tiers”Tier 1: Fast Local & Portable Gate (mise run verify:agent)
Section titled “Tier 1: Fast Local & Portable Gate (mise run verify:agent)”Runs on Windows, Linux, and macOS with zero WDK and zero elevated privileges:
mise run fmt:check:cargo fmt --all -- --check(root +driver-wdk)mise run lint:cargo clippy --workspace --all-targets -- -D warningsmise run check:win:cargo check --target x86_64-pc-windows-msvcacross Windows user-mode cratesmise run check:nostd:cargo check --no-default-featuresacross#![no_std]Layer 0/1 cratesmise run lints:static: compiled static repository lints incrates/zerovdd-checks(DAG,NoPanic,// SAFETY:, doc-comments, CI SHA pins, layout/EOL, WCAG contrast, zero plan codes, source-text test boundary, zero test sleep)mise run test:scripts:.githooksand shell script tests in isolated temporary git repositoriesmise run test: unit, property (proptest), simulation (FakeIddPlatform), and regression corpus tests across the root workspacemise run machete,mise run deny:rust,mise run check:emdash,mise run check:drift
Tier 2: Windows WDK & Compliance Validation (mise run driver:build + CI)
Section titled “Tier 2: Windows WDK & Compliance Validation (mise run driver:build + CI)”Runs on Windows 11 with Visual Studio Build Tools and Windows 11 WDK:
- Compiles
driver-wdk(zerovdd.dll) forx64andARM64 - Runs
StampInf,InfVerif /u,InfVerif /h,InfVerif /w(0 errors),ApiValidator(All binaries are Universal), andInf2Cat(0 errors/warnings) - Builds and tests Windows user-mode crates natively (
x64andARM64) - Runs
cargo-auditagainst.cargo/audit.tomlandmise run docs:buildfor the Starlight documentation site
Tier 3: Hardware-in-the-Loop (HIL) Verification on Windows 11
Section titled “Tier 3: Hardware-in-the-Loop (HIL) Verification on Windows 11”Runs on live Windows 11 22H2+ / 24H2 hardware:
- MSI clean install, same-version upgrade, clean uninstall,
DIRID 13verification, andzerovdd doctor --capture-etw - Non-elevated Medium-integrity IPC parity (
display add/list/set-mode/switch-gpu/remove/restore) alongsideERROR_ACCESS_DENIEDon direct\ZeroVddControlopen - Portrait rotation (
90/270), negative coordinates,--ppiscaling, HDR10 DCI-P3 / 10 bpc, custom--edid, andzerovdd edid inspect - Native
zerovdd-tray.exe--check-only, single-instance mutex, and ~0 ms idle CPU verification - Sunshine
configure --apply, simulatedsunshine.exeforce-kill crash recovery, andscripts/windows/stress-test.ps1soak + raw IOCTL fuzzing
Mock vs. Real Hardware Coverage
Section titled “Mock vs. Real Hardware Coverage”| Subsystem | Tier 1 (Pure Rust / Mock) | Tier 2 (WDK / Build) | Tier 3 (Live Windows HIL) |
|---|---|---|---|
| IOCTL ABI & IPC framing | Unit + proptest + fuzz corpus | Native Windows compile | Raw IOCTL fuzz + ACL denial |
| EDID 1.4 + CTA-861-G + HDR10 | Checksum, PPI, bpc, chromaticity | Linked into zerovdd.dll |
Windows EDID parse, DPI, HDR |
| CVT-RBv2 64-bit timing math | 8K@240Hz, fractional Hz | Linked into zerovdd.dll |
EnumDisplaySettings parity |
| Driver state machine | FakeIddPlatform re-entrancy & soak |
Linked into zerovdd.dll |
Live WUDFHost.exe soak + TDR |
| CCD & Win11 24H2 HDR/ACM | Captured topology fixtures | Native windows compile |
Live multi-monitor, portrait & HDR |
| Session-0 service & tray | State machine + pipe/model tests | Native service + tray build | Crash recovery, Lock Screen, tray idle |
| INF & UMDF compliance | crate_dag_lint, driver_panic_policy_lint |
InfVerif /u /h /w, ApiValidator |
Clean MSI install/upgrade/uninstall |
Test Authoring Rules
Section titled “Test Authoring Rules”- Zero
sleepin tests: Enforced bytest_sleep_lint. Synchronize with barriers, channels, or injected clocks. - Negative fixtures required: Every static lint and validator test includes known-bad fixtures proving invalid inputs fail.
- No host state mutation in Tier 1: Unit and script tests run in isolated
TempDirdirectories and passZEROVDD_NO_SERVICE_IPC=1for offline CLI validation tests.