From e22dd65c6ba806c65f053a14cc0f4922927538a0 Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 04:17:31 +0200 Subject: [PATCH] add stPreCompiledContracts and stPreCompiledContracts2 testsuites (#392) --- blockchain-tests-skip.yml | 107 +++++++++++++++++++++++++++++++ crates/ef-testing/tests/tests.rs | 4 +- 2 files changed, 109 insertions(+), 2 deletions(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index 980ed853..b2fcdcb2 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -450,6 +450,113 @@ filename: - NonZeroValue_DELEGATECALL_ToNonNonZeroBalance.json # ef-tests #360 - NonZeroValue_DELEGATECALL_ToOneStorageKey.json # ef-tests #360 - NonZeroValue_SUICIDE.json # ef-tests #361 + stPreCompiledContracts: + - blake2B.json # ef-tests #389 + - identity_to_bigger.json # ef-tests #389 + - identity_to_smaller.json # ef-tests #389 + - idPrecomps.json # ef-tests #389 + - modexp.json # ef-tests #389 + - modexpTests.json # ef-tests #389 + - precompsEIP2929.json # ef-tests #389 + - sec80.json # ef-tests #389 + stPreCompiledContracts2: + - CallIdentity_1_nonzeroValue.json # ef-tests #390 + - CallSha256_1_nonzeroValue.json # ef-tests #390 + - CALLBlake2f.json # ef-tests #391 + - CALLCODEBlake2f.json # ef-tests #391 + - CALLCODEEcrecover0.json # ef-tests #391 + - CALLCODEEcrecover0_0input.json # ef-tests #391 + - CALLCODEEcrecover0_completeReturnValue.json # ef-tests #391 + - CALLCODEEcrecover0_gas3000.json # ef-tests #391 + - CALLCODEEcrecover0_overlappingInputOutput.json # ef-tests #391 + - CALLCODEEcrecover1.json # ef-tests #391 + - CALLCODEEcrecover2.json # ef-tests #391 + - CALLCODEEcrecover3.json # ef-tests #391 + - CALLCODEEcrecover80.json # ef-tests #391 + - CALLCODEEcrecoverH_prefixed0.json # ef-tests #391 + - CALLCODEEcrecoverR_prefixed0.json # ef-tests #391 + - CALLCODEEcrecoverS_prefixed0.json # ef-tests #391 + - CALLCODEEcrecoverV_prefixed0.json # ef-tests #391 + - CALLCODEEcrecoverV_prefixedf0.json # ef-tests #391 + - CALLCODEIdentitiy_0.json # ef-tests #391 + - CALLCODEIdentitiy_1.json # ef-tests #391 + - CALLCODEIdentity_1_nonzeroValue.json # ef-tests #391 + - CALLCODEIdentity_2.json # ef-tests #391 + - CALLCODEIdentity_3.json # ef-tests #391 + - CALLCODEIdentity_4.json # ef-tests #391 + - CALLCODEIdentity_4_gas17.json # ef-tests #391 + - CALLCODEIdentity_4_gas18.json # ef-tests #391 + - CALLCODEIdentity_5.json # ef-tests #391 + - CALLCODERipemd160_0.json # ef-tests #391 + - CALLCODERipemd160_1.json # ef-tests #391 + - CALLCODERipemd160_2.json # ef-tests #391 + - CALLCODERipemd160_3.json # ef-tests #391 + - CALLCODERipemd160_3_postfixed0.json # ef-tests #391 + - CALLCODERipemd160_3_prefixed0.json # ef-tests #391 + - CALLCODERipemd160_4.json # ef-tests #391 + - CALLCODERipemd160_4_gas719.json # ef-tests #391 + - CALLCODERipemd160_5.json # ef-tests #391 + - CALLCODESha256_0.json # ef-tests #391 + - CALLCODESha256_1.json # ef-tests #391 + - CALLCODESha256_1_nonzeroValue.json # ef-tests #391 + - CALLCODESha256_2.json # ef-tests #391 + - CALLCODESha256_3.json # ef-tests #391 + - CALLCODESha256_3_postfix0.json # ef-tests #391 + - CALLCODESha256_3_prefix0.json # ef-tests #391 + - CALLCODESha256_4.json # ef-tests #391 + - CALLCODESha256_4_gas99.json # ef-tests #391 + - CALLCODESha256_5.json # ef-tests #391 + - CallEcrecover0.json # ef-tests #391 + - CallEcrecover0_0input.json # ef-tests #391 + - CallEcrecover0_completeReturnValue.json # ef-tests #391 + - CallEcrecover0_gas3000.json # ef-tests #391 + - CallEcrecover0_overlappingInputOutput.json # ef-tests #391 + - CallEcrecover1.json # ef-tests #391 + - CallEcrecover2.json # ef-tests #391 + - CallEcrecover3.json # ef-tests #391 + - CallEcrecover80.json # ef-tests #391 + - CallEcrecoverCheckLength.json # ef-tests #391 + - CallEcrecoverCheckLengthWrongV.json # ef-tests #391 + - CallEcrecoverH_prefixed0.json # ef-tests #391 + - CallEcrecoverInvalidSignature.json # ef-tests #391 + - CallEcrecoverR_prefixed0.json # ef-tests #391 + - CallEcrecoverS_prefixed0.json # ef-tests #391 + - CallEcrecoverUnrecoverableKey.json # ef-tests #391 + - CallEcrecoverV_prefixed0.json # ef-tests #391 + - CallEcrecover_Overflow.json # ef-tests #391 + - CallIdentitiy_0.json # ef-tests #391 + - CallIdentitiy_1.json # ef-tests #391 + - CallIdentity_2.json # ef-tests #391 + - CallIdentity_3.json # ef-tests #391 + - CallIdentity_4.json # ef-tests #391 + - CallIdentity_4_gas17.json # ef-tests #391 + - CallIdentity_4_gas18.json # ef-tests #391 + - CallIdentity_5.json # ef-tests #391 + - CallIdentity_6_inputShorterThanOutput.json # ef-tests #391 + - CallRipemd160_0.json # ef-tests #391 + - CallRipemd160_1.json # ef-tests #391 + - CallRipemd160_2.json # ef-tests #391 + - CallRipemd160_3.json # ef-tests #391 + - CallRipemd160_3_postfixed0.json # ef-tests #391 + - CallRipemd160_3_prefixed0.json # ef-tests #391 + - CallRipemd160_4.json # ef-tests #391 + - CallRipemd160_4_gas719.json # ef-tests #391 + - CallRipemd160_5.json # ef-tests #391 + - CallSha256_0.json # ef-tests #391 + - CallSha256_1.json # ef-tests #391 + - CallSha256_2.json # ef-tests #391 + - CallSha256_3.json # ef-tests #391 + - CallSha256_3_postfix0.json # ef-tests #391 + - CallSha256_3_prefix0.json # ef-tests #391 + - CallSha256_4.json # ef-tests #391 + - CallSha256_4_gas99.json # ef-tests #391 + - CallSha256_5.json # ef-tests #391 + - ecrecoverShortBuff.json # ef-tests #391 + - ecrecoverWeirdV.json # ef-tests #391 + - modexp_0_0_0_20500.json # ef-tests #391 + - modexp_0_0_0_22000.json # ef-tests #391 + - modexp_0_0_0_25000.json # ef-tests #391 + - modexp_0_0_0_35000.json # ef-tests #391 stQuadraticComplexityTest: - Call1MB1024Calldepth.json # ef-tests #375 - Call20KbytesContract50_1.json # ef-tests #375 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 9e71b546..00cc4203 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -103,8 +103,8 @@ mod blockchain_tests { blockchain_tests!(st_memory_stress_test, stMemoryStressTest); blockchain_tests!(st_memory_test, stMemoryTest); blockchain_tests!(st_non_zero_calls_test, stNonZeroCallsTest); - // blockchain_tests!(st_pre_compiled_contracts, stPreCompiledContracts); // 8 failing tests - // blockchain_tests!(st_pre_compiled_contracts2, stPreCompiledContracts2); // 97 failing tests + blockchain_tests!(st_pre_compiled_contracts, stPreCompiledContracts); + blockchain_tests!(st_pre_compiled_contracts2, stPreCompiledContracts2); blockchain_tests!(st_quadratic_complexity_test, stQuadraticComplexityTest); // blockchain_tests!(st_random, stRandom); // 79 failing tests // blockchain_tests!(st_random2, stRandom2); // 40 failing tests