From f3e9e05da0b0b6477e4c7b38b9ac8c183aa34ef0 Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 04:14:01 +0200 Subject: [PATCH 01/12] add CREATE-related test suite (#341) * add CREATE-related test suite * Add missing skip --- blockchain-tests-skip.yml | 78 ++++++++++++++++++++++++++++++++ crates/ef-testing/tests/tests.rs | 4 +- 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index 3c2c568b..4afefc66 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -226,6 +226,84 @@ filename: - codesizeValid.json # ef-tests #263 - create2CodeSizeLimit.json # ef-tests #264 - createCodeSizeLimit.json # ef-tests #265 + stCreate2: + - RevertDepthCreate2OOG.json # ef-tests #334 + - RevertDepthCreate2OOGBerlin.json # ef-tests #334 + - RevertDepthCreateAddressCollisionBerlin.json # ef-tests #334 + - RevertDepthCreateAddressCollision.json # ef-tests #334 + - create2callPrecompiles.json # ef-tests #335 + - create2checkFieldsInInitcode.json # ef-tests #335 + - create2collisionBalance.json # ef-tests #335 + - create2collisionCode.json # ef-tests #335 + - create2collisionCode2.json # ef-tests #335 + - create2collisionNonce.json # ef-tests #335 + - create2collisionStorage.json # ef-tests #335 + - create2InitCodes.json # ef-tests #335 + - create2noCash.json # ef-tests #335 + - Create2OnDepth1023.json # ef-tests #335 + - Create2OnDepth1024.json # ef-tests #335 + - Create2OOGFromCallRefunds.json # ef-tests #335 + - Create2Recursive.json # ef-tests #335 + - CREATE2_FirstByte_loop.json # ef-tests #335 + - CREATE2_Suicide.json # ef-tests #335 + - CreateMessageRevertedOOGInInit.json # ef-tests #335 + - call_outsize_then_create2_successful_then_returndatasize.json # ef-tests #336 + - call_then_create2_successful_then_returndatasize.json # ef-tests #336 + - Create2OOGafterInitCodeReturndata.json # ef-tests #336 + - Create2OOGafterInitCodeReturndata2.json # ef-tests #336 + - Create2OOGafterInitCodeRevert.json # ef-tests #336 + - Create2OOGafterInitCodeRevert2.json # ef-tests #336 + - CREATE2_HighNonce.json # ef-tests #336 + - CREATE2_HighNonceDelegatecall.json # ef-tests #336 + - CreateMessageReverted.json # ef-tests #336 + - RevertInCreateInInitCreate2.json # ef-tests #336 + - RevertOpcodeInCreateReturnsCreate2.json # ef-tests #336 + - returndatasize_following_successful_create.json # ef-tests #336 + - returndatacopy_afterFailing_create.json # ef-tests #336 + - returndatacopy_following_create.json # ef-tests #336 + - RevertOpcodeCreate.json # ef-tests #336 + - returndatacopy_following_revert_in_create.json # ef-tests #336 + - returndatacopy_0_0_following_successful_create.json # ef-tests #336 + - returndatacopy_following_successful_create.json # ef-tests #336 + - create2collisionSelfdestructed.json # ef-tests #337 + - create2collisionSelfdestructed2.json # ef-tests #337 + - create2SmartInitCode.json # ef-tests #337 + - CREATE2_ContractSuicideDuringInit_ThenStoreThenReturn.json # ef-tests #337 + stCreateTest: + - CreateAddressWarmAfterFail.json # ef-tests #338 + - CreateCollisionToEmpty.json # ef-tests #338 + - CreateOOGafterInitCodeReturndata.json # ef-tests #338 + - CreateOOGafterInitCodeReturndata2.json # ef-tests #338 + - CreateResults.json # ef-tests #338 + - CREATE_AcreateB_BSuicide_BStore.json # ef-tests #338 + - CREATE_EContract_ThenCALLToNonExistentAcc.json # ef-tests #338 + - CREATE_EmptyContract.json # ef-tests #338 + - CREATE_EmptyContractAndCallIt_0wei.json # ef-tests #338 + - CREATE_EmptyContractAndCallIt_1wei.json # ef-tests #338 + - CREATE_EmptyContractWithBalance.json # ef-tests #338 + - CREATE_EmptyContractWithStorage.json # ef-tests #338 + - CREATE_EmptyContractWithStorageAndCallIt_0wei.json # ef-tests #338 + - CREATE_EmptyContractWithStorageAndCallIt_1wei.json # ef-tests #338 + - CREATE_HighNonce.json # ef-tests #338 + - TransactionCollisionToEmpty.json # ef-tests #338 + - CodeInConstructor.json # ef-tests #339 + - CreateCollisionResults.json # ef-tests #339 + - createFailResult.json # ef-tests #339 + - createLargeResult.json # ef-tests #339 + - CreateOOGafterInitCodeRevert.json # ef-tests #339 + - CreateOOGafterInitCodeRevert2.json # ef-tests #339 + - CreateOOGafterMaxCodesize.json # ef-tests #339 + - CREATE_ContractSuicideDuringInit.json # ef-tests #339 + - CREATE_ContractSuicideDuringInit_ThenStoreThenReturn.json # ef-tests #339 + - CREATE_ContractSuicideDuringInit_WithValue.json # ef-tests #339 + - CREATE_ContractSuicideDuringInit_WithValueToItself.json # ef-tests #339 + - CreateOOGFromCallRefunds.json # ef-tests #340 + - CreateOOGFromEOARefunds.json # ef-tests #340 + - CREATE_EContractCreateEContractInInit_Tr.json # ef-tests #340 + - CREATE_EContractCreateNEContractInInitOOG_Tr.json # ef-tests #340 + - CREATE_EContractCreateNEContractInInit_Tr.json # ef-tests #340 + - CREATE_empty000CreateinInitCode_Transaction.json # ef-tests #340 + - CREATE_FirstByte_loop.json # ef-tests #340 stDelegatecallTestHomestead: - Call1024BalanceTooLow.json # ef-tests #332 - Call1024OOG.json # ef-tests #332 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index a9cc2cf8..4f6e3b13 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -85,8 +85,8 @@ mod blockchain_tests { blockchain_tests!(st_chain_id, stChainId); blockchain_tests!(st_code_copy_test, stCodeCopyTest); blockchain_tests!(st_code_size_limit, stCodeSizeLimit); - // blockchain_tests!(st_create2, stCreate2); // 42 failing tests - // blockchain_tests!(st_create_test, stCreateTest); // 34 failing tests + blockchain_tests!(st_create2, stCreate2); + blockchain_tests!(st_create_test, stCreateTest); blockchain_tests!(st_delegatecall_test_homestead, stDelegatecallTestHomestead); blockchain_tests!(st_eip150_specific, stEIP150Specific); blockchain_tests!(st_eip150single_code_gas_prices, stEIP150singleCodeGasPrices); From 34b6fa9d588b2c4c42fe0c1bb34eebbfac7ae3c2 Mon Sep 17 00:00:00 2001 From: Tristan <122918260+TAdev0@users.noreply.github.com> Date: Mon, 2 Oct 2023 04:14:58 +0200 Subject: [PATCH 02/12] add `stRecursiveCreate` testsuite (#381) * l * main * stRecursiveCreate --- blockchain-tests-skip.yml | 3 +++ crates/ef-testing/tests/tests.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index 4afefc66..7531cfd3 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -458,6 +458,9 @@ filename: - Return50000.json # ef-tests #375 - Return50000_2.json # ef-tests #375 - Create1000Shnghai.json # ef-tests #376 + stRecursiveCreate: + - recursiveCreate.json # ef-tests #379 + - recursiveCreateReturnValue.json # ef-tests #380 stReturnDataTest: - returndatacopy_following_too_big_transfer.json # ef-tests #317 - returndatasize_bug.json # ef-tests #317 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 4f6e3b13..5ce3a227 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -108,7 +108,7 @@ mod blockchain_tests { blockchain_tests!(st_quadratic_complexity_test, stQuadraticComplexityTest); // blockchain_tests!(st_random, stRandom); // 79 failing tests // blockchain_tests!(st_random2, stRandom2); // 40 failing tests - // blockchain_tests!(st_recursive_create, stRecursiveCreate); // 2 failing tests + blockchain_tests!(st_recursive_create, stRecursiveCreate); // blockchain_tests!(st_refund_test, stRefundTest); // 9 failing tests blockchain_tests!(st_return_data_test, stReturnDataTest); blockchain_tests!(st_revert_test, stRevertTest); From fea9eeaa5c5d9480941172855d9e344ff2b74107 Mon Sep 17 00:00:00 2001 From: Tristan <122918260+TAdev0@users.noreply.github.com> Date: Mon, 2 Oct 2023 04:15:59 +0200 Subject: [PATCH 03/12] add `stShift` testsuite (#384) * l * main * stShift --- blockchain-tests-skip.yml | 3 +++ crates/ef-testing/tests/tests.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index 7531cfd3..980ed853 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -520,6 +520,9 @@ filename: - "LoopCallsDepthThenRevert2.json" # ef-tests #324 - "LoopCallsDepthThenRevert3.json" # ef-tests #324 - "RevertRemoteSubCallStorageOOG.json" # ef-tests #324 + stShift: + - shiftCombinations.json # ef-tests #383 + - shiftSignedCombinations.json # ef-tests #383 stSLoadTest: - sloadGasCost.json # ef-tests #78 stSolidityTest: diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 5ce3a227..9e71b546 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -115,7 +115,7 @@ mod blockchain_tests { blockchain_tests!(st_sload_test, stSLoadTest); // blockchain_tests!(st_sstore_test, stSStoreTest); // 27 failing tests // blockchain_tests!(st_self_balance, stSelfBalance); // 3 failing tests - // blockchain_tests!(st_shift, stShift); // 2 failing tests + blockchain_tests!(st_shift, stShift); blockchain_tests!(st_solidity_test, stSolidityTest); // blockchain_tests!(st_special_test, stSpecialTest); // 3 failing tests // blockchain_tests!(st_stack_tests, stStackTests); // 7 failing tests From e22dd65c6ba806c65f053a14cc0f4922927538a0 Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 04:17:31 +0200 Subject: [PATCH 04/12] 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 From c267a32f2b7824bc91bf04f45a932473f997d6fe Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 06:49:20 +0200 Subject: [PATCH 05/12] add `stSpecialTest` testsuite (#419) --- blockchain-tests-skip.yml | 4 ++++ crates/ef-testing/tests/tests.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index b2fcdcb2..d08a878c 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -643,6 +643,10 @@ filename: - TestStoreGasPrices.json # ef-test #139 - TestContractInteraction.json # ef-test #140 - RecursiveCreateContractsCreate4Contracts.json # ef-test #141 + stSpecialTest: + - tx_e1c174e2.json # ef-tests #412 + - eoaEmpty.json # ef-tests #413 + - selfdestructEIP2929.json # ef-tests #413 stArgsZeroOneBalance: - createNonConst.json # ef-tests #368 - mulmodNonConst.json # ef-tests #368 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 00cc4203..baf82787 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -117,7 +117,7 @@ mod blockchain_tests { // blockchain_tests!(st_self_balance, stSelfBalance); // 3 failing tests blockchain_tests!(st_shift, stShift); blockchain_tests!(st_solidity_test, stSolidityTest); - // blockchain_tests!(st_special_test, stSpecialTest); // 3 failing tests + blockchain_tests!(st_special_test, stSpecialTest); // blockchain_tests!(st_stack_tests, stStackTests); // 7 failing tests // blockchain_tests!(st_static_call, stStaticCall); // 207 failing tests // blockchain_tests!(st_static_flag_enabled, stStaticFlagEnabled); // 13 failing tests From ec9b07aa6ee37121f670c90837de9fa9bda56ee1 Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 06:51:51 +0200 Subject: [PATCH 06/12] add `stSStoreTest` testsuite (#417) --- blockchain-tests-skip.yml | 28 ++++++++++++++++++++++++++++ crates/ef-testing/tests/tests.rs | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index d08a878c..d9544723 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -632,6 +632,34 @@ filename: - shiftSignedCombinations.json # ef-tests #383 stSLoadTest: - sloadGasCost.json # ef-tests #78 + stSStoreTest: + - InitCollision.json # ef-tests #408 + - sstoreGas.json # ef-tests #409 + - InitCollisionNonZeroNonce.json # ef-tests #410 + - sstore_0to0.json # ef-tests #410 + - sstore_0to0to0.json # ef-tests #410 + - sstore_0to0toX.json # ef-tests #410 + - sstore_0toX.json # ef-tests #410 + - sstore_0toXto0.json # ef-tests #410 + - sstore_0toXto0toX.json # ef-tests #410 + - sstore_0toXtoX.json # ef-tests #410 + - sstore_0toXtoY.json # ef-tests #410 + - sstore_changeFromExternalCallInInitCode.json # ef-tests #410 + - sstore_gasLeft.json # ef-tests #410 + - sstore_Xto0.json # ef-tests #410 + - sstore_Xto0to0.json # ef-tests #410 + - sstore_Xto0toX.json # ef-tests #410 + - sstore_Xto0toXto0.json # ef-tests #410 + - sstore_Xto0toY.json # ef-tests #410 + - sstore_XtoX.json # ef-tests #410 + - sstore_XtoXto0.json # ef-tests #410 + - sstore_XtoXtoX.json # ef-tests #410 + - sstore_XtoXtoY.json # ef-tests #410 + - sstore_XtoY.json # ef-tests #410 + - sstore_XtoYto0.json # ef-tests #410 + - sstore_XtoYtoX.json # ef-tests #410 + - sstore_XtoYtoY.json # ef-tests #410 + - sstore_XtoYtoZ.json # ef-tests #410 stSolidityTest: - TestContractSuicide.json # ef-test #132 - TestCryptographicFunctions.json # ef-test #133 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index baf82787..3b725a4c 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -113,7 +113,7 @@ mod blockchain_tests { blockchain_tests!(st_return_data_test, stReturnDataTest); blockchain_tests!(st_revert_test, stRevertTest); blockchain_tests!(st_sload_test, stSLoadTest); - // blockchain_tests!(st_sstore_test, stSStoreTest); // 27 failing tests + blockchain_tests!(st_sstore_test, stSStoreTest); // blockchain_tests!(st_self_balance, stSelfBalance); // 3 failing tests blockchain_tests!(st_shift, stShift); blockchain_tests!(st_solidity_test, stSolidityTest); From 739e16efebfaee07c6d1be7922c06a6ea5a91313 Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 07:14:06 +0200 Subject: [PATCH 07/12] add `stRefundTest` testsuite (#416) --- blockchain-tests-skip.yml | 10 ++++++++++ crates/ef-testing/tests/tests.rs | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index d9544723..c7db2170 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -450,6 +450,16 @@ filename: - NonZeroValue_DELEGATECALL_ToNonNonZeroBalance.json # ef-tests #360 - NonZeroValue_DELEGATECALL_ToOneStorageKey.json # ef-tests #360 - NonZeroValue_SUICIDE.json # ef-tests #361 + stRefundTest: + - refundFF.json # ef-tests #405 + - refundMax.json # ef-tests #405 + - refundSSTORE.json # ef-tests #405 + - refund_TxToSuicide.json # ef-tests #406 + - refund600.json # ef-tests #407 + - refundSuicide50procentCap.json # ef-tests #407 + - refund_CallA_notEnoughGasInCall.json # ef-tests #407 + - refund_CallA_OOG.json # ef-tests #407 + - refund_OOG.json # ef-tests #407 stPreCompiledContracts: - blake2B.json # ef-tests #389 - identity_to_bigger.json # ef-tests #389 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 3b725a4c..67861bf9 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -109,7 +109,7 @@ mod blockchain_tests { // blockchain_tests!(st_random, stRandom); // 79 failing tests // blockchain_tests!(st_random2, stRandom2); // 40 failing tests blockchain_tests!(st_recursive_create, stRecursiveCreate); - // blockchain_tests!(st_refund_test, stRefundTest); // 9 failing tests + blockchain_tests!(st_refund_test, stRefundTest); blockchain_tests!(st_return_data_test, stReturnDataTest); blockchain_tests!(st_revert_test, stRevertTest); blockchain_tests!(st_sload_test, stSLoadTest); From 37e8743b56351104bc9a93630d884d3248de8c91 Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 07:14:29 +0200 Subject: [PATCH 08/12] add `stSelfBalance` testsuite (#418) --- blockchain-tests-skip.yml | 4 ++++ crates/ef-testing/tests/tests.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index c7db2170..4671756f 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -642,6 +642,10 @@ filename: - shiftSignedCombinations.json # ef-tests #383 stSLoadTest: - sloadGasCost.json # ef-tests #78 + stSelfBalance: + - diffPlaces.json # ef-tests #411 + - selfBalanceCallTypes.json # ef-tests #411 + - selfBalanceUpdate.json # ef-tests #411 stSStoreTest: - InitCollision.json # ef-tests #408 - sstoreGas.json # ef-tests #409 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 67861bf9..2b79b519 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -114,7 +114,7 @@ mod blockchain_tests { blockchain_tests!(st_revert_test, stRevertTest); blockchain_tests!(st_sload_test, stSLoadTest); blockchain_tests!(st_sstore_test, stSStoreTest); - // blockchain_tests!(st_self_balance, stSelfBalance); // 3 failing tests + blockchain_tests!(st_self_balance, stSelfBalance); blockchain_tests!(st_shift, stShift); blockchain_tests!(st_solidity_test, stSolidityTest); blockchain_tests!(st_special_test, stSpecialTest); From 82b25ba47f994b29d302c72977262f74d6e3d4d6 Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 07:14:56 +0200 Subject: [PATCH 09/12] add `stStackTests` testsuite (#420) --- blockchain-tests-skip.yml | 8 ++++++++ crates/ef-testing/tests/tests.rs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index 4671756f..0990aae7 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -685,6 +685,14 @@ filename: - TestStoreGasPrices.json # ef-test #139 - TestContractInteraction.json # ef-test #140 - RecursiveCreateContractsCreate4Contracts.json # ef-test #141 + stStackTests: + - underflowTest.json # ef-tests #414 + - shallowStack.json # ef-tests #415 + - stackOverflowM1.json # ef-tests #415 + - stackOverflowM1DUP.json # ef-tests #415 + - stackOverflowM1PUSH.json # ef-tests #415 + - stackOverflowSWAP.json # ef-tests #415 + - stacksanitySWAP.json # ef-tests #415 stSpecialTest: - tx_e1c174e2.json # ef-tests #412 - eoaEmpty.json # ef-tests #413 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 2b79b519..79baf501 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -118,7 +118,7 @@ mod blockchain_tests { blockchain_tests!(st_shift, stShift); blockchain_tests!(st_solidity_test, stSolidityTest); blockchain_tests!(st_special_test, stSpecialTest); - // blockchain_tests!(st_stack_tests, stStackTests); // 7 failing tests + blockchain_tests!(st_stack_tests, stStackTests); // blockchain_tests!(st_static_call, stStaticCall); // 207 failing tests // blockchain_tests!(st_static_flag_enabled, stStaticFlagEnabled); // 13 failing tests // blockchain_tests!(st_system_operations_test, stSystemOperationsTest); // 28 failing tests From 2b39e40c5710c2bc4134dae2076fc9f8df4e67b4 Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 07:15:09 +0200 Subject: [PATCH 10/12] Add missing field gasPrice tests (#458) --- crates/ef-testing/tests/tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 79baf501..4e3f4116 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -90,11 +90,11 @@ mod blockchain_tests { blockchain_tests!(st_delegatecall_test_homestead, stDelegatecallTestHomestead); blockchain_tests!(st_eip150_specific, stEIP150Specific); blockchain_tests!(st_eip150single_code_gas_prices, stEIP150singleCodeGasPrices); - // blockchain_tests!(st_eip1559, stEIP1559); // failing due to missing field gasPrice, cannot measure number of failing tests + // blockchain_tests!(st_eip1559, stEIP1559); // ef-tests #455 - failing due to missing field gasPrice, cannot measure number of failing tests blockchain_tests!(st_eip158_specific, stEIP158Specific); - // blockchain_tests!(st_eip2930, stEIP2930); // failing due to missing field gasPrice, cannot measure number of failing tests + // blockchain_tests!(st_eip2930, stEIP2930); // ef-tests #455 - failing due to missing field gasPrice, cannot measure number of failing tests blockchain_tests!(st_eip3607, stEIP3607); - // blockchain_tests!(st_example, stExample); // failing due to missing field gasPrice, cannot measure number of failing tests + // blockchain_tests!(st_example, stExample); // ef-tests #455 - failing due to missing field gasPrice, cannot measure number of failing tests blockchain_tests!(st_ext_code_hash, stExtCodeHash); blockchain_tests!(st_homestead_specific, stHomesteadSpecific); blockchain_tests!(st_init_code_test, stInitCodeTest); From 718c029ff16f4a5618185b550351d97525a39e4d Mon Sep 17 00:00:00 2001 From: Khaeljy Date: Mon, 2 Oct 2023 09:10:32 +0200 Subject: [PATCH 11/12] add `stStaticCall` testsuite (#426) --- blockchain-tests-skip.yml | 208 +++++++++++++++++++++++++++++++ crates/ef-testing/tests/tests.rs | 2 +- 2 files changed, 209 insertions(+), 1 deletion(-) diff --git a/blockchain-tests-skip.yml b/blockchain-tests-skip.yml index 0990aae7..d42b50bc 100644 --- a/blockchain-tests-skip.yml +++ b/blockchain-tests-skip.yml @@ -685,6 +685,214 @@ filename: - TestStoreGasPrices.json # ef-test #139 - TestContractInteraction.json # ef-test #140 - RecursiveCreateContractsCreate4Contracts.json # ef-test #141 + stStaticCall: + - StaticcallToPrecompileFromContractInitialization.json # ef-tests #421 + - static_CallContractToCreateContractAndCallItOOG.json # ef-tests #421 + - static_CallContractToCreateContractOOG.json # ef-tests #421 + - static_CallContractToCreateContractOOGBonusGas.json # ef-tests #421 + - static_CallContractToCreateContractWhichWouldCreateContractIfCalled.json # ef-tests #421 + - static_callCreate2.json # ef-tests #421 + - static_callCreate3.json # ef-tests #421 + - static_CREATE_EmptyContractAndCallIt_0wei.json # ef-tests #421 + - static_CREATE_EmptyContractWithStorageAndCallIt_0wei.json # ef-tests #421 + - static_RETURN_BoundsOOG.json # ef-tests #421 + - static_contractCreationMakeCallThatAskMoreGasThenTransactionProvided.json # ef-tests #422 + - static_contractCreationOOGdontLeaveEmptyContractViaTransaction.json # ef-tests #422 + - static_CallSha256_1_nonzeroValue.json # ef-tests #423 + - static_CallIdentity_1_nonzeroValue.json # ef-tests #423 + - StaticcallToPrecompileFromCalledContract.json # ef-tests #424 + - StaticcallToPrecompileFromTransaction.json # ef-tests #424 + - static_ABAcalls0.json # ef-tests #424 + - static_ABAcalls1.json # ef-tests #424 + - static_ABAcalls2.json # ef-tests #424 + - static_ABAcalls3.json # ef-tests #424 + - static_ABAcallsSuicide0.json # ef-tests #424 + - static_Call10.json # ef-tests #424 + - static_Call1024BalanceTooLow.json # ef-tests #424 + - static_Call1024BalanceTooLow2.json # ef-tests #424 + - static_Call1024OOG.json # ef-tests #424 + - static_Call1024PreCalls.json # ef-tests #424 + - static_Call1024PreCalls2.json # ef-tests #424 + - static_Call1024PreCalls3.json # ef-tests #424 + - static_Call1MB1024Calldepth.json # ef-tests #424 + - static_Call50000.json # ef-tests #424 + - static_Call50000bytesContract50_1.json # ef-tests #424 + - static_Call50000bytesContract50_2.json # ef-tests #424 + - static_Call50000bytesContract50_3.json # ef-tests #424 + - static_Call50000_ecrec.json # ef-tests #424 + - static_Call50000_identity.json # ef-tests #424 + - static_Call50000_identity2.json # ef-tests #424 + - static_Call50000_rip160.json # ef-tests #424 + - static_CallAskMoreGasOnDepth2ThenTransactionHas.json # ef-tests #424 + - static_callBasic.json # ef-tests #424 + - static_callcallcallcode_001.json # ef-tests #424 + - static_callcallcallcode_001_2.json # ef-tests #424 + - static_callcallcallcode_001_OOGE.json # ef-tests #424 + - static_callcallcallcode_001_OOGE_2.json # ef-tests #424 + - static_callcallcallcode_001_OOGMAfter.json # ef-tests #424 + - static_callcallcallcode_001_OOGMAfter2.json # ef-tests #424 + - static_callcallcallcode_001_OOGMAfter_2.json # ef-tests #424 + - static_callcallcallcode_001_OOGMAfter_3.json # ef-tests #424 + - static_callcallcallcode_001_OOGMBefore.json # ef-tests #424 + - static_callcallcallcode_001_OOGMBefore2.json # ef-tests #424 + - static_callcallcallcode_001_SuicideEnd.json # ef-tests #424 + - static_callcallcallcode_001_SuicideEnd2.json # ef-tests #424 + - static_callcallcallcode_001_SuicideMiddle.json # ef-tests #424 + - static_callcallcallcode_001_SuicideMiddle2.json # ef-tests #424 + - static_callcallcall_000.json # ef-tests #424 + - static_callcallcall_000_OOGE.json # ef-tests #424 + - static_callcallcall_000_OOGMAfter.json # ef-tests #424 + - static_callcallcall_000_OOGMAfter2.json # ef-tests #424 + - static_callcallcall_000_OOGMBefore.json # ef-tests #424 + - static_callcallcall_000_SuicideEnd.json # ef-tests #424 + - static_callcallcall_000_SuicideMiddle.json # ef-tests #424 + - static_callcallcodecallcode_011.json # ef-tests #424 + - static_callcallcodecallcode_011_2.json # ef-tests #424 + - static_callcallcodecallcode_011_OOGE.json # ef-tests #424 + - static_callcallcodecallcode_011_OOGE_2.json # ef-tests #424 + - static_callcallcodecallcode_011_OOGMAfter.json # ef-tests #424 + - static_callcallcodecallcode_011_OOGMAfter2.json # ef-tests #424 + - static_callcallcodecallcode_011_OOGMAfter_1.json # ef-tests #424 + - static_callcallcodecallcode_011_OOGMAfter_2.json # ef-tests #424 + - static_callcallcodecallcode_011_OOGMBefore.json # ef-tests #424 + - static_callcallcodecallcode_011_OOGMBefore2.json # ef-tests #424 + - static_callcallcodecallcode_011_SuicideEnd.json # ef-tests #424 + - static_callcallcodecallcode_011_SuicideEnd2.json # ef-tests #424 + - static_callcallcodecallcode_011_SuicideMiddle.json # ef-tests #424 + - static_callcallcodecallcode_011_SuicideMiddle2.json # ef-tests #424 + - static_callcallcodecallcode_ABCB_RECURSIVE.json # ef-tests #424 + - static_callcallcodecallcode_ABCB_RECURSIVE2.json # ef-tests #424 + - static_callcallcodecall_010.json # ef-tests #424 + - static_callcallcodecall_010_2.json # ef-tests #424 + - static_callcallcodecall_010_OOGE.json # ef-tests #424 + - static_callcallcodecall_010_OOGE_2.json # ef-tests #424 + - static_callcallcodecall_010_OOGMAfter.json # ef-tests #424 + - static_callcallcodecall_010_OOGMAfter2.json # ef-tests #424 + - static_callcallcodecall_010_OOGMAfter_2.json # ef-tests #424 + - static_callcallcodecall_010_OOGMAfter_3.json # ef-tests #424 + - static_callcallcodecall_010_OOGMBefore.json # ef-tests #424 + - static_callcallcodecall_010_OOGMBefore2.json # ef-tests #424 + - static_callcallcodecall_010_SuicideEnd.json # ef-tests #424 + - static_callcallcodecall_010_SuicideEnd2.json # ef-tests #424 + - static_callcallcodecall_010_SuicideMiddle.json # ef-tests #424 + - static_callcallcodecall_010_SuicideMiddle2.json # ef-tests #424 + - static_callcallcodecall_ABCB_RECURSIVE.json # ef-tests #424 + - static_callcallcodecall_ABCB_RECURSIVE2.json # ef-tests #424 + - static_callcallcode_01_2.json # ef-tests #424 + - static_callcallcode_01_OOGE_2.json # ef-tests #424 + - static_callcallcode_01_SuicideEnd.json # ef-tests #424 + - static_callcallcode_01_SuicideEnd2.json # ef-tests #424 + - static_callcall_00.json # ef-tests #424 + - static_callcall_00_OOGE.json # ef-tests #424 + - static_callcall_00_OOGE_1.json # ef-tests #424 + - static_callChangeRevert.json # ef-tests #424 + - static_callcodecallcallcode_101.json # ef-tests #424 + - static_callcodecallcallcode_101_2.json # ef-tests #424 + - static_callcodecallcallcode_101_OOGE.json # ef-tests #424 + - static_callcodecallcallcode_101_OOGE_2.json # ef-tests #424 + - static_callcodecallcallcode_101_OOGMAfter.json # ef-tests #424 + - static_callcodecallcallcode_101_OOGMAfter2.json # ef-tests #424 + - static_callcodecallcallcode_101_OOGMAfter_1.json # ef-tests #424 + - static_callcodecallcallcode_101_OOGMAfter_3.json # ef-tests #424 + - static_callcodecallcallcode_101_OOGMBefore.json # ef-tests #424 + - static_callcodecallcallcode_101_OOGMBefore2.json # ef-tests #424 + - static_callcodecallcallcode_101_SuicideEnd.json # ef-tests #424 + - static_callcodecallcallcode_101_SuicideEnd2.json # ef-tests #424 + - static_callcodecallcallcode_101_SuicideMiddle.json # ef-tests #424 + - static_callcodecallcallcode_101_SuicideMiddle2.json # ef-tests #424 + - static_callcodecallcallcode_ABCB_RECURSIVE.json # ef-tests #424 + - static_callcodecallcallcode_ABCB_RECURSIVE2.json # ef-tests #424 + - static_callcodecallcall_100.json # ef-tests #424 + - static_callcodecallcall_100_2.json # ef-tests #424 + - static_callcodecallcall_100_OOGE.json # ef-tests #425 + - static_callcodecallcall_100_OOGE2.json # ef-tests #425 + - static_callcodecallcall_100_OOGMAfter.json # ef-tests #425 + - static_callcodecallcall_100_OOGMAfter2.json # ef-tests #425 + - static_callcodecallcall_100_OOGMAfter_2.json # ef-tests #425 + - static_callcodecallcall_100_OOGMAfter_3.json # ef-tests #425 + - static_callcodecallcall_100_OOGMBefore.json # ef-tests #425 + - static_callcodecallcall_100_OOGMBefore2.json # ef-tests #425 + - static_callcodecallcall_100_SuicideEnd.json # ef-tests #425 + - static_callcodecallcall_100_SuicideEnd2.json # ef-tests #425 + - static_callcodecallcall_100_SuicideMiddle.json # ef-tests #425 + - static_callcodecallcall_100_SuicideMiddle2.json # ef-tests #425 + - static_callcodecallcall_ABCB_RECURSIVE.json # ef-tests #425 + - static_callcodecallcall_ABCB_RECURSIVE2.json # ef-tests #425 + - static_callcodecallcodecallcode_111_SuicideEnd.json # ef-tests #425 + - static_callcodecallcodecall_110.json # ef-tests #425 + - static_callcodecallcodecall_1102.json # ef-tests #425 + - static_callcodecallcodecall_110_2.json # ef-tests #425 + - static_callcodecallcodecall_110_OOGE.json # ef-tests #425 + - static_callcodecallcodecall_110_OOGE2.json # ef-tests #425 + - static_callcodecallcodecall_110_OOGMAfter.json # ef-tests #425 + - static_callcodecallcodecall_110_OOGMAfter2.json # ef-tests #425 + - static_callcodecallcodecall_110_OOGMAfter_2.json # ef-tests #425 + - static_callcodecallcodecall_110_OOGMAfter_3.json # ef-tests #425 + - static_callcodecallcodecall_110_OOGMBefore.json # ef-tests #425 + - static_callcodecallcodecall_110_OOGMBefore2.json # ef-tests #425 + - static_callcodecallcodecall_ABCB_RECURSIVE.json # ef-tests #425 + - static_callcodecallcodecall_ABCB_RECURSIVE2.json # ef-tests #425 + - static_callcodecall_10.json # ef-tests #425 + - static_callcodecall_10_2.json # ef-tests #425 + - static_callcodecall_10_OOGE.json # ef-tests #425 + - static_callcodecall_10_OOGE_2.json # ef-tests #425 + - static_callcode_checkPC.json # ef-tests #425 + - static_callCreate.json # ef-tests #425 + - static_calldelcode_01.json # ef-tests #425 + - static_calldelcode_01_OOGE.json # ef-tests #425 + - static_CallEcrecover0_0input.json # ef-tests #425 + - static_CallEcrecover1.json # ef-tests #425 + - static_CallEcrecover2.json # ef-tests #425 + - static_CallEcrecover80.json # ef-tests #425 + - static_CallEcrecoverCheckLengthWrongV.json # ef-tests #425 + - static_CallEcrecoverR_prefixed0.json # ef-tests #425 + - static_CallIdentitiy_1.json # ef-tests #425 + - static_CallIdentity_5.json # ef-tests #425 + - static_CallLoseGasOOG.json # ef-tests #425 + - static_callOutput1.json # ef-tests #425 + - static_callOutput2.json # ef-tests #425 + - static_callOutput3.json # ef-tests #425 + - static_callOutput3Fail.json # ef-tests #425 + - static_callOutput3partial.json # ef-tests #425 + - static_callOutput3partialFail.json # ef-tests #425 + - static_CallRecursiveBomb0.json # ef-tests #425 + - static_CallRecursiveBomb0_OOG_atMaxCallDepth.json # ef-tests #425 + - static_CallRecursiveBomb1.json # ef-tests #425 + - static_CallRecursiveBomb2.json # ef-tests #425 + - static_CallRecursiveBomb3.json # ef-tests #425 + - static_CallRecursiveBombLog.json # ef-tests #425 + - static_CallRecursiveBombLog2.json # ef-tests #425 + - static_CallRecursiveBombPreCall.json # ef-tests #425 + - static_CallRecursiveBombPreCall2.json # ef-tests #425 + - static_CallRipemd160_4_gas719.json # ef-tests #425 + - static_CallRipemd160_5.json # ef-tests #425 + - static_CallSha256_1.json # ef-tests #425 + - static_CallSha256_2.json # ef-tests #425 + - static_CallSha256_3.json # ef-tests #425 + - static_CallSha256_3_postfix0.json # ef-tests #425 + - static_CallSha256_3_prefix0.json # ef-tests #425 + - static_CallSha256_4.json # ef-tests #425 + - static_CallSha256_4_gas99.json # ef-tests #425 + - static_CallSha256_5.json # ef-tests #425 + - static_callToDelCallOpCodeCheck.json # ef-tests #425 + - static_callToStaticOpCodeCheck.json # ef-tests #425 + - static_callWithHighValueOOGinCall.json # ef-tests #425 + - static_CALL_OneVCallSuicide.json # ef-tests #425 + - static_call_value_inherit_from_call.json # ef-tests #425 + - static_CheckOpcodes.json # ef-tests #425 + - static_CheckOpcodes2.json # ef-tests #425 + - static_CheckOpcodes3.json # ef-tests #425 + - static_CheckOpcodes4.json # ef-tests #425 + - static_CheckOpcodes5.json # ef-tests #425 + - static_log0_emptyMem.json # ef-tests #425 + - static_LoopCallsDepthThenRevert.json # ef-tests #425 + - static_LoopCallsThenRevert.json # ef-tests #425 + - static_PostToReturn1.json # ef-tests #425 + - static_RawCallGasAsk.json # ef-tests #425 + - static_refund_CallToSuicideNoStorage.json # ef-tests #425 + - static_Return50000_2.json # ef-tests #425 + - static_RETURN_Bounds.json # ef-tests #425 + - static_RevertDepth2.json # ef-tests #425 stStackTests: - underflowTest.json # ef-tests #414 - shallowStack.json # ef-tests #415 diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 4e3f4116..6bf11984 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -119,7 +119,7 @@ mod blockchain_tests { blockchain_tests!(st_solidity_test, stSolidityTest); blockchain_tests!(st_special_test, stSpecialTest); blockchain_tests!(st_stack_tests, stStackTests); - // blockchain_tests!(st_static_call, stStaticCall); // 207 failing tests + blockchain_tests!(st_static_call, stStaticCall); // blockchain_tests!(st_static_flag_enabled, stStaticFlagEnabled); // 13 failing tests // blockchain_tests!(st_system_operations_test, stSystemOperationsTest); // 28 failing tests // blockchain_tests!(st_time_consuming, stTimeConsuming); // 14 failing tests From ad551535fdf14c3f6f889186474b030dfe59e738 Mon Sep 17 00:00:00 2001 From: greged93 <82421016+greged93@users.noreply.github.com> Date: Mon, 2 Oct 2023 13:34:37 +0200 Subject: [PATCH 12/12] improve logging (#464) --- crates/ef-testing/src/models/result.rs | 4 ---- crates/ef-testing/tests/tests.rs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/ef-testing/src/models/result.rs b/crates/ef-testing/src/models/result.rs index a3c9ac4a..c1d2e2c9 100644 --- a/crates/ef-testing/src/models/result.rs +++ b/crates/ef-testing/src/models/result.rs @@ -73,10 +73,6 @@ pub(crate) fn print_results( skipped.len() ); - for case in skipped { - println!("[S] Case {} skipped", case.path.display()); - } - for case in failed { let error = case.result.clone().unwrap_err(); diff --git a/crates/ef-testing/tests/tests.rs b/crates/ef-testing/tests/tests.rs index 6bf11984..e45a901b 100644 --- a/crates/ef-testing/tests/tests.rs +++ b/crates/ef-testing/tests/tests.rs @@ -11,7 +11,7 @@ static INIT: Once = Once::new(); fn setup() { INIT.call_once(|| { // Set-up tracing filter - let filter = filter::EnvFilter::new("tests=info,ef_testing=info,katana_core=info"); + let filter = filter::EnvFilter::new("tests=warn,ef_testing=warn,executor=warn"); let subscriber = FmtSubscriber::builder().with_env_filter(filter).finish(); tracing::subscriber::set_global_default(subscriber) .expect("setting tracing default failed");