openvm-backend-tests-2.0.0-test.0 has been yanked.
Shared test suite for STARK backend implementations.
This crate provides generic test functions that can be used to verify any
[StarkEngine] implementation against the BabyBearPoseidon2 configuration.
Usage
The easiest way to use this crate is via the [backend_test_suite!] macro,
which generates the complete shared test suite with a single invocation:
openvm_backend_tests::backend_test_suite!(MyEngine);
Individual test functions can also be called directly for custom wrappers:
#[test]
fn test_proof_shape_verifier() {
openvm_backend_tests::proof_shape_verifier::<MyEngine>().unwrap();
}
Adding New Tests
- Add a
pub fnhere (withE: StarkEngine<SC = SC>bound for engine-generic tests). - Add the test to the [
backend_test_suite!] macro. - Each backend automatically picks it up on next build.