Expand description
§revmc-statetest
Ethereum state test runner for revmc.
Runs the official GeneralStateTests against three execution modes:
The runner is vendored from revm’s revme with revmc-specific extensions
for compilation, custom handler integration, and diagnostic diffing between
interpreter and compiled execution.
§Usage
This crate is not published and is used internally by revmc (state test integration tests)
and revmc-cli (the statetest and statetest-diff subcommands).
See the main README for instructions on running state tests.
Modules§
Constants§
- DEFAULT_
ETHTESTS_ 🔒PATH - Default path to ethereum/tests repository.
- DEFAULT_
FIXTURES_ 🔒PATH - Default path to downloaded test fixtures (execution-spec-tests + legacytests).
- STATE_
TESTS_ 🔒TARBALL
Functions§
- find_
all_ json_ tests - Find all JSON test files in the given path. If path is a file, returns it in a vector. If path is a directory, recursively finds all .json files.
- get_
ethtests_ path - Get the path to ethereum/tests.
- get_
exec_ spec_ develop_ blockchain_ tests_ path - Get the path to execution-spec-tests develop blockchain tests.
- get_
exec_ spec_ develop_ state_ tests_ path - Get the path to execution-spec-tests develop state tests.
- get_
exec_ spec_ stable_ blockchain_ tests_ path - Get the path to execution-spec-tests stable blockchain tests.
- get_
exec_ spec_ stable_ state_ tests_ path - Get the path to execution-spec-tests stable state tests.
- get_
fixtures_ path - Get the path to downloaded test fixtures (
test-fixtures/). - get_
general_ state_ tests_ path - Get the path to
GeneralStateTests, extracting the tarball if necessary. - get_
legacy_ cancun_ state_ tests_ path - Get the path to legacy Cancun GeneralStateTests.
- get_
legacy_ constantinople_ state_ tests_ path - Get the path to legacy Constantinople GeneralStateTests.
- workspace_
root 🔒 - Resolve the workspace root by walking up from
CARGO_MANIFEST_DIR.