2
2
3
3
4
4
def get_exceptional_blockchain_test_patterns (
5
- network : str , package : str
5
+ json_fork : str , eels_fork : str
6
6
) -> Tuple [tuple [str , ...], tuple [str , ...], tuple [str , ...]]:
7
7
"""
8
- Returns patterns for slow, ignored, and big-memory tests for a given network and package .
8
+ Returns patterns for slow, ignored, and big-memory tests for a given json_fork and eels_fork .
9
9
10
10
Parameters
11
11
----------
12
- network : str
13
- The network name (e.g., "Frontier", "EIP150").
14
- package : str
15
- The package name (e.g., "frontier", "tangerine_whistle").
12
+ json_fork : str
13
+ The json_fork name (e.g., "Frontier", "EIP150").
14
+ eels_fork : str
15
+ The eels_fork name (e.g., "frontier", "tangerine_whistle").
16
16
17
17
Returns
18
18
-------
@@ -29,8 +29,8 @@ def get_exceptional_blockchain_test_patterns(
29
29
"stTimeConsuming/static_Call50000_sha256.json" ,
30
30
"vmPerformance/loopExp.json" ,
31
31
"vmPerformance/loopMul.json" ,
32
- f"QuadraticComplexitySolidity_CallDataCopy_d0g1v0_{ network } " ,
33
- f"CALLBlake2f_d9g0v0_{ network } " ,
32
+ f"QuadraticComplexitySolidity_CallDataCopy_d0g1v0_{ json_fork } " ,
33
+ f"CALLBlake2f_d9g0v0_{ json_fork } " ,
34
34
"CALLCODEBlake2f_d9g0v0" ,
35
35
# GeneralStateTests
36
36
"stRandom/randomStatetest177.json" ,
@@ -40,14 +40,14 @@ def get_exceptional_blockchain_test_patterns(
40
40
# InvalidBlockTest
41
41
"bcUncleHeaderValidity/nonceWrong.json" ,
42
42
"bcUncleHeaderValidity/wrongMixHash.json" ,
43
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ network } -blockchain_test-bls_pairing_non-degeneracy-\\ ]" ,
44
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ network } -blockchain_test-bls_pairing_bilinearity-\\ ]" ,
45
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ network } -blockchain_test-bls_pairing_e\\ (G1,-G2\\ )=e\\ (-G1,G2\\ )-\\ ]" ,
46
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ network } -blockchain_test-bls_pairing_e\\ (aG1,bG2\\ )=e\\ (abG1,G2\\ )-\\ ]" ,
47
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ network } -blockchain_test-bls_pairing_e\\ (aG1,bG2\\ )=e\\ (G1,abG2\\ )-\\ ]" ,
48
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ network } -blockchain_test-inf_pair-\\ ]" ,
49
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ network } -blockchain_test-multi_inf_pair-\\ ]" ,
50
- f"tests/{ package } /eip2935_historical_block_hashes_from_state/test_block_hashes\\ .py\\ :\\ :test_block_hashes_history\\ [fork_{ network } -blockchain_test-full_history_plus_one_check_blockhash_first\\ ]" ,
43
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ json_fork } -blockchain_test-bls_pairing_non-degeneracy-\\ ]" ,
44
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ json_fork } -blockchain_test-bls_pairing_bilinearity-\\ ]" ,
45
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ json_fork } -blockchain_test-bls_pairing_e\\ (G1,-G2\\ )=e\\ (-G1,G2\\ )-\\ ]" ,
46
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ json_fork } -blockchain_test-bls_pairing_e\\ (aG1,bG2\\ )=e\\ (abG1,G2\\ )-\\ ]" ,
47
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ json_fork } -blockchain_test-bls_pairing_e\\ (aG1,bG2\\ )=e\\ (G1,abG2\\ )-\\ ]" ,
48
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ json_fork } -blockchain_test-inf_pair-\\ ]" ,
49
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing\\ .py\\ :\\ :test_valid\\ [fork_{ json_fork } -blockchain_test-multi_inf_pair-\\ ]" ,
50
+ f"tests/{ eels_fork } /eip2935_historical_block_hashes_from_state/test_block_hashes\\ .py\\ :\\ :test_block_hashes_history\\ [fork_{ json_fork } -blockchain_test-full_history_plus_one_check_blockhash_first\\ ]" ,
51
51
)
52
52
53
53
# These are tests that are considered to be incorrect,
@@ -61,7 +61,7 @@ def get_exceptional_blockchain_test_patterns(
61
61
# InvalidBlockTest
62
62
"bcForgedTest" ,
63
63
"bcMultiChainTest" ,
64
- f"GasLimitHigherThan2p63m1_{ network } " ,
64
+ f"GasLimitHigherThan2p63m1_{ json_fork } " ,
65
65
)
66
66
67
67
# All tests that recursively create a large number of frames (50000)
@@ -81,7 +81,7 @@ def get_exceptional_blockchain_test_patterns(
81
81
82
82
83
83
def get_exceptional_state_test_patterns (
84
- network : str , package : str
84
+ json_fork : str , eels_fork : str
85
85
) -> tuple [str , ...]:
86
86
slow_tests = (
87
87
"CALLBlake2f_MaxRounds" ,
@@ -92,13 +92,13 @@ def get_exceptional_state_test_patterns(
92
92
"GeneralStateTests/stTimeConsuming/CALLBlake2f_MaxRounds.json::CALLBlake2f_MaxRounds-fork_[Cancun-Prague]-d0g0v0" ,
93
93
"GeneralStateTests/VMTests/vmPerformance/loopExp.json::loopExp-fork_[Cancun-Prague]-d[0-14]g0v0" ,
94
94
"GeneralStateTests/VMTests/vmPerformance/loopMul.json::loopMul-fork_[Cancun-Prague]-d[0-2]g0v0" ,
95
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ network } -state_test-bls_pairing_non-degeneracy-]" ,
96
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ network } -state_test-bls_pairing_bilinearity-]" ,
97
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ network } -state_test-bls_pairing_e(G1,-G2)=e(-G1,G2)-]" ,
98
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ network } -state_test-bls_pairing_e(aG1,bG2)=e(abG1,G2)-]" ,
99
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ network } -state_test-bls_pairing_e(aG1,bG2)=e(G1,abG2)-]" ,
100
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ network } -state_test-inf_pair-]" ,
101
- f"tests/{ package } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ network } -state_test-multi_inf_pair-]" ,
95
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ json_fork } -state_test-bls_pairing_non-degeneracy-]" ,
96
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ json_fork } -state_test-bls_pairing_bilinearity-]" ,
97
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ json_fork } -state_test-bls_pairing_e(G1,-G2)=e(-G1,G2)-]" ,
98
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ json_fork } -state_test-bls_pairing_e(aG1,bG2)=e(abG1,G2)-]" ,
99
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ json_fork } -state_test-bls_pairing_e(aG1,bG2)=e(G1,abG2)-]" ,
100
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ json_fork } -state_test-inf_pair-]" ,
101
+ f"tests/{ eels_fork } /eip2537_bls_12_381_precompiles/test_bls12_pairing.py::test_valid[fork_{ json_fork } -state_test-multi_inf_pair-]" ,
102
102
)
103
103
104
104
return slow_tests
0 commit comments