git clone https://github.com/holiman/evmlab
cd evmlab
mkdir randoLogs
pipenv --python 3.5
pipenv shell
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
> ethereumjs-vm@2.2.1 testBlockchain /ethereum/ethereumjs-vm | |
> node --stack-size=1500 ./tests/tester -b | |
TAP version 13 | |
# BlockchainTests | |
# file: BlockGasLimit2p63m1 test: BlockGasLimit2p63m1_Byzantium | |
ok 1 correct pre stateRoot | |
ok 2 correct genesis RLP | |
ok 3 last block hash |
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
git clone clone https://github.com/jwasinger/evmlab && git checkout ethereumjs-multi-trace | |
# set up a python environment | |
pipenv --three | |
pipenv shell | |
pip install -r requirements.txt | |
pip install ethereum | |
python setup.py install | |
# now edit statetests.ini to only use JS,GETH as Clients (so that it doesn't take forever to install the docker images) |
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
> ethereumjs-vm@2.2.1 testState /ethereum/ethereumjs-vm | |
> node ./tests/tester -s | |
TAP version 13 | |
# GeneralStateTests | |
# file: ContractCreationSpam test: ContractCreationSpam | |
ok 1 the state roots should match | |
# file: CrashingTransaction test: CrashingTransaction | |
ok 2 the state roots should match |
This file has been truncated, but you can view the full 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
file: /ethereum/tests/GeneralStateTests/stSpecialTest/failed_tx_xcf416c53.json | |
test_name: failed_tx_xcf416c53. tx_i: 0 | |
running state test in geth. | |
running state test in EthereumJS. | |
js_cmd: docker run --rm -t -v /ethereum/jwasinger-emvlab/single_test_tmp.json:/ethereum/single_test_tmp.json jwasinger/ethereumjs-vm -s --stateTestSource single_test_tmp.json --jsontrace --fork Byzantium | |
End of geth trace, processing... | |
Done processing geth trace (16134 steps), returning in canon format | |
End of javascript trace, processing... | |
Done processing javascript trace (16134 steps), returning in canon format | |
Comparing traces |
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
file: /ethereum/tests/GeneralStateTests/stRevertTest/RevertPrecompiledTouch.json | |
test_name: RevertPrecompiledTouch. tx_i: 0 | |
running state test in geth. | |
running state test in cpp-ethereum. | |
cpp_cmd: docker run --rm -t -v /ethereum/tests:/mounted_tests cdetrio/cpp-ethereum -t GeneralStateTests/stRevertTest -- --singletest RevertPrecompiledTouch --jsontrace '{ "disableStorage":true }' --singlenet Byzantium -d 0 -g 0 -v 0 --testpath "/mounted_tests" | |
End of geth trace, processing... | |
Done processing geth trace (78 steps), returning in canon format | |
End of cpp trace, processing... | |
['Running 1 test case...\r', 'Test Case "stRevertTest": \r', '100%\r', '[{"depth":"0","gas":"39000","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[]},{"depth":"0","gas":"38997","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x00"]},{"depth":"0","gas":"38994","gasCost":"3","op":"PUSH1","pc":"4","stack":["0x00","0x00"]},{"depth":"0","gas":"38991","gasCost":"3","op":"PUSH1","pc":"6","stack":["0x00","0x00","0x00"]},{"depth":"0","gas":" |
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
> ethereumjs-vm@2.2.1 testBlockchain /ethereum/ethereumjs-vm | |
> node --stack-size=1500 ./tests/tester -b --excludeDir='GeneralStateTests' | |
TAP version 13 | |
# BlockchainTests | |
# file: BlockGasLimit2p63m1 test: BlockGasLimit2p63m1_EIP158 | |
ok 1 correct pre stateRoot | |
ok 2 correct genesis RLP | |
ok 3 last block hash |
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
> ethereumjs-vm@2.2.2 testBlockchain /ethereum/bc-1.4.1-ethereumjs-vm | |
> node --stack-size=1500 ./tests/tester -b --excludeDir='GeneralStateTests' | |
TAP version 13 | |
# BlockchainTests | |
# file: BlockGasLimit2p63m1 test: BlockGasLimit2p63m1_EIP158 | |
ok 1 correct pre stateRoot | |
ok 2 correct genesis RLP | |
ok 3 last block hash |
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
> ethereumjs-vm@2.2.1 testBlockchain /ethereum/wip-metro-ejs | |
> node --stack-size=1500 ./tests/tester -b --excludeDir='GeneralStateTests' | |
TAP version 13 | |
# BlockchainTests | |
# file: BlockGasLimit2p63m1 test: BlockGasLimit2p63m1_Byzantium | |
ok 1 correct pre stateRoot | |
ok 2 correct genesis RLP | |
ok 3 last block hash |
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
> ethereumjs-vm@2.2.2 testBlockchain /ethereum/ethereumjs-vm | |
> node --stack-size=1500 ./tests/tester -b --excludeDir='GeneralStateTests' | |
TAP version 13 | |
# BlockchainTests | |
# file: BlockGasLimit2p63m1 test: BlockGasLimit2p63m1_EIP158 | |
ok 1 correct pre stateRoot | |
ok 2 correct genesis RLP | |
ok 3 last block hash |