-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Test ethdebug program output against corresponding schema #16009
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
base: eof_source_locations_unoptimized
Are you sure you want to change the base?
Conversation
b59db8c
to
976bb36
Compare
dc9001a
to
dbdbc38
Compare
dbdbc38
to
b857048
Compare
3c02df0
to
f9a0985
Compare
b857048
to
345d936
Compare
345d936
to
dbb9928
Compare
return dictionary | ||
|
||
|
||
@pytest.fixture(params=["input_file.json", "input_file_eof.json"]) |
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.
I think it would be nice to have this already implemented in a way that it will dynamically pick files and test it.. e.g. the test will search for all json files defined in a specific directory and will then verify whether ethdebug output is correct
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.
this is already possible by adding more stuff to the params kwarg. depending on what you want to test, you can rglob
json files from some directory ahead of test time and add them there to the list
["evm.bytecode.ethdebug", "evm.deployedBytecode.ethdebug"]
and["input_file.json", "input_file_eof.json"]
Due to the EOF test and invalid instructions with negative offsets, this PR depends on #15994 which fixes/implements these things.
The output without these fixes looks like this: https://app.circleci.com/pipelines/github/ethereum/solidity/39379/workflows/982d78f3-9c42-4849-b48f-cd01a82cd4a4/jobs/1822516