-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Motivation** We need `ethereum_rust` as a dependency for running the EF tests, specifically for the post-state validation. If we import it inside the crate `levm`, we have a circular dependency as `ethereum_rust` also imports `levm`. **Description** <!-- A clear and concise general description of the changes this PR introduces --> - Move `ethereum_rust` EF tests to `cmd/ef_tests/ethereum_rust`. - Update `ethereum_rust` Makefile targets that run the EF tests according to the previous change - Move `levm` EF tests to `cmd/ef_tests/levm`. - Update `ethereum_rust` Makefile targets that run the EF tests to skip `levm` EF tests run (this will be done in the crate `levm`) - Update `levm` Makefile targets that run the EF tests according to the changes above.
- Loading branch information
Showing
23 changed files
with
64 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
2 changes: 1 addition & 1 deletion
2
cmd/ef_tests/Cargo.toml → cmd/ef_tests/ethereum_rust/Cargo.toml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "ef_tests" | ||
name = "ef_tests-ethereum_rust" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
cmd/ef_tests/tests/cancun.rs → cmd/ef_tests/ethereum_rust/tests/cancun.rs
This file contains 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
2 changes: 1 addition & 1 deletion
2
cmd/ef_tests/tests/shanghai.rs → cmd/ef_tests/ethereum_rust/tests/shanghai.rs
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[package] | ||
name = "ef_tests-levm" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
[dependencies] | ||
ethereum_rust-blockchain.workspace = true | ||
ethereum_rust-core.workspace = true | ||
ethereum_rust-storage.workspace = true | ||
ethereum_rust-rlp.workspace = true | ||
ethereum_rust-levm = { path = "../../../crates/vm/levm" } | ||
serde.workspace = true | ||
serde_json.workspace = true | ||
bytes.workspace = true | ||
hex.workspace = true | ||
keccak-hash = "0.11.0" | ||
colored = "2.1.0" | ||
spinoff = "0.8.0" | ||
|
||
[dev-dependencies] | ||
hex = "0.4.3" | ||
|
||
[lib] | ||
path = "./ef_tests.rs" | ||
|
||
[[test]] | ||
name = "test" | ||
harness = false |
2 changes: 1 addition & 1 deletion
2
crates/vm/levm/tests/ef/deserialize.rs → cmd/ef_tests/levm/deserialize.rs
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
mod deserialize; | ||
mod report; | ||
pub mod runner; | ||
mod types; |
1 change: 0 additions & 1 deletion
1
crates/vm/levm/tests/ef/report.rs → cmd/ef_tests/levm/report.rs
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use ef_tests_levm::runner; | ||
|
||
fn main() { | ||
let report = runner::run_ef_tests().unwrap(); | ||
println!("{report}"); | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.