Skip to content

Commit

Permalink
Merge pull request #677 from ethereum/unittest
Browse files Browse the repository at this point in the history
tests strictness update
  • Loading branch information
winsvega authored Mar 19, 2020
2 parents 73cf1e2 + 317b952 commit 58188e4
Show file tree
Hide file tree
Showing 68 changed files with 432 additions and 252 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"filling_wrongAccount_Istanbul" : {
"_info" : {
"comment" : "This is a unit test for retesteth logic",
"filling-rpc-server" : "Geth-1.9.12-unstable-556888c4-20200302",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/filling_unexpectedAccountFiller.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"filling_unexpectedException_Istanbul" : {
"_info" : {
"comment" : "This is a unit test for retesteth logic",
"filling-rpc-server" : "Geth-1.9.12-unstable-556888c4-20200302",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/filling_unexpectedExceptionFiller.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"filling_wrongAccount_Istanbul" : {
"_info" : {
"comment" : "This is a unit test for retesteth logic",
"filling-rpc-server" : "Geth-1.9.12-unstable-556888c4-20200302",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/filling_wrongAccountFiller.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"filling_wrongStorage_Istanbul" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "Geth-1.9.12-unstable-556888c4-20200302",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/filling_wrongStorageFiller.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"filling_wrongStorage2_Istanbul" : {
"_info" : {
"comment" : "This is a unit test for retesteth logic. there was a bug after checking 0x00 storage",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/filling_wrongStorage2Filler.json",
"sourceHash" : "4fe78625b1e733beb4796fc7a035917f9aa910cf63b13a88288a23c32ff79611"
},
"sealEngine" : "NoProof",
"network" : "Istanbul",
"pre" : {
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x09184e72a000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
"0x02" : "0x22"
}
}
},
"genesisBlockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1",
"difficulty" : "0x020000",
"extraData" : "0x42",
"gasLimit" : "0x2fefd8",
"gasUsed" : "0x00",
"hash" : "0x7a2d9fb277d3b16213bcae449bb2423af79a5bde99e87fcd979334ddb1448f09",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x00",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot" : "0x0db5bf623b9ddf711a778e4758545aa5f188de9b8b9d492c598bde73364225c5",
"timestamp" : "0x54c98c81",
"transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"genesisRLP" : "0xf901fcf901f7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a00db5bf623b9ddf711a778e4758545aa5f188de9b8b9d492c598bde73364225c5a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080832fefd8808454c98c8142a00000000000000000000000000000000000000000000000000000000000000000880000000000000000c0c0",
"blocks" : [
{
"chainname" : "default",
"blocknumber" : "1",
"uncleHeaders" : [
],
"blockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1",
"difficulty" : "0x020000",
"extraData" : "0x42",
"gasLimit" : "0x2ffbd2",
"gasUsed" : "0x5208",
"hash" : "0xe1faabb9c57c334a1f504c102880cd471e6d72fd6afb6554686eb427d14357eb",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x01",
"parentHash" : "0x7a2d9fb277d3b16213bcae449bb2423af79a5bde99e87fcd979334ddb1448f09",
"receiptTrie" : "0x056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2",
"stateRoot" : "0x3278624833e9deaee1741edfb035b7170f4c3ea8e9565095b84fef1391b3cba2",
"timestamp" : "0x54c99069",
"transactionsTrie" : "0x5c9151c2413d1cd25c51ffb4ac38948acc1359bf08c6b49f283660e9bcf0f516",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"transactions" : [
{
"data" : "0x",
"gasLimit" : "0x04cb2f",
"gasPrice" : "0x01",
"nonce" : "0x00",
"r" : "0x77c7cd36820c71821c1aed59de46e70e701c4a8dd89c9ba508ab722210f60da8",
"s" : "0x3f29825d40c7c3f7bff3ca69267e0f3fb74b2d18b8c2c4e3c135b5d3b06e288d",
"to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
"v" : "0x1b",
"value" : "0x0a"
}
],
"rlp" : "0xf90261f901f9a07a2d9fb277d3b16213bcae449bb2423af79a5bde99e87fcd979334ddb1448f09a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a03278624833e9deaee1741edfb035b7170f4c3ea8e9565095b84fef1391b3cba2a05c9151c2413d1cd25c51ffb4ac38948acc1359bf08c6b49f283660e9bcf0f516a0056b23fbba480696b65fe5a59b8f2148a1299103c4f57df839233af2cf4ca2d2b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001832ffbd28252088454c9906942a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f862f86080018304cb2f94095e7baea6a6c7c4c2dfeb977efac326af552d870a801ba077c7cd36820c71821c1aed59de46e70e701c4a8dd89c9ba508ab722210f60da8a03f29825d40c7c3f7bff3ca69267e0f3fb74b2d18b8c2c4e3c135b5d3b06e288dc0"
}
],
"postState" : {
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"code" : "0x",
"nonce" : "0x01",
"balance" : "0x09184e724dee",
"storage" : {
"0x02" : "0x22"
}
},
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"code" : "0x",
"nonce" : "0x00",
"balance" : "0x0a",
"storage" : {
}
},
"0x8888f1f195afa192cfee860698584c030f4c9db1" : {
"code" : "0x",
"nonce" : "0x00",
"balance" : "0x1bc16d674ec85208",
"storage" : {
}
}
},
"lastblockhash" : "0xe1faabb9c57c334a1f504c102880cd471e6d72fd6afb6554686eb427d14357eb"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"lastblockhashException_Istanbul" : {
"_info" : {
"comment" : "This is a unit test for retesteth logic",
"filling-rpc-server" : "Geth-1.9.12-unstable-556888c4-20200302",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/lastblockhashCopier.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"filling_wrongAccount_Istanbul" : {
"_info" : {
"comment" : "This is a unit test for retesteth logic",
"filling-rpc-server" : "Geth-1.9.12-unstable-556888c4-20200302",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/unexpectedAccountCopier.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"filling_wrongAccount_Istanbul" : {
"_info" : {
"comment" : "This is a unit test for retesteth logic",
"filling-rpc-server" : "Geth-1.9.12-unstable-556888c4-20200302",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/wrongAccountCopier.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"wrongRLPGenesis_Istanbul" : {
"_info" : {
"comment" : "This is a unit test for retesteth logic",
"filling-rpc-server" : "Geth-1.9.12-unstable-556888c4-20200302",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/wrongRLPGenesisCopier.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"filling_wrongStorage_Istanbul" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "Geth-1.9.12-unstable-556888c4-20200302",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/BlockchainTestsFiller/InvalidBlocks/bcExpectSection/wrongStorageCopier.json",
Expand Down
6 changes: 3 additions & 3 deletions GeneralStateTests/stExtCodeHash/callToNonExistent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"callToNonExistent" : {
"_info" : {
"comment" : "https://github.com/ethereum/tests/issues/652",
"filling-rpc-server" : "Geth-1.9.7-unstable-b566cfdf-20191104",
"filling-tool-version" : "retesteth-0.0.1+commit.47c32403.Linux.g++",
"lllcversion" : "Version: 0.5.12-develop.2019.9.13+commit.2d601a4f.Linux.g++",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stExtCodeHash/callToNonExistentFiller.json",
"sourceHash" : "5eef8c0b0ca809ea5d2e876805427281893e13cc053f06177d648ebcc57e361e"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"callToSuicideThenExtcodehash" : {
"_info" : {
"comment" : "https://github.com/ethereum/tests/issues/652",
"filling-rpc-server" : "Geth-1.9.7-unstable-b566cfdf-20191104",
"filling-tool-version" : "retesteth-0.0.1+commit.47c32403.Linux.g++",
"lllcversion" : "Version: 0.5.12-develop.2019.9.13+commit.2d601a4f.Linux.g++",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stExtCodeHash/callToSuicideThenExtcodehashFiller.json",
"sourceHash" : "d64787bab2322f058261a98c1482ecf5cfa5917bec267d236d521fcff3eebfa6"
},
Expand Down
6 changes: 3 additions & 3 deletions GeneralStateTests/stExtCodeHash/codeCopyZero.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"codeCopyZero" : {
"_info" : {
"comment" : "https://github.com/ethereum/tests/issues/493, CODECOPY and EXTCODECOPY where codesize = 0",
"filling-rpc-server" : "Geth-1.9.6-unstable-63b18027-20190920",
"filling-tool-version" : "retesteth-0.0.1+commit.0ae18aef.Linux.g++",
"lllcversion" : "Version: 0.5.12-develop.2019.9.13+commit.2d601a4f.Linux.g++",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stExtCodeHash/codeCopyZeroFiller.yml",
"sourceHash" : "4498dd51a560fa0c4504fdbedd3eae384ff65215bde6aaa70ea000edb9a482c4"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"createEmptyThenExtcodehash" : {
"_info" : {
"comment" : "https://github.com/ethereum/tests/issues/652",
"filling-rpc-server" : "Geth-1.9.7-unstable-b566cfdf-20191104",
"filling-tool-version" : "retesteth-0.0.1+commit.47c32403.Linux.g++",
"lllcversion" : "Version: 0.5.12-develop.2019.9.13+commit.2d601a4f.Linux.g++",
"filling-rpc-server" : "Geth-1.9.12-unstable-97243f3a-20200316",
"filling-tool-version" : "retesteth-0.0.2+commit.4bd2af85.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2019.11.27+commit.8f259595.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stExtCodeHash/createEmptyThenExtcodehashFiller.json",
"sourceHash" : "eec96b766c2b6c53b343e3478532438372181b7de2be889add350864f1c49e09"
},
Expand Down
Loading

0 comments on commit 58188e4

Please sign in to comment.