-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new(tests): EOF - EIP-6206: JUMPF Tests (#540)
* EOF JUMPF Tests Tests the assertsions in EIP-6206. Both container validation and runtime execution are validated. Signed-off-by: Danno Ferrin <[email protected]> * reviewer comments - move to parameterized calls - combine eof and state tests in one go - change file groupings Signed-off-by: Danno Ferrin <[email protected]> * review requested changes Add comments to stack calculation variables. Signed-off-by: Danno Ferrin <[email protected]> * move Signed-off-by: Danno Ferrin <[email protected]> * move to symbolic storage names Signed-off-by: Danno Ferrin <[email protected]> * fix(tests): eip-6206: nit * fix(tests): eip-6206: EOF exception * feat(fw): Add EOFStateTest test type * feat(fw): EOF Exception STACK_HIGHER_THAN_OUTPUTS * refactor(tests): EOF - EIP-7692: Use EOFStateTest * fix(tests): EIP-6206: fix invalid container tests * fix(tests): EIP-6206: test_jumpf_target_rules logic * fix(fw): EOF - Add INVALID_NON_RETURNING_FLAG, JUMPF_DESTINATION_INCOMPATIBLE_OUTPUTS * fix(tests): EOF - EIP-6206: Use correct exceptions * merge in marioevz:eof/jumpf Signed-off-by: Danno Ferrin <[email protected]> --------- Signed-off-by: Danno Ferrin <[email protected]> Co-authored-by: Mario Vega <[email protected]>
- Loading branch information
Showing
12 changed files
with
613 additions
and
7 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
""" | ||
EOF tests for EIP-6206 JUMPF | ||
""" |
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,13 @@ | ||
""" | ||
EOF JumpF tests helpers | ||
""" | ||
import itertools | ||
|
||
"""Storage addresses for common testing fields""" | ||
_slot = itertools.count() | ||
next(_slot) # don't use slot 0 | ||
slot_code_worked = next(_slot) | ||
slot_last_slot = next(_slot) | ||
|
||
"""Storage values for common testing fields""" | ||
value_code_worked = 0x2015 |
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,5 @@ | ||
""" | ||
EOF V1 Constants used throughout all tests | ||
""" | ||
|
||
EOF_FORK_NAME = "Prague" |
Oops, something went wrong.