Skip to content
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

Update README.md #276

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 24 additions & 17 deletions integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,37 @@ These integration tests currently available for Goerli testnet must run as non-r
# Requirements

```
% pip3 install -r requirements.txt
pip3 install -r requirements.txt
```

Currently, `json-diff` and `json-patch-jsondiff` are also required:

## Linux
```
% sudo apt update
% sudo apt install npm
% npm install -g json-diff
sudo apt update
sudo apt install npm
npm install -g json-diff

% sudo apt install python3-jsonpatch
sudo apt install python3-jsonpatch
```

## macOS
```
% brew update
% brew install node
% npm install -g json-diff
brew update
brew install node
npm install -g json-diff
```

# Run tests

```
% python3 ./run_tests.py -c -k jwt.hex -b <chain>
python3 ./run_tests.py -c -k jwt.hex -b <chain>
```

# Synopsis

```
% python3 ./run_tests.py -h
python3 ./run_tests.py -h

Usage: ./run_tests.py:

Expand Down Expand Up @@ -70,38 +70,45 @@ Launch an automated test sequence on Silkworm RpcDaemon (aka Silkrpc) or Erigon
# Invoke examples

```
% ./run_tests.py -b mainnet -d -c -v 1
./run_tests.py -b mainnet -d -c -v 1
```

Runs all tests on main net chain comparing Silkrpc response with rpcdaemon response, printing each test result

```
% ./run_tests.py -b mainnet -c -v 1
./run_tests.py -b mainnet -c -v 1
```

Runs all tests on main net chain comparing silkrpc response to response saved on json file, printing each test result

```
% ./run_tests.py -b mainnet -c -a eth_call
./run_tests.py -b mainnet -c -a eth_call
```

Runs all tests of eth_call on main net chain comparing silkrpc response with saved json file, printing only failed tests

```
% ./run_tests.py -b mainnet -r -c -a eth_call -t 1
./run_tests.py -b mainnet -r -c -a eth_call -t 1
```

Runs test 1 of eth_call on main net chain comparing rpcdaemon response to saved json file, printing only failed tests

% ./run_tests.py -b mainnet -r -c -t 20 -v 1
```
./run_tests.py -b mainnet -r -c -t 20 -v 1
```

Runs test number 20 in main net chain using rpcdaemon and compare result with json file, printing each test result

% ./run_tests.py -b mainnet -d -c -X 20 -v 1
```
./run_tests.py -b mainnet -d -c -X 20 -v 1
```

Runs all tests (excluding test number 20) on main net chain comparing silkrpc response with rpcdaemon response, printing each test result

% ./run_tests.py -b mainnet -d -c -x eth_call -v 1
```
./run_tests.py -b mainnet -d -c -x eth_call -v 1
```


Runs all tests (excluding eth_call tests) on main net chain comparing silkrpc response with rpcdaemon response, printing each test result