Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(levm): add legacy tests to the suite (#1870)
**Motivation** <!-- Why does this pull request exist? What are its goals? --> This pull request introduces changes to the Ethereum Foundation (EF) test framework, specifically enhancing the handling of forks within the test reports. The changes include modifications to the deserialization process, test report structure, and test runner logic to support multiple forks. **Description** <!-- A clear and concise general description of the changes this PR introduces --> <!-- Link to issues: Resolves #111, Resolves #222 --> * `cmd/ef_tests/levm/report.rs`: Refactored `EFTestReport` to include `fork_results` instead of a single `fork` field. Introduced `EFTestReportForkResult` to encapsulate fork-specific results. Updated methods to handle the new structure and ensure correct reporting of test results per fork. * `cmd/ef_tests/levm/runner/levm_runner.rs`: Updated the `run_ef_test` and `run_ef_test_tx` functions to iterate over forks and handle fork-specific test execution. Adjusted `prepare_vm_for_tx` and `ensure_post_state` functions to accept a `fork` parameter. * `cmd/ef_tests/levm/runner/mod.rs`: Handled cases where test hashes might be missing to prevent panics. * `cmd/ef_tests/levm/runner/revm_runner.rs`: Updated imports to include `EFTestReportForkResult`. Closes #1701
- Loading branch information