Skip to content

Split out unit testable code#75

Merged
bleggett merged 4 commits intomainfrom
bleggett/bls-unit-tests
Mar 30, 2026
Merged

Split out unit testable code#75
bleggett merged 4 commits intomainfrom
bleggett/bls-unit-tests

Conversation

@bleggett
Copy link
Copy Markdown
Contributor

As mentioned in #47 we need some unit tests for basic build correctness checks outside of UEFI target contexts.

This is a bit tricky for Sprout specifically, because it uses UEFI libs which only support building binaries against x86_64-unknown-uefi/aarch64-unknown-uefi - which means test binaries cargo test produces won't run in most normal non-UEFI contexts.

We can fix that by separating testable code with no hard UEFI dependencies into standalone crates, and testing those.

This introduces

  • crates/bls - agnostic BLS-related code without UEFI deps.
  • crates/parsing - agnostic parsing code without UEFI deps.

@bleggett bleggett requested a review from azenla as a code owner March 25, 2026 20:10
@bleggett bleggett merged commit d75fce0 into main Mar 30, 2026
11 checks passed
@bleggett bleggett deleted the bleggett/bls-unit-tests branch March 30, 2026 22:08
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