-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests for arithmetic opcodes #1144
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data: | ||
- 0x | ||
gasLimit: | ||
- 80000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stop using arbitrary large gas limits.
Because in this case the Filler is the compiled version. The source code is actually https://github.com/ethereum/tests/blob/bdfd202b89d8b3845fad6a3e4af91d89d4c7897a/src/Templates/EachOpcode/Arith.ts, which is less than 400 lines.
Why? It makes it easier to run tests without worrying about the gas limit, when the gas limit is not part of what we test. |
Not everyone can run a test with 80M gas limit. |
If you need additional language to generate a filler to generate a test you better contribute it to https://github.com/ethereum/execution-spec-tests. |
How about I get started with writing docs for how to write tests for that system? It looks similar to retesteth, but there's enough difference to justify more docs. |
yes makes sense to look into python specs if filler design is too complex. |
Can you give me the name of a test where it does that and I'll try to fix it? |
Its fixed now |
I added that to ethereum/execution-spec-tests#51 - you just update the |
Thats not very convenient when I have multiple evms on the same machine I would need to run mv commands. Would be much nicer if I could provide the path to python script |
You're right. I will make a script to improve that.
…On Thu, Feb 2, 2023, 10:16 AM winsvega ***@***.***> wrote:
Thats not very convinient when I have multiple evms on the same machine
—
Reply to this email directly, view it on GitHub
<#1144 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBCGGNOA6D4UUHBIVRVJVLWVPMXXANCNFSM6AAAAAAT4DTPSU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Are you redoing this PR with pyspecs too? |
Yes. I think we can close it.
…On Fri, Feb 3, 2023 at 9:44 AM winsvega ***@***.***> wrote:
Are you redoing this PR with pyspecs too?
—
Reply to this email directly, view it on GitHub
<#1144 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBCGGNB45EIB2AXVXM2AQTWVURUVANCNFSM6AAAAAAT4DTPSU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
9156 tests. The code is ~400k bytes, but it bypasses the tests by specifying it as
code:
rather than CREATE[2] ing it, so it works, at least on geth.