-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from 0xPolygonZero/fix/legacy
Fix Shanghai tests parsing
- Loading branch information
Showing
3 changed files
with
40 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
pub const GENERATION_INPUTS_DEFAULT_OUTPUT_DIR: &str = "generation_inputs"; | ||
pub const MAIN_TEST_DIR: &str = "BlockchainTests"; | ||
/// The source directory to look for tests to parse. | ||
/// We use the `BlockchainTests` subdirectory of the `Cancun` folder | ||
/// as it contains all hardfork variants up to this one. | ||
pub const MAIN_TEST_DIR: &str = "Cancun/BlockchainTests"; | ||
pub const MATIC_CHAIN_ID: u64 = 137; | ||
pub const ETHEREUM_CHAIN_ID: u64 = 1; |
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,6 +1,34 @@ | ||
pub(crate) const ETH_TESTS_REPO_URL: &str = "https://github.com/ethereum/tests.git"; | ||
use common::config::MAIN_TEST_DIR; | ||
|
||
// The PR <https://github.com/ethereum/tests/pull/1380> moved all test versions prior Cancun HF | ||
// to the `LegacyTests` folder. | ||
pub(crate) const ETH_TESTS_REPO_URL: &str = "https://github.com/ethereum/legacytests.git"; | ||
pub(crate) const ETH_TESTS_REPO_LOCAL_PATH: &str = "eth_tests"; | ||
pub(crate) const GENERAL_GROUP: &str = "BlockchainTests"; | ||
pub(crate) const GENERAL_GROUP: &str = MAIN_TEST_DIR; | ||
pub(crate) const TEST_GROUPS: [&str; 1] = ["GeneralStateTests"]; | ||
// The following subgroups contain subfolders unlike the other test folders. | ||
pub(crate) const SPECIAL_TEST_SUBGROUPS: [&str; 3] = ["Cancun", "Shanghai", "VMTests"]; | ||
pub(crate) const SPECIAL_TEST_SUBGROUPS: [&str; 2] = ["Shanghai", "VMTests"]; | ||
|
||
/// These test variants are used for stress testing. As such, they have | ||
/// unrealistic scenarios that go beyond the provable bounds of the zkEVM. | ||
/// Witness generation for these variants is still possible, but takes too | ||
/// much time to be useful and usable in testing occuring regularly. | ||
pub(crate) const UNPROVABLE_VARIANTS: [&str; 17] = [ | ||
"CALLBlake2f_d9g0v0_Shanghai", | ||
"CALLCODEBlake2f_d9g0v0_Shanghai", | ||
"Call50000_d0g1v0_Shanghai", | ||
"Callcode50000_d0g1v0_Shanghai", | ||
"static_Call50000_d1g0v0_Shanghai", | ||
"static_Call50000_ecrec_d0g0v0_Shanghai", | ||
"static_Call50000_ecrec_d1g0v0_Shanghai", | ||
"static_Call50000_identity2_d0g0v0_Shanghai", | ||
"static_Call50000_identity2_d1g0v0_Shanghai", | ||
"static_Call50000_identity_d0g0v0_Shanghai", | ||
"static_Call50000_identity_d1g0v0_Shanghai", | ||
"static_Call50000_rip160_d0g0v0_Shanghai", | ||
"static_Call50000_sha256_d0g0v0_Shanghai", | ||
"static_Call50000_sha256_d1g0v0_Shanghai", | ||
"static_Return50000_2_d0g0v0_Shanghai", | ||
"Return50000_d0g1v0_Shanghai", | ||
"Return50000_2_d0g1v0_Shanghai", | ||
]; |
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