BCPack tests: the reference-chunk test uses the shipped tables #316
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/316"
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?
Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:15:01Z.
The BCPack tables ship in the tree (
bcpack-tables.bin, read byTables::builtin), but the opt-inreference_chunkstest still demandedVICTORY_BCPACK_TABLESand panicked withVICTORY_BCPACK_TABLESwhen it was unset. Anyone with reference chunks had to point it at a copy of a file that already sits beside the code.Now:
VICTORY_BCPACK_CASESis the only required variable; the test usesTables::builtin()by default.VICTORY_BCPACK_TABLESstill works as an override for checking a different table file.#[ignore]reason says what is actually missing (reference chunks outside the repository).Test-only change in
crates/victory-formats/src/bcpack.rs; no decoder code touched.Testing (Linux)
cargo test -p victory-formats: 20 passed, 3 ignoredcargo clippy -p victory-formats --all-targets -- -D warnings: cleancargo xtask policy: okVICTORY_BCPACK_CASES=<dir> cargo test -p victory-formats reference_chunks -- --ignored: passes (it panicked onmain)VICTORY_BCPACK_TABLES=crates/victory-formats/src/bcpack-tables.bin: passesImported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:32:38Z.
Folded into #315 to keep the PR count down. The commit is unchanged there.
Pull request closed