HLE: expand synthetic unit tests for apu.rs (1 -> 19 tests) #1120
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1120
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@geiyiliyabumo on GitHub · 2026-11-24 15:54 UTC · original
Summary
Audits
crates/victory-hle/src/modules/apu.rsand expands deterministic synthetic unit tests from 1 to 19 passing tests (encoding synthetic two-tone Opus packets at test time viaopus_pure, zero fixtures/game data). Production code is unchanged.Because external PR creation is currently restricted (
collaborators_only), the CI-green branch is ready on my fork for cherry-pick / review:geiyiliyabumo/VIctory@test/hle-apu-auditgeiyiliyabumo/VIctory@d10138b(based onmainffe310e)Tests Added (
crates/victory-hle/src/modules/apu.rs, 1 -> 19 tests)streams0/501,commands_per_stream0/17,memory0,frames_per_output,E_NOTIMPL), 16-byte-aligned zeroed memory, event creation.ALREADY_ACTIVE, decode determinism,first_frame/output-room clamping, planarDEINTERLEAVED_OUTPUT, mono + stereo-to-mono downmix, null/empty buffers,BAD_PACKETleaving title buffer untouched.RESET, FIFO one-result-per-command, per-streamQUEUE_FULL& slot release, rejected-command accounting, identity echo,PENDING_RESULTS, null args on every export, andSIGNAL/auto-reset event behavior.Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --check crates/victory-hle/src/modules/apu.rs: PASScargo xtask policy: PASS (154 files ok)cargo clippy -p victory-hle --all-targets --locked -- -D warnings(default +--features diagnostics): PASS (0 warnings)cargo test -p victory-hle --locked -- apu::: 19 passed, 0 failed (victory-hle112 + 1passed)AI-assisted; synthetic tests only, no game files.
@Vittorio17 on GitHub · 2026-11-24 16:05 UTC · original
I'm working on this
@Marvisak on GitHub · 2026-11-25 10:05 UTC · original
Automated triage for the maintainers.
Thanks. This adds tests only:
crates/victory-hle/src/modules/apu.rshas 2 tests onmaintoday, and production code is unchanged. Pull requests are open to everyone now, and your open PR #1212 already carries this branch (test/hle-apu-audit). Review and CI belong there, and this issue tracks it until #1212 is merged or closed. Ifmainhas moved under it, a rebase of #1212 onto currentmainwill help it get reviewed.Generated by Claude Code