Comments (3)
Hi @danceratopz, I've gone through the docs and have a fair understanding of the program, though my lack of blockchain background holds me back a bit.
If I'm not wrong, the files in ethereum_test_tools
help with test execution by customising pytest, right? Could you give me an example of such a command, using the solc
command line?
from execution-spec-tests.
Hey @richardgreg 👍
The pytest-specific config/customization is in src/pytest_plugins/
. The libraries in src/ethereum_test_tools/
help generate test vectors/fixtures (that are subsequently used by ethereum execution clients) but try to be independent of pytest (i.e., you could use a different test framework/runner but still use these libraries to generate test fixtures).
ethereum_test_tools
does many things such as defining all the different types required to define test fixtures (accounts, blocks, transactions, etc), define the "test fixture" specifications and help write these resulting fixtures to JSON files.
As you might have seen, the Yul
class from ethereum_test_tools
helps compile any Yul source constained in tests, here are the relevant lines.
execution-spec-tests/src/ethereum_test_tools/code/yul.py
Lines 83 to 97 in ccf25a3
If you'd like to see how the framework is calling solc
, you can set some breakpoints or add some print statements here, for exampe:
print('\necho "' + self.source + '" | ' + " ".join(str(arg) for arg in solc_args))
which results in:
echo "
{
function f(a, b) -> c {
c := add(a, b)
}
sstore(0, f(1, 2))
return(0, 32)
}
" | solc --evm-version shanghai --assemble -
(running fill tests/homestead/yul/test_yul_example.py --fork=Shanghai -s -v
).
from execution-spec-tests.
This option doesn't help us, more info in #467 (comment).
from execution-spec-tests.
Related Issues (20)
- feat/refactor: extend `EthRPC` framework class and use it in `gentest.py` HOT 1
- Update tests for EIP-2935 for Devnet-1
- Remove workaround to `evmone` not supporting EIP-6110/EIP-7002 introduced in #573
- Fix, clarify, or create alternative tests to incomplete data section tests
- Add `eip6800` (verkle) feature to `configs/feature.yaml` HOT 2
- Prague Devnet-1 Tracker
- evmone t8n produces different test when used with pyspec compared to geth
- feat(consume): add client config files to EEST HOT 1
- feat(fw): finalize transition base class
- feat: MSTORE(bytes) macro
- feat(fw): refactor types files for use within EELS HOT 1
- feat: Add `append_sections` to `ethereum_test_tools.eof.v1.Container`
- Missing coverage in EOF container validation tests
- Add EXCHANGE test for EOF
- authorizations not presented in human readable form for type 4 (EIP-7702) txs. HOT 1
- tests for returndata size
- EOF: Expand tests that CALLF into a section without RETF
- EOF: Missing coverage for max sizes HOT 1
- Update 7702 Tests for Devnet-2
- feat(consume): refine index file usage for the consume suite
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from execution-spec-tests.