From 2f0444cebd3bdd3c41278b7d5d9f00c68328afdd Mon Sep 17 00:00:00 2001 From: andri lim Date: Thu, 19 Oct 2023 10:52:24 +0700 Subject: [PATCH] Nicer all_tests report (#1827) --- newBlockchainTests.md | 22 +++++++++- newGeneralStateTests.md | 14 ++---- tests/all_tests_macro.nim | 11 ++--- witnessBuilderBC.md | 92 ++++++++++++++++++++++++++++++++++----- witnessBuilderGST.md | 8 +++- 5 files changed, 118 insertions(+), 29 deletions(-) diff --git a/newBlockchainTests.md b/newBlockchainTests.md index 96fad00d1..f9bcf2ace 100644 --- a/newBlockchainTests.md +++ b/newBlockchainTests.md @@ -16,9 +16,12 @@ newBlockchainTests + withdrawalsAddressBounds.json OK + withdrawalsAmountBounds.json OK + withdrawalsIndexBounds.json OK ++ withdrawalsRLPlessElements.json OK ++ withdrawalsRLPmoreElements.json OK ++ withdrawalsRLPnotAList.json OK + withdrawalsValidatorIndexBounds.json OK ``` -OK: 15/15 Fail: 0/15 Skip: 0/15 +OK: 18/18 Fail: 0/18 Skip: 0/18 ## bcArrowGlacierToMerge ```diff + difficultyFormula.json OK @@ -100,6 +103,21 @@ OK: 4/4 Fail: 0/4 Skip: 0/4 + SuicideIssue.json OK ``` OK: 3/4 Fail: 0/4 Skip: 1/4 +## bcForgedTest +```diff ++ bcBlockRLPAsList.json OK ++ bcBlockRLPPrefixed0000.json OK ++ bcBlockRLPRandomByte.json OK ++ bcBlockRLPTooLarge.json OK ++ bcBlockRLPZeroByte.json OK ++ bcForkBlockTest.json OK ++ bcInvalidRLPTest_BLOCK.json OK ++ bcInvalidRLPTest_TRANSACT.json OK ++ bcTransactRLPRandomByte.json OK ++ bcTransactRLPTooLarge.json OK ++ bcTransactRLPZeroByte.json OK +``` +OK: 11/11 Fail: 0/11 Skip: 0/11 ## bcForkStressTest ```diff + AmIOnEIP150.json OK @@ -3440,4 +3458,4 @@ OK: 11/11 Fail: 0/11 Skip: 0/11 OK: 1/1 Fail: 0/1 Skip: 0/1 ---TOTAL--- -OK: 2932/3038 Fail: 0/3038 Skip: 106/3038 +OK: 2946/3052 Fail: 0/3052 Skip: 106/3052 diff --git a/newGeneralStateTests.md b/newGeneralStateTests.md index d4d6b91ff..3108687bf 100644 --- a/newGeneralStateTests.md +++ b/newGeneralStateTests.md @@ -682,7 +682,6 @@ OK: 13/13 Fail: 0/13 Skip: 0/13 ## stEIP158Specific ```diff + CALL_OneVCallSuicide.json OK -+ CALL_OneVCallSuicide2.json OK + CALL_ZeroVCallSuicide.json OK + EXP_Empty.json OK + EXTCODESIZE_toEpmty.json OK @@ -690,7 +689,7 @@ OK: 13/13 Fail: 0/13 Skip: 0/13 + callToEmptyThenCallError.json OK + vitalikTransactionTest.json OK ``` -OK: 8/8 Fail: 0/8 Skip: 0/8 +OK: 7/7 Fail: 0/7 Skip: 0/7 ## stEIP2930 ```diff + addressOpcodes.json OK @@ -766,12 +765,9 @@ OK: 12/12 Fail: 0/12 Skip: 0/12 + extCodeHashDELEGATECALL.json OK + extCodeHashDeletedAccount.json OK + extCodeHashDeletedAccount1.json OK -+ extCodeHashDeletedAccount1Cancun.json OK + extCodeHashDeletedAccount2.json OK -+ extCodeHashDeletedAccount2Cancun.json OK + extCodeHashDeletedAccount3.json OK + extCodeHashDeletedAccount4.json OK -+ extCodeHashDeletedAccountCancun.json OK + extCodeHashDynamicArgument.json OK + extCodeHashInInitCode.json OK + extCodeHashMaxCodeSize.json OK @@ -783,10 +779,9 @@ OK: 12/12 Fail: 0/12 Skip: 0/12 + extCodeHashSelfInInit.json OK + extCodeHashSubcallOOG.json OK + extCodeHashSubcallSuicide.json OK -+ extCodeHashSubcallSuicideCancun.json OK + extcodehashEmpty.json OK ``` -OK: 36/36 Fail: 0/36 Skip: 0/36 +OK: 32/32 Fail: 0/32 Skip: 0/32 ## stHomesteadSpecific ```diff + contractCreationOOGdontLeaveEmptyContract.json OK @@ -1035,10 +1030,9 @@ OK: 24/24 Fail: 0/24 Skip: 0/24 + modexp.json OK + modexpTests.json OK + precompsEIP2929.json OK -+ precompsEIP2929Cancun.json OK + sec80.json OK ``` -OK: 10/10 Fail: 0/10 Skip: 0/10 +OK: 9/9 Fail: 0/9 Skip: 0/9 ## stPreCompiledContracts2 ```diff + CALLBlake2f.json OK @@ -2889,4 +2883,4 @@ OK: 1/3 Fail: 0/3 Skip: 2/3 OK: 11/11 Fail: 0/11 Skip: 0/11 ---TOTAL--- -OK: 2524/2627 Fail: 0/2627 Skip: 103/2627 +OK: 2518/2621 Fail: 0/2621 Skip: 103/2621 diff --git a/tests/all_tests_macro.nim b/tests/all_tests_macro.nim index 2e03d801f..2e6fbd986 100644 --- a/tests/all_tests_macro.nim +++ b/tests/all_tests_macro.nim @@ -5,10 +5,11 @@ # * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) # at your option. This file may not be copied, modified, or distributed except according to those terms. -import std/times -import ../nimbus/vm_compile_info -import macros, strutils, os, unittest2, osproc -import threadpool +import + std/[times, macros, strutils, os, osproc, threadpool], + unittest2, + ../nimbus/vm_compile_info, + ../nimbus/utils/utils export strutils, os, unittest2, osproc, threadpool @@ -30,7 +31,7 @@ proc executeMyself(numModules: int, names: openArray[string]): int = var f = open("all_test.md", fmWrite) for i in 0..