Repository navigation
BCPack tests: the reference-chunk test uses the shipped tables - #316
Closed
SkippySteve wants to merge 1 commit into
Closed
SkippySteve wants to merge 1 commit into
SkippySteve wants to merge 1 commit into
Conversation
The format's tables now ship in-tree (Tables::builtin), but the ignored reference_chunks test still panicked unless VICTORY_BCPACK_TABLES named a table file. It now uses the built-in tables by default; the variable stays as an override for comparing another table file. Only VICTORY_BCPACK_CASES is required.
Author
|
Folded into #315 to keep the PR count down. The commit is unchanged there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: passes