From ea502113efae18a8fd5884c409df1ad59eca0d41 Mon Sep 17 00:00:00 2001 From: khaeljy Date: Fri, 29 Sep 2023 19:28:36 +0000 Subject: [PATCH] add stPreCompiledContracts and stPreCompiledContracts2 testsuites --- blockchain-tests-skip.yml | 106 ++++++++++++++++++++++++++++++- crates/ef-testing/tests/tests.rs | 4 +- 2 files changed, 107 insertions(+), 3 deletions(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index 9def9531..c339e41c 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -313,7 +313,111 @@ filename: - NonZeroValue_SUICIDE.json # ef-tests #361 - RETURN_Bounds.json # ef-tests #366 - FillStack.json # ef-tests #367 - + - 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 + - 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 # List of file names regex to be skipped regex: - ^opc.*\.json$ # ef-test #120 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index d665dc6c..86a7c8fc 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); // 7 failing tests // blockchain_tests!(st_random, stRandom); // 79 failing tests // blockchain_tests!(st_random2, stRandom2); // 40 failing tests