-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
statetest: Run all tests from a JSON file (#863)
The ethereum/tests has a convention that there is a single test in a JSON file. However, execution-spec-tests don't follow this convention and put multiple tests in a single file. This change loads and executes all tests from a JSON state test file. Fixes #862.
- Loading branch information
Showing
9 changed files
with
157 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"test_case_1": { | ||
"env": { | ||
"currentBaseFee": "0x0a", | ||
"currentCoinbase": "0x0000000000000000000000000000000000000000", | ||
"currentDifficulty": "0x020000", | ||
"currentGasLimit": "0xff112233445566", | ||
"currentNumber": "0x01", | ||
"currentRandom": "0x0000000000000000000000000000000000000000000000000000000000020000", | ||
"currentTimestamp": "0x03e8" | ||
}, | ||
"post": { | ||
"London": [ | ||
{ | ||
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"indexes": { | ||
"data": 0, | ||
"gas": 0, | ||
"value": 0 | ||
}, | ||
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
} | ||
] | ||
}, | ||
"pre": { | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { | ||
"balance": "0x0de0b6b3a7640000", | ||
"code": "0x", | ||
"nonce": "0x00", | ||
"storage": {} | ||
} | ||
}, | ||
"transaction": { | ||
"data": [ | ||
"0x" | ||
], | ||
"gasLimit": [ | ||
"0x061a80" | ||
], | ||
"gasPrice": "0x0a", | ||
"nonce": "0x00", | ||
"sender": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", | ||
"to": "0x0000000000000000000000000000000000000000", | ||
"value": [ | ||
"0x1" | ||
] | ||
} | ||
}, | ||
"test_case_2": { | ||
"env": { | ||
"currentBaseFee": "0x0a", | ||
"currentCoinbase": "0x0000000000000000000000000000000000000000", | ||
"currentDifficulty": "0x020000", | ||
"currentGasLimit": "0xff112233445566", | ||
"currentNumber": "0x01", | ||
"currentRandom": "0x0000000000000000000000000000000000000000000000000000000000020000", | ||
"currentTimestamp": "0x03e8" | ||
}, | ||
"post": { | ||
"London": [ | ||
{ | ||
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"indexes": { | ||
"data": 0, | ||
"gas": 0, | ||
"value": 0 | ||
}, | ||
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
} | ||
] | ||
}, | ||
"pre": { | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { | ||
"balance": "0x0de0b6b3a7640000", | ||
"code": "0x", | ||
"nonce": "0x00", | ||
"storage": {} | ||
} | ||
}, | ||
"transaction": { | ||
"data": [ | ||
"0x" | ||
], | ||
"gasLimit": [ | ||
"0x061a80" | ||
], | ||
"gasPrice": "0x0a", | ||
"nonce": "0x00", | ||
"sender": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", | ||
"to": "0x0000000000000000000000000000000000000000", | ||
"value": [ | ||
"0x2" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters