Skip to content

Retesteth commands

winsvega edited this page Aug 10, 2019 · 7 revisions

Retesteth Commands

Setting up the tests

Download the test repo: https://github.com/ethereum/tests
By default retesteth reads path to the test repo from env variable ETHEREUM_TEST_PATH
This could be overwritten with --testpath option:

./retesteth -- --testpath "/path/to/the/test/repo"

Setting up the test client

Check default client config:
https://github.com/ethereum/tests/tree/develop/Retesteth/default
And create a config folder for you client.
https://github.com/ethereum/retesteth/wiki/Add-client-configuration-to-Retesteth

./retesteth -t GeneralStateTests -- --clients "default"

Replace "default" with your newly created client config folder. If you configured the client to work via TCP socket, make sure that specified port is open and listening for connections by the instance of a client.

Running the tests

The basic tests suites to run:
GeneralStateTests - minimum EVM coverage of one transaction call execution testing opcode execution scenarios.

./retesteth -t GeneralStateTests --

BlockchainTests - tests with many blocks each block could have many transactions. including malicious blocks.

./retesteth -t BlockchainTests --
Clone this wiki locally